Commit 062f4f87 authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Nicolas Dufresne
Browse files
parent e0176666
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment