cats-oss / android-gpuimage

Android filters based on OpenGL (idea from GPUImage for iOS)
9.01k stars 2.27k forks source link

if I use updatePreviewFrame instead of setUpCamera, how can I control horizontal mirror #497

Open everlastxc opened 4 years ago

everlastxc commented 4 years ago

I use updatePreviewFrame instead of setUpCamera, there is a question that the picture is not mirror when I switch to front Camera, I mention that setUpCamera has a parameter called flipHorizontal while updatePreviewFrame only has data, width, height. I think you got what I mean, so what should I do?

act262 commented 4 years ago
GPUImage#

public void setRotation(final Rotation rotation,  final boolean flipHorizontal, final boolean flipVertical)

setup flipVertical=true while front camera need mirror effect.