diff options
author | David Schleef <ds@schleef.org> | 2007-12-24 20:53:56 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2007-12-24 20:53:56 +0000 |
commit | 15dbe49f8103bfcf493a225868734fdf8c924d03 (patch) | |
tree | 5ac354b0499d853579c2c3df188dcf9558ec662f /sys/glsink/glimagesink.c | |
parent | c131493ccecb74544dfdcaf03be980e47c71896d (diff) | |
download | gst-plugins-bad-15dbe49f8103bfcf493a225868734fdf8c924d03.tar.gz gst-plugins-bad-15dbe49f8103bfcf493a225868734fdf8c924d03.tar.bz2 gst-plugins-bad-15dbe49f8103bfcf493a225868734fdf8c924d03.zip |
sys/glsink/: Rewrite a bunch of code to use textures as the intermediate instead of renderbuffers. upload, download,...
Original commit message from CVS:
* sys/glsink/glimagesink.c:
* sys/glsink/glimagesink.h:
* sys/glsink/glvideo.c:
* sys/glsink/glvideo.h:
* sys/glsink/gstglbuffer.c:
* sys/glsink/gstglbuffer.h:
* sys/glsink/gstgldownload.c:
* sys/glsink/gstglfilter.c:
* sys/glsink/gstglupload.c:
Rewrite a bunch of code to use textures as the intermediate
instead of renderbuffers. upload, download, filtering all
work.
Diffstat (limited to 'sys/glsink/glimagesink.c')
-rw-r--r-- | sys/glsink/glimagesink.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/sys/glsink/glimagesink.c b/sys/glsink/glimagesink.c index 560a523f..5f94c913 100644 --- a/sys/glsink/glimagesink.c +++ b/sys/glsink/glimagesink.c @@ -410,31 +410,7 @@ gst_glimage_sink_set_caps (GstBaseSink * bsink, GstCaps * caps) glimage_sink->par_n = par_n; glimage_sink->par_d = par_d; - switch (format) { - case GST_VIDEO_FORMAT_YUY2: - glimage_sink->type = GST_GL_IMAGE_TYPE_YUY2; - break; - case GST_VIDEO_FORMAT_UYVY: - glimage_sink->type = GST_GL_IMAGE_TYPE_UYVY; - break; - case GST_VIDEO_FORMAT_AYUV: - glimage_sink->type = GST_GL_IMAGE_TYPE_AYUV; - break; - case GST_VIDEO_FORMAT_RGBx: - glimage_sink->type = GST_GL_IMAGE_TYPE_RGBx; - break; - case GST_VIDEO_FORMAT_BGRx: - glimage_sink->type = GST_GL_IMAGE_TYPE_BGRx; - break; - case GST_VIDEO_FORMAT_xRGB: - glimage_sink->type = GST_GL_IMAGE_TYPE_xRGB; - break; - case GST_VIDEO_FORMAT_xBGR: - glimage_sink->type = GST_GL_IMAGE_TYPE_xBGR; - break; - default: - break; - } + glimage_sink->type = format; #if 0 if (!glimage_sink->window) { |