Hazy camera video on Android
Solved
Mobile and Embedded
-
wrote on 17 Feb 2022, 20:29 last edited by
-
I tried running the
declarative-camera
project on Android and I get it to work but the camera video is hazy. Screenshot below:And I keep getting this warnings:
W larative_camer: [SurfaceTexture-0-7528-1] bindTextureImage: clearing GL error: 0x500
How should I make the video output clearer?
wrote on 17 Feb 2022, 20:42 last edited byNever mind. I had to set the surface format version to 3.0 in main, at the top.
int main(int argc, char *argv[]) { QSurfaceFormat f; f.setVersion(3,0); QGuiApplication app(argc, argv); //... }
1/2