v4l2object: Add vp8 support

https://bugzilla.gnome.org/show_bug.cgi?id=720568
This commit is contained in:
Benjamin Gaignard 2013-12-16 17:29:30 -05:00 committed by Nicolas Dufresne
parent e017666645
commit 062f4f8710

View file

@ -1039,6 +1039,9 @@ static const GstV4L2FormatDesc gst_v4l2_formats[] = {
#ifdef V4L2_PIX_FMT_H264
{V4L2_PIX_FMT_H264, TRUE, GST_V4L2_CODEC},
#endif
#ifdef V4L2_PIX_FMT_VP8
{V4L2_PIX_FMT_VP8, TRUE, GST_V4L2_CODEC},
#endif
/* Vendor-specific formats */
{V4L2_PIX_FMT_WNVA, TRUE, GST_V4L2_CODEC},
@ -1488,6 +1491,11 @@ gst_v4l2_object_v4l2fourcc_to_structure (guint32 fourcc)
"stream-format", G_TYPE_STRING, "byte-stream", "alignment",
G_TYPE_STRING, "au", NULL);
break;
#endif
#ifdef V4L2_PIX_FMT_VP8
case V4L2_PIX_FMT_VP8:
structure = gst_structure_new_empty ("video/x-vp8");
break;
#endif
case V4L2_PIX_FMT_RGB332:
case V4L2_PIX_FMT_RGB555X:
@ -1781,6 +1789,10 @@ gst_v4l2_object_get_caps_info (GstV4l2Object * v4l2object, GstCaps * caps,
} else if (g_str_equal (mimetype, "video/x-h264")) {
fourcc = V4L2_PIX_FMT_H264;
#endif
#ifdef V4L2_PIX_FMT_VP8
} else if (g_str_equal (mimetype, "video/x-vp8")) {
fourcc = V4L2_PIX_FMT_VP8;
#endif
#ifdef V4L2_PIX_FMT_SBGGR8
} else if (g_str_equal (mimetype, "video/x-bayer")) {
fourcc = V4L2_PIX_FMT_SBGGR8;