From: David Schleef Date: Sun, 14 Mar 2010 23:17:46 +0000 (-0700) Subject: videotestsrc: Add color-matrix to template caps X-Git-Tag: RELEASE-0.10.29~131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1974322eacd68050546a003460e7956e6f76334;p=platform%2Fupstream%2Fgst-plugins-base.git videotestsrc: Add color-matrix to template caps --- diff --git a/gst/videotestsrc/videotestsrc.c b/gst/videotestsrc/videotestsrc.c index 5208894..6f87b99 100644 --- a/gst/videotestsrc/videotestsrc.c +++ b/gst/videotestsrc/videotestsrc.c @@ -672,8 +672,24 @@ paint_get_structure (struct fourcc_list_struct * format) NULL); break; case VTS_YUV: + { + GValue value_list = { 0 }; + GValue value = { 0 }; + structure = gst_structure_new ("video/x-raw-yuv", "format", GST_TYPE_FOURCC, fourcc, NULL); + + g_value_init (&value_list, GST_TYPE_LIST); + + g_value_init (&value, G_TYPE_STRING); + g_value_set_string (&value, "sdtv"); + gst_value_list_append_value (&value_list, &value); + + g_value_set_string (&value, "hdtv"); + gst_value_list_append_value (&value_list, &value); + + gst_structure_set_value (structure, "color-matrix", &value_list); + } break; case VTS_BAYER: structure = gst_structure_new ("video/x-raw-bayer", NULL);