From: Wim T. <wt...@us...> - 2002-07-11 15:49:11
|
CVS Root: /cvsroot/gstreamer Module: gst-plugins Changes by: wtay Date: Thu Jul 11 2002 08:49:10 PDT Log message: Setup the YV12 to RGB converter too Modified files: ext/hermes : gstcolorspace.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ext/hermes/gstcolorspace.c.diff?r1=1.10&r2=1.11 ====Begin Diffs==== Index: gstcolorspace.c =================================================================== RCS file: /cvsroot/gstreamer/gst-plugins/ext/hermes/gstcolorspace.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- gstcolorspace.c 21 Jun 2002 18:29:13 -0000 1.10 +++ gstcolorspace.c 11 Jul 2002 15:48:58 -0000 1.11 @@ -243,8 +243,19 @@ 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; } |