textoverlay: draw shaded background for some more video formats

https://bugzilla.gnome.org/show_bug.cgi?id=687817
This commit is contained in:
Tim-Philipp Müller 2012-11-07 09:34:11 +00:00
parent bedbfd0091
commit 74343165e1

View file

@ -1587,12 +1587,20 @@ gst_base_text_overlay_shade_background (GstBaseTextOverlay * overlay,
switch (overlay->format) { switch (overlay->format) {
case GST_VIDEO_FORMAT_I420: case GST_VIDEO_FORMAT_I420:
case GST_VIDEO_FORMAT_YV12:
case GST_VIDEO_FORMAT_NV12: case GST_VIDEO_FORMAT_NV12:
case GST_VIDEO_FORMAT_NV21: case GST_VIDEO_FORMAT_NV21:
case GST_VIDEO_FORMAT_Y41B:
case GST_VIDEO_FORMAT_Y42B:
case GST_VIDEO_FORMAT_Y444:
case GST_VIDEO_FORMAT_YUV9:
case GST_VIDEO_FORMAT_YVU9:
gst_base_text_overlay_shade_planar_Y (overlay, frame, x0, x1, y0, y1); gst_base_text_overlay_shade_planar_Y (overlay, frame, x0, x1, y0, y1);
break; break;
case GST_VIDEO_FORMAT_AYUV: case GST_VIDEO_FORMAT_AYUV:
case GST_VIDEO_FORMAT_UYVY: case GST_VIDEO_FORMAT_UYVY:
case GST_VIDEO_FORMAT_YUY2:
case GST_VIDEO_FORMAT_v308:
gst_base_text_overlay_shade_packed_Y (overlay, frame, x0, x1, y0, y1); gst_base_text_overlay_shade_packed_Y (overlay, frame, x0, x1, y0, y1);
break; break;
case GST_VIDEO_FORMAT_xRGB: case GST_VIDEO_FORMAT_xRGB: