-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenGL filter prototype: no frame received #5444
Comments
I copied some OpenGL code from https://github.com/google/grafika, and mimicked how https://cs.android.com/android/platform/superproject/main/+/main:frameworks/av/cmds/screenrecord/Overlay.cpp initialized it.
|
Thank you very much! It works perfectly. I have everything I need to start working on it 🎉 ❤️ |
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: