v4l2codecs: Enable Verisilicon 10bit 4:2:0 support

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3447>
This commit is contained in:
Nicolas Dufresne 2022-11-21 11:33:09 -05:00 committed by GStreamer Marge Bot
parent c17e648fcf
commit 0f5d10f617
2 changed files with 5 additions and 1 deletions

View file

@ -39,6 +39,7 @@ static struct FormatEntry format_map[] = {
{V4L2_PIX_FMT_MM21, 2, GST_VIDEO_FORMAT_NV12_16L32S, 8, 420}, {V4L2_PIX_FMT_MM21, 2, GST_VIDEO_FORMAT_NV12_16L32S, 8, 420},
{V4L2_PIX_FMT_YUV420M, 3, GST_VIDEO_FORMAT_I420, 8, 420}, {V4L2_PIX_FMT_YUV420M, 3, GST_VIDEO_FORMAT_I420, 8, 420},
{V4L2_PIX_FMT_P010, 1, GST_VIDEO_FORMAT_P010_10LE, 16, 420}, {V4L2_PIX_FMT_P010, 1, GST_VIDEO_FORMAT_P010_10LE, 16, 420},
{V4L2_PIX_FMT_NV15_4L4, 1, GST_VIDEO_FORMAT_NV12_10LE40_4L4, 10, 420},
{0,} {0,}
}; };

View file

@ -24,7 +24,10 @@
#include <gst/video/video.h> #include <gst/video/video.h>
#include "linux/videodev2.h" #include "linux/videodev2.h"
#define GST_V4L2_DEFAULT_VIDEO_FORMATS "{ NV12, YUY2, NV12_4L4, NV12_32L32, NV12_16L32S, I420, P010_10LE}" #define GST_V4L2_DEFAULT_VIDEO_FORMATS "{ " \
"P010_10LE, NV12_10LE40_4L4, " \
"NV12, YUY2, NV12_4L4, NV12_32L32, NV12_16L32S, I420" \
"}"
gboolean gst_v4l2_format_to_video_info (struct v4l2_format * fmt, gboolean gst_v4l2_format_to_video_info (struct v4l2_format * fmt,
GstVideoInfo * out_info); GstVideoInfo * out_info);