Solved Hazy camera video on Android
-
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?
-
Never 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); //... }
-
Never 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); //... }