android-gpuimage
android-gpuimage copied to clipboard
Re-fix: Grouped filters with filterCount%2==0 are flipped
We should flip bitmap once instead of flipping scene for every filter in a group.
@asydorov THX! GPUImageTwoInputFilter.java also need change:
public void setRotation(final Rotation rotation, final boolean flipHorizontal, final boolean flipVertical) {
float[] buffer = TextureRotationUtil.getRotation(rotation, flipHorizontal, flipVertical);
mTexture2CoordinatesBuffer = ByteBuffer.allocateDirect(TEXTURE_NO_ROTATION.length * 4)
.order(ByteOrder.nativeOrder())
.asFloatBuffer();
mTexture2CoordinatesBuffer.put(buffer).position(0);
}
TEXTURE_ROTATED_90 is same with iOS GPUImage rotateLeftTextureCoordinates, anticlockwise?
mark
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.