You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updateTexImage needs to be called on the same thread as the SurfaceTexture is created, and the SurfaceEncoder thread is busy in a while loop, so we can only create it in a new thread.
setOnFrameAvailableListener requires the current (or specified) looper is in looping state.
On-device OpenGL video filters will allow to:
--lock-video-orientation
on Android >= 14 to fix Android 14 beta lock orientation doesn't work as expected when the device goes into landscape mode. #4011--crop
on Android >= 14 to fix Android 14 Beta 5 crop not working (Pixel 6 Pro) #4162I wrote a quick&dirty prototype (branch
opengl_filter
), but I'm blocked becauseonNewFrameAvailable()
is never called:scrcpy/server/src/main/java/com/genymobile/scrcpy/video/VideoFilter.java
Line 80 in 4397dfb
I'm pretty sure this is related to threading (
setOnFrameAvailableListener()
also accepts aHandler
), but I did not manage to make it work.Once this listener is called on every frame, I can implement the shaders to perform the transforms I want, but I need this to work to get started.
Any help welcome.
The text was updated successfully, but these errors were encountered: