mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
tests: enforce I420 format
Tests are assuming video is I420 but are not actually enforcing it. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/689>
This commit is contained in:
parent
7edbc3fd7d
commit
1b4ab9f033
4 changed files with 5 additions and 5 deletions
|
@ -1580,7 +1580,7 @@ GST_START_TEST (test_obscured_skipped)
|
|||
gdouble alpha0, alpha1;
|
||||
const gchar *caps_str;
|
||||
|
||||
caps_str = "video/x-raw";
|
||||
caps_str = "video/x-raw, format=I420";
|
||||
buffer_mapped = FALSE;
|
||||
/* Set else to compositor defaults */
|
||||
alpha0 = alpha1 = 1.0;
|
||||
|
@ -1602,7 +1602,7 @@ GST_START_TEST (test_obscured_skipped)
|
|||
_test_obscured (caps_str, xpos0, ypos0, width0, height0, alpha0, xpos1, ypos1,
|
||||
width1, height1, alpha1, out_width, out_height);
|
||||
fail_unless (buffer_mapped == TRUE);
|
||||
caps_str = "video/x-raw";
|
||||
caps_str = "video/x-raw, format=I420";
|
||||
buffer_mapped = FALSE;
|
||||
|
||||
alpha1 = 0.0;
|
||||
|
|
|
@ -3,7 +3,7 @@ meta,
|
|||
ignore-eos=true,
|
||||
args = {
|
||||
# We just want each frame to be different, and we just check their content by 'id'
|
||||
"videotestsrc ! video/x-raw,framerate=10/1,width=320,height=240 ! videorate name=videorate ! fakesink sync=true qos=true",
|
||||
"videotestsrc ! video/x-raw,format=I420,framerate=10/1,width=320,height=240 ! videorate name=videorate ! fakesink sync=true qos=true",
|
||||
},
|
||||
configs = {
|
||||
# Check dataflow on both videorate pads
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
meta,
|
||||
args = {
|
||||
# We just want each frame to be different, and we just check their content by 'id'
|
||||
"videotestsrc ! video/x-raw,framerate=10/1,width=320,height=240 ! videorate name=videorate ! fakesink sync=true qos=true",
|
||||
"videotestsrc ! video/x-raw,format=I420,framerate=10/1,width=320,height=240 ! videorate name=videorate ! fakesink sync=true qos=true",
|
||||
},
|
||||
configs = {
|
||||
# Check dataflow on both videorate pads
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
meta,
|
||||
args = {
|
||||
"videotestsrc pattern=ball animation-mode=frames ! video/x-raw,framerate=30/1,width=320,height=240 $(decoder) videorate name=videorate rate=$(rate) ! fakesink sync=true qos=true",
|
||||
"videotestsrc pattern=ball animation-mode=frames ! video/x-raw,format=I420,framerate=30/1,width=320,height=240 $(decoder) videorate name=videorate rate=$(rate) ! fakesink sync=true qos=true",
|
||||
},
|
||||
configs = {
|
||||
"$(validateflow), pad=videorate:sink, buffers-checksum=as-id, ignored-event-types={ tag }",
|
||||
|
|
Loading…
Reference in a new issue