cats-oss / android-gpuimage

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

Front Facing Camera Not Full screen #317

Closed deshan closed 8 years ago

deshan commented 8 years ago

jp.co.cyberagent.android.gpuimage.sample.activity.ActivityCamera

Pls see the screen shot, the front camera is not full screen in some phones? Front cam renders in 1/4 of the screen and last frame of the back camera still in the view.

screenshot_2016-09-21-15-00-23

ngThu commented 8 years ago

releaseCamera(); gpuImage.deleteImage(); mCurrentCameraId = (mCurrentCameraId + 1) % mCameraHelper.getNumberOfCameras(); setUpCamera(mCurrentCameraId);

You need to add line: "gpuImage.deleteImage();"

Hope that I can help you!

deshan commented 8 years ago

Thanks ngThu

That worked for me.

Thanks again!

2016-09-24 10:34 GMT+05:30 ngThu notifications@github.com:

releaseCamera(); gpuImage.deleteImage(); mCurrentCameraId = (mCurrentCameraId + 1) % mCameraHelper. getNumberOfCameras(); setUpCamera(mCurrentCameraId);

You need to add line: "gpuImage.deleteImage();"

Hope I can help you!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CyberAgent/android-gpuimage/issues/317#issuecomment-249345676, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOVAnWDtgq8Qt2llh6v6BeifcfS38Huks5qtK9jgaJpZM4KClts .

ngThu commented 8 years ago

No problem ^^

lam-bun commented 7 years ago

Thx!