From 430bec86665fa6adcfa2bc4d6cb4a54f79630f9f Mon Sep 17 00:00:00 2001 From: James Almer Date: Wed, 30 Oct 2024 10:24:02 -0300 Subject: [PATCH] fate/filter-video: add more rgbtestsrc tests Signed-off-by: James Almer --- tests/fate/filter-video.mak | 12 ++++++++++++ tests/ref/fate/filter-rgbtestsrc-gbrp | 10 ++++++++++ tests/ref/fate/filter-rgbtestsrc-gbrp12 | 10 ++++++++++ tests/ref/fate/filter-rgbtestsrc-rgba | 10 ++++++++++ tests/ref/fate/filter-rgbtestsrc-x2rgb10le | 10 ++++++++++ 5 files changed, 52 insertions(+) create mode 100644 tests/ref/fate/filter-rgbtestsrc-gbrp create mode 100644 tests/ref/fate/filter-rgbtestsrc-gbrp12 create mode 100644 tests/ref/fate/filter-rgbtestsrc-rgba create mode 100644 tests/ref/fate/filter-rgbtestsrc-x2rgb10le diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index c956a81050..8bc9de7b05 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -100,6 +100,18 @@ fate-filter-pal100bars: CMD = framecrc -lavfi pal100bars=rate=5:duration=1 -pix_ FATE_FILTER-$(call FILTERFRAMECRC, RGBTESTSRC) += fate-filter-rgbtestsrc fate-filter-rgbtestsrc: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1 -pix_fmt rgb24 +FATE_FILTER-$(call FILTERFRAMECRC, RGBTESTSRC) += fate-filter-rgbtestsrc-rgba +fate-filter-rgbtestsrc-rgba: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1 -pix_fmt rgba + +FATE_FILTER-$(call FILTERFRAMECRC, RGBTESTSRC) += fate-filter-rgbtestsrc-gbrp +fate-filter-rgbtestsrc-gbrp: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1 -pix_fmt gbrp + +FATE_FILTER-$(call FILTERFRAMECRC, RGBTESTSRC SCALE) += fate-filter-rgbtestsrc-gbrp12 +fate-filter-rgbtestsrc-gbrp12: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1,format=gbrp12,scale -pix_fmt gbrp12le + +FATE_FILTER-$(call FILTERFRAMECRC, RGBTESTSRC) += fate-filter-rgbtestsrc-x2rgb10le +fate-filter-rgbtestsrc-x2rgb10le: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1 -pix_fmt x2rgb10le + FATE_FILTER-$(call FILTERFRAMECRC, SMPTEBARS) += fate-filter-smptebars fate-filter-smptebars: CMD = framecrc -lavfi smptebars=rate=5:duration=1 -pix_fmt yuv420p diff --git a/tests/ref/fate/filter-rgbtestsrc-gbrp b/tests/ref/fate/filter-rgbtestsrc-gbrp new file mode 100644 index 0000000000..0f8c0c7416 --- /dev/null +++ b/tests/ref/fate/filter-rgbtestsrc-gbrp @@ -0,0 +1,10 @@ +#tb 0: 1/5 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 320x240 +#sar 0: 1/1 +0, 0, 0, 1, 230400, 0x0dbc18bb +0, 1, 1, 1, 230400, 0x0dbc18bb +0, 2, 2, 1, 230400, 0x0dbc18bb +0, 3, 3, 1, 230400, 0x0dbc18bb +0, 4, 4, 1, 230400, 0x0dbc18bb diff --git a/tests/ref/fate/filter-rgbtestsrc-gbrp12 b/tests/ref/fate/filter-rgbtestsrc-gbrp12 new file mode 100644 index 0000000000..3a409fb2a4 --- /dev/null +++ b/tests/ref/fate/filter-rgbtestsrc-gbrp12 @@ -0,0 +1,10 @@ +#tb 0: 1/5 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 320x240 +#sar 0: 1/1 +0, 0, 0, 1, 460800, 0x3fd1daca +0, 1, 1, 1, 460800, 0x3fd1daca +0, 2, 2, 1, 460800, 0x3fd1daca +0, 3, 3, 1, 460800, 0x3fd1daca +0, 4, 4, 1, 460800, 0x3fd1daca diff --git a/tests/ref/fate/filter-rgbtestsrc-rgba b/tests/ref/fate/filter-rgbtestsrc-rgba new file mode 100644 index 0000000000..de1d9c7086 --- /dev/null +++ b/tests/ref/fate/filter-rgbtestsrc-rgba @@ -0,0 +1,10 @@ +#tb 0: 1/5 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 320x240 +#sar 0: 1/1 +0, 0, 0, 1, 307200, 0xf238fe31 +0, 1, 1, 1, 307200, 0xf238fe31 +0, 2, 2, 1, 307200, 0xf238fe31 +0, 3, 3, 1, 307200, 0xf238fe31 +0, 4, 4, 1, 307200, 0xf238fe31 diff --git a/tests/ref/fate/filter-rgbtestsrc-x2rgb10le b/tests/ref/fate/filter-rgbtestsrc-x2rgb10le new file mode 100644 index 0000000000..fec42b3bdb --- /dev/null +++ b/tests/ref/fate/filter-rgbtestsrc-x2rgb10le @@ -0,0 +1,10 @@ +#tb 0: 1/5 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 320x240 +#sar 0: 1/1 +0, 0, 0, 1, 307200, 0x88747fea +0, 1, 1, 1, 307200, 0x88747fea +0, 2, 2, 1, 307200, 0x88747fea +0, 3, 3, 1, 307200, 0x88747fea +0, 4, 4, 1, 307200, 0x88747fea