MasayukiSuda / GPUVideo-android

This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2.
MIT License
658 stars 179 forks source link

fix preview redimension for some devices #101

Open buntupana opened 2 years ago

buntupana commented 2 years ago

In Emulator and Samsung Galaxy S6 (SM-G920F) at least when a video start recording the preview will be as big as the result video resolution was set.

Adding the function GLES20.glViewport at GlFrameBufferObjectRenderer in the funtion onDrawFrame fix the problem.

Closes #100 , closes #64