diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2002-07-11 15:48:58 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2002-07-11 15:48:58 +0000 |
commit | 9b61acff595c6bc688b10c1f49dd69b1ff045cf2 (patch) | |
tree | 770c3a4573c5780a922273c50a1aa41c3ca6c541 /ext | |
parent | 69287d05586357856f148726296aaa335e366295 (diff) | |
download | gst-plugins-bad-9b61acff595c6bc688b10c1f49dd69b1ff045cf2.tar.gz gst-plugins-bad-9b61acff595c6bc688b10c1f49dd69b1ff045cf2.tar.bz2 gst-plugins-bad-9b61acff595c6bc688b10c1f49dd69b1ff045cf2.zip |
Setup the YV12 to RGB converter too
Original commit message from CVS:
Setup the YV12 to RGB converter too
Diffstat (limited to 'ext')
-rw-r--r-- | ext/hermes/gstcolorspace.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/hermes/gstcolorspace.c b/ext/hermes/gstcolorspace.c index eda27295..dcd05ca4 100644 --- a/ext/hermes/gstcolorspace.c +++ b/ext/hermes/gstcolorspace.c @@ -243,10 +243,21 @@ colorspace_setup_converter (GstColorspace *space, GstCaps *from_caps, GstCaps *t break; case GST_MAKE_FOURCC ('Y','V','1','2'): switch (to_space) { + case GST_MAKE_FOURCC ('R','G','B',' '): + GST_INFO (GST_CAT_NEGOTIATION, "colorspace: YV12 to RGB"); + + gst_caps_get_int (to_caps, "bpp", &space->destbpp); + space->converter = gst_colorspace_yuv2rgb_get_converter (from_caps, to_caps); + space->type = GST_COLORSPACE_YUV_RGB; + return TRUE; case GST_MAKE_FOURCC ('I','4','2','0'): space->type = GST_COLORSPACE_420_SWAP; space->destbpp = 12; return TRUE; + case GST_MAKE_FOURCC ('Y','V','1','2'): + space->type = GST_COLORSPACE_NONE; + space->destbpp = 12; + return TRUE; } break; } |