mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
v4l2object: Add vp8 support
https://bugzilla.gnome.org/show_bug.cgi?id=720568
This commit is contained in:
parent
e017666645
commit
062f4f8710
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue