mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
glformat: Add missing GST_GL_RGB565 in some switch statement
https://bugzilla.gnome.org/show_bug.cgi?id=782736
This commit is contained in:
parent
f32e8bc4b2
commit
479b95205f
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,7 @@ _gl_format_n_components (guint format)
|
||||||
case GST_VIDEO_GL_TEXTURE_TYPE_RGB:
|
case GST_VIDEO_GL_TEXTURE_TYPE_RGB:
|
||||||
case GST_VIDEO_GL_TEXTURE_TYPE_RGB16:
|
case GST_VIDEO_GL_TEXTURE_TYPE_RGB16:
|
||||||
case GST_GL_RGB:
|
case GST_GL_RGB:
|
||||||
|
case GST_GL_RGB565:
|
||||||
return 3;
|
return 3;
|
||||||
case GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE_ALPHA:
|
case GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE_ALPHA:
|
||||||
case GST_VIDEO_GL_TEXTURE_TYPE_RG:
|
case GST_VIDEO_GL_TEXTURE_TYPE_RG:
|
||||||
|
@ -257,6 +258,7 @@ gst_gl_sized_gl_format_from_gl_format_type (GstGLContext * context,
|
||||||
break;
|
break;
|
||||||
case GST_GL_RGBA8:
|
case GST_GL_RGBA8:
|
||||||
case GST_GL_RGB8:
|
case GST_GL_RGB8:
|
||||||
|
case GST_GL_RGB565:
|
||||||
case GST_GL_RG8:
|
case GST_GL_RG8:
|
||||||
case GST_GL_R8:
|
case GST_GL_R8:
|
||||||
case GST_GL_LUMINANCE:
|
case GST_GL_LUMINANCE:
|
||||||
|
|
Loading…
Reference in a new issue