summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/gstglmemory.c
diff options
context:
space:
mode:
authorWang Xin-yu (王昕宇) <comicfans44@gmail.com>2014-10-20 15:02:28 +0800
committerSebastian Dröge <sebastian@centricular.com>2014-10-20 12:55:39 +0200
commit5eb538f9e2eb22867d30a67215ad6007012e8ebf (patch)
tree48cec4e3aaafffb61593259a2f6abd5eed8b6091 /gst-libs/gst/gl/gstglmemory.c
parent81c5fd3c1e96967f06aa9a78ca02bbcf314fefa3 (diff)
downloadgstreamer-plugins-bad-5eb538f9e2eb22867d30a67215ad6007012e8ebf.tar.gz
glcolorconvert: support RGB16/BGR16 video format upload
https://bugzilla.gnome.org/show_bug.cgi?id=738842
Diffstat (limited to 'gst-libs/gst/gl/gstglmemory.c')
-rw-r--r--gst-libs/gst/gl/gstglmemory.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglmemory.c b/gst-libs/gst/gl/gstglmemory.c
index e0b274f29..064af6e4b 100644
--- a/gst-libs/gst/gl/gstglmemory.c
+++ b/gst-libs/gst/gl/gstglmemory.c
@@ -222,6 +222,9 @@ gst_gl_texture_type_from_format (GstGLContext * context,
case GST_VIDEO_FORMAT_BGR:
n_plane_components = 3;
break;
+ case GST_VIDEO_FORMAT_RGB16:
+ case GST_VIDEO_FORMAT_BGR16:
+ return GST_VIDEO_GL_TEXTURE_TYPE_RGB16;
case GST_VIDEO_FORMAT_GRAY16_BE:
case GST_VIDEO_FORMAT_GRAY16_LE:
case GST_VIDEO_FORMAT_YUY2: