Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <daniel.almeida@collabora.com>2022-11-07 22:32:50 +0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2022-11-10 18:26:22 +0300
commitccfb77c775d29bb9171dea11eec0d3a55c69dc0d (patch)
tree4e8ffe93781d79076efcdf125ec898613b655a47
parent4020542b3ca2ed320dd9816546df9d14394a213a (diff)
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>
-rw-r--r--subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json2
-rw-r--r--subprojects/gst-plugins-bad/gst/debugutils/gstvideocodectestsink.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json b/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json
index bca098d63a..55b58900da 100644
--- a/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json
+++ b/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json
@@ -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"
}
diff --git a/subprojects/gst-plugins-bad/gst/debugutils/gstvideocodectestsink.c b/subprojects/gst-plugins-bad/gst/debugutils/gstvideocodectestsink.c
index 0416659634..468957edd9 100644
--- a/subprojects/gst-plugins-bad/gst/debugutils/gstvideocodectestsink.c
+++ b/subprojects/gst-plugins-bad/gst/debugutils/gstvideocodectestsink.c
@@ -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: