mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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:
parent
4020542b3c
commit
ccfb77c775
2 changed files with 8 additions and 2 deletions
|
@ -10954,7 +10954,7 @@
|
||||||
"long-name": "Video CODEC Test Sink",
|
"long-name": "Video CODEC Test Sink",
|
||||||
"pad-templates": {
|
"pad-templates": {
|
||||||
"sink": {
|
"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",
|
"direction": "sink",
|
||||||
"presence": "always"
|
"presence": "always"
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("video/x-raw, format = { "
|
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
|
#define gst_video_codec_test_sink_parent_class parent_class
|
||||||
G_DEFINE_TYPE (GstVideoCodecTestSink, gst_video_codec_test_sink,
|
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_I420_10LE:
|
||||||
case GST_VIDEO_FORMAT_Y42B:
|
case GST_VIDEO_FORMAT_Y42B:
|
||||||
case GST_VIDEO_FORMAT_I422_10LE:
|
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;
|
self->process = gst_video_codec_test_sink_process_i42x;
|
||||||
break;
|
break;
|
||||||
case GST_VIDEO_FORMAT_NV12:
|
case GST_VIDEO_FORMAT_NV12:
|
||||||
|
|
Loading…
Reference in a new issue