debugutils: videocodectestsink: add support for more formats

Add support for more formats so as to run the libvpx high bit depth test suite.
This means the files under CONFIG_VP9_HIGHBITDEPTH

This also allows running the yuv444p 8bit file in the regular 8 bit vp9 suite.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3356>
This commit is contained in:
Daniel 2022-11-07 16:32:50 -03:00 committed by GStreamer Marge Bot
parent 4020542b3c
commit ccfb77c775
2 changed files with 8 additions and 2 deletions

View file

@ -10954,7 +10954,7 @@
"long-name": "Video CODEC Test Sink",
"pad-templates": {
"sink": {
"caps": "video/x-raw:\n format: { I422_10LE, I420_10LE, Y42B, I420, NV12 }\n",
"caps": "video/x-raw:\n format: { Y444_12LE, I422_12LE, I420_12LE, Y444_10LE, I422_10LE, I420_10LE, Y444, Y42B, I420, NV12 }\n",
"direction": "sink",
"presence": "always"
}

View file

@ -80,7 +80,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw, format = { "
"I422_10LE, I420_10LE, Y42B, I420, NV12 }"));
"Y444_12LE, I422_12LE, I420_12LE,"
"Y444_10LE, I422_10LE, I420_10LE, Y444, Y42B, I420, NV12 }"));
#define gst_video_codec_test_sink_parent_class parent_class
G_DEFINE_TYPE (GstVideoCodecTestSink, gst_video_codec_test_sink,
@ -315,6 +316,11 @@ gst_video_codec_test_sink_set_caps (GstBaseSink * sink, GstCaps * caps)
case GST_VIDEO_FORMAT_I420_10LE:
case GST_VIDEO_FORMAT_Y42B:
case GST_VIDEO_FORMAT_I422_10LE:
case GST_VIDEO_FORMAT_I420_12LE:
case GST_VIDEO_FORMAT_I422_12LE:
case GST_VIDEO_FORMAT_Y444:
case GST_VIDEO_FORMAT_Y444_10LE:
case GST_VIDEO_FORMAT_Y444_12LE:
self->process = gst_video_codec_test_sink_process_i42x;
break;
case GST_VIDEO_FORMAT_NV12: