gl: fix textures size/alignment for semi-planar chromas
There were 2 errors that canceled each others: - The proper size for UV textures (GL_RG or GL_LUMINANCE_ALPHA) is w/2 x h/2 (and not w/2 x h/4). - Fix row length with GL_UNPACK_ROW_LENGTH or via an intermediate buffer. Don't use the pixel_pitch but the visible_pitch/texture_width ratio. Indeed, the pixel pitch for the UV plan of a semi-planar picture is 1 when the ratio is 2.
Showing
- modules/video_output/opengl/converter_cvpx.c 0 additions, 2 deletionsmodules/video_output/opengl/converter_cvpx.c
- modules/video_output/opengl/converter_sw.c 13 additions, 15 deletionsmodules/video_output/opengl/converter_sw.c
- modules/video_output/opengl/converter_vaapi.c 0 additions, 4 deletionsmodules/video_output/opengl/converter_vaapi.c
- modules/video_output/opengl/fragment_shaders.c 2 additions, 2 deletionsmodules/video_output/opengl/fragment_shaders.c
Loading