android-gpuimage icon indicating copy to clipboard operation
android-gpuimage copied to clipboard

Re-fix: Grouped filters with filterCount%2==0 are flipped

Open asydorov opened this issue 9 years ago • 3 comments

We should flip bitmap once instead of flipping scene for every filter in a group.

asydorov avatar Nov 29 '15 01:11 asydorov

@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?

linjiansheng avatar Aug 25 '16 09:08 linjiansheng

mark

tbfly avatar Sep 08 '16 08:09 tbfly

CLA assistant check
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.

CLAassistant avatar Oct 14 '19 22:10 CLAassistant