opengl: add planar >=10bits support on Android:
Via GL_HALF_FLOAT, should work starting GLES 3.0. Semiplanar is not supported as a CPU pass may be necessary to convert to HALF_FLOAT: Indeed, half-float data format consists of 1 sign bit, 5 exponent bits and 10 mantissa bits. If you try to treat P010’s integer layout as half-float, the GPU misinterprets those bits as exponent and mantissa, causing corruption.
Showing
- modules/video_output/opengl/importer.c 1 addition, 0 deletionsmodules/video_output/opengl/importer.c
- modules/video_output/opengl/interop_sw.c 13 additions, 1 deletionmodules/video_output/opengl/interop_sw.c
- modules/video_output/opengl/picture.h 1 addition, 0 deletionsmodules/video_output/opengl/picture.h
- modules/video_output/opengl/sampler.c 8 additions, 0 deletionsmodules/video_output/opengl/sampler.c
Loading
Please register or sign in to comment