mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
glformat: return sized formats in from_video_info
Fixes green output on e.g. Android when converting between YUV->RGBA
This commit is contained in:
parent
7e92aa5bca
commit
694e30f858
1 changed files with 4 additions and 4 deletions
|
@ -197,13 +197,13 @@ gst_gl_format_from_video_info (GstGLContext * context, GstVideoInfo * vinfo,
|
|||
|
||||
switch (n_plane_components) {
|
||||
case 4:
|
||||
return GST_GL_RGBA;
|
||||
return GST_GL_RGBA8;
|
||||
case 3:
|
||||
return GST_GL_RGB;
|
||||
return GST_GL_RGB8;
|
||||
case 2:
|
||||
return texture_rg ? GST_GL_RG : GST_GL_LUMINANCE_ALPHA;
|
||||
return texture_rg ? GST_GL_RG8 : GST_GL_LUMINANCE_ALPHA;
|
||||
case 1:
|
||||
return texture_rg ? GST_GL_RED : GST_GL_LUMINANCE;
|
||||
return texture_rg ? GST_GL_R8 : GST_GL_LUMINANCE;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue