From: Sebastian Dröge Date: Wed, 7 Apr 2010 14:24:38 +0000 (+0200) Subject: videobox: Add support for filling the background with red, yellow and white X-Git-Tag: RELEASE-0.10.22~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02a4a150e8e82654147a312850b94fe70cef16dd;p=platform%2Fupstream%2Fgst-plugins-good.git videobox: Add support for filling the background with red, yellow and white --- diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index 8223c3b..392d3db 100644 --- a/gst/videobox/gstvideobox.c +++ b/gst/videobox/gstvideobox.c @@ -69,17 +69,26 @@ GST_DEBUG_CATEGORY_STATIC (videobox_debug); #define GST_CAT_DEFAULT videobox_debug /* From videotestsrc.c */ -static const guint8 yuv_sdtv_colors_Y[VIDEO_BOX_FILL_LAST] = { 16, 145, 41 }; -static const guint8 yuv_sdtv_colors_U[VIDEO_BOX_FILL_LAST] = { 128, 54, 240 }; -static const guint8 yuv_sdtv_colors_V[VIDEO_BOX_FILL_LAST] = { 128, 34, 110 }; - -static const guint8 yuv_hdtv_colors_Y[VIDEO_BOX_FILL_LAST] = { 16, 173, 32 }; -static const guint8 yuv_hdtv_colors_U[VIDEO_BOX_FILL_LAST] = { 128, 42, 240 }; -static const guint8 yuv_hdtv_colors_V[VIDEO_BOX_FILL_LAST] = { 128, 26, 118 }; - -static const guint8 rgb_colors_R[VIDEO_BOX_FILL_LAST] = { 0, 255, 0 }; -static const guint8 rgb_colors_G[VIDEO_BOX_FILL_LAST] = { 0, 0, 0 }; -static const guint8 rgb_colors_B[VIDEO_BOX_FILL_LAST] = { 0, 255, 255 }; +static const guint8 yuv_sdtv_colors_Y[VIDEO_BOX_FILL_LAST] = + { 16, 145, 41, 81, 210, 235 }; +static const guint8 yuv_sdtv_colors_U[VIDEO_BOX_FILL_LAST] = + { 128, 54, 240, 90, 16, 128 }; +static const guint8 yuv_sdtv_colors_V[VIDEO_BOX_FILL_LAST] = + { 128, 34, 110, 240, 146, 128 }; + +static const guint8 yuv_hdtv_colors_Y[VIDEO_BOX_FILL_LAST] = + { 16, 173, 32, 63, 219, 235 }; +static const guint8 yuv_hdtv_colors_U[VIDEO_BOX_FILL_LAST] = + { 128, 42, 240, 102, 16, 128 }; +static const guint8 yuv_hdtv_colors_V[VIDEO_BOX_FILL_LAST] = + { 128, 26, 118, 240, 138, 128 }; + +static const guint8 rgb_colors_R[VIDEO_BOX_FILL_LAST] = + { 0, 0, 0, 255, 255, 255 }; +static const guint8 rgb_colors_G[VIDEO_BOX_FILL_LAST] = + { 0, 255, 0, 0, 255, 255 }; +static const guint8 rgb_colors_B[VIDEO_BOX_FILL_LAST] = + { 0, 0, 255, 0, 0, 255 }; /* Generated by -bad/ext/cog/generate_tables */ static const int cog_ycbcr_to_rgb_matrix_8bit_hdtv[] = { @@ -1165,8 +1174,11 @@ gst_video_box_fill_get_type (void) static GType video_box_fill_type = 0; static const GEnumValue video_box_fill[] = { {VIDEO_BOX_FILL_BLACK, "Black", "black"}, - {VIDEO_BOX_FILL_GREEN, "Colorkey green", "green"}, - {VIDEO_BOX_FILL_BLUE, "Colorkey blue", "blue"}, + {VIDEO_BOX_FILL_GREEN, "Green", "green"}, + {VIDEO_BOX_FILL_BLUE, "Blue", "blue"}, + {VIDEO_BOX_FILL_RED, "Red", "red"}, + {VIDEO_BOX_FILL_YELLOW, "Yellow", "yellow"}, + {VIDEO_BOX_FILL_WHITE, "White", "white"}, {0, NULL, NULL}, }; diff --git a/gst/videobox/gstvideobox.h b/gst/videobox/gstvideobox.h index 7e5a1a7..f85f216 100644 --- a/gst/videobox/gstvideobox.h +++ b/gst/videobox/gstvideobox.h @@ -43,6 +43,9 @@ typedef enum VIDEO_BOX_FILL_BLACK, VIDEO_BOX_FILL_GREEN, VIDEO_BOX_FILL_BLUE, + VIDEO_BOX_FILL_RED, + VIDEO_BOX_FILL_YELLOW, + VIDEO_BOX_FILL_WHITE, VIDEO_BOX_FILL_LAST } GstVideoBoxFill;