diff mbox series

[FFmpeg-devel] tests: Fate sample tests for DNxUncompressed

Message ID 20240913124849.1189833-2-ms+git@mur.at
State New
Headers show
Series [FFmpeg-devel] tests: Fate sample tests for DNxUncompressed | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 fail Make fate failed

Commit Message

Martin Schitter Sept. 13, 2024, 12:48 p.m. UTC
This is set of sample tests, which should cover all currently supportet
DNxUncompressed decoding capabilities.

I'll send the compressed samples attached to the next mail.

---
 tests/Makefile                      |  1 +
 tests/fate/dnxuc.mak                | 40 +++++++++++++++++++++++++++++
 tests/ref/fate/dnxuc-cb-rgb-10      |  8 ++++++
 tests/ref/fate/dnxuc-cb-rgb-12      |  8 ++++++
 tests/ref/fate/dnxuc-cb-rgb-8       |  8 ++++++
 tests/ref/fate/dnxuc-cb-rgb-float   |  8 ++++++
 tests/ref/fate/dnxuc-cb-rgb-half    |  8 ++++++
 tests/ref/fate/dnxuc-cb-yuv422-10   |  8 ++++++
 tests/ref/fate/dnxuc-cb-yuv422-12   |  8 ++++++
 tests/ref/fate/dnxuc-cb-yuv422-8    |  8 ++++++
 tests/ref/fate/dnxuc-ramp-rgb-10    |  8 ++++++
 tests/ref/fate/dnxuc-ramp-rgb-12    |  8 ++++++
 tests/ref/fate/dnxuc-ramp-rgb-8     |  8 ++++++
 tests/ref/fate/dnxuc-ramp-rgb-float |  8 ++++++
 tests/ref/fate/dnxuc-ramp-rgb-half  |  8 ++++++
 tests/ref/fate/dnxuc-ramp-yuv422-10 |  8 ++++++
 tests/ref/fate/dnxuc-ramp-yuv422-12 |  8 ++++++
 tests/ref/fate/dnxuc-ramp-yuv422-8  |  8 ++++++
 18 files changed, 169 insertions(+)
 create mode 100644 tests/fate/dnxuc.mak
 create mode 100644 tests/ref/fate/dnxuc-cb-rgb-10
 create mode 100644 tests/ref/fate/dnxuc-cb-rgb-12
 create mode 100644 tests/ref/fate/dnxuc-cb-rgb-8
 create mode 100644 tests/ref/fate/dnxuc-cb-rgb-float
 create mode 100644 tests/ref/fate/dnxuc-cb-rgb-half
 create mode 100644 tests/ref/fate/dnxuc-cb-yuv422-10
 create mode 100644 tests/ref/fate/dnxuc-cb-yuv422-12
 create mode 100644 tests/ref/fate/dnxuc-cb-yuv422-8
 create mode 100644 tests/ref/fate/dnxuc-ramp-rgb-10
 create mode 100644 tests/ref/fate/dnxuc-ramp-rgb-12
 create mode 100644 tests/ref/fate/dnxuc-ramp-rgb-8
 create mode 100644 tests/ref/fate/dnxuc-ramp-rgb-float
 create mode 100644 tests/ref/fate/dnxuc-ramp-rgb-half
 create mode 100644 tests/ref/fate/dnxuc-ramp-yuv422-10
 create mode 100644 tests/ref/fate/dnxuc-ramp-yuv422-12
 create mode 100644 tests/ref/fate/dnxuc-ramp-yuv422-8

Comments

Martin Schitter Sept. 13, 2024, 1:01 p.m. UTC | #1
Here are the necessary samples for the fate checks.

Please upload them to the fate sample collection.

thanks
martin


On 13.09.24 14:48, Martin Schitter wrote:
> I'll send the compressed samples attached to the next mail.
James Almer Sept. 20, 2024, 2:42 a.m. UTC | #2
On 9/13/2024 10:01 AM, martin schitter wrote:
> Here are the necessary samples for the fate checks.
> 
> Please upload them to the fate sample collection.
> 
> thanks
> martin

Done.
Martin Schitter Sept. 20, 2024, 2:43 a.m. UTC | #3
On 20.09.24 04:42, James Almer wrote:
> On 9/13/2024 10:01 AM, martin schitter wrote:
>> Here are the necessary samples for the fate checks.
>> Please upload them to the fate sample collection.
> 
> Done.

thanks!
diff mbox series

Patch

diff --git a/tests/Makefile b/tests/Makefile
index 9b70145..e073915 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -172,6 +172,7 @@  include $(SRC_PATH)/tests/fate/dca.mak
 include $(SRC_PATH)/tests/fate/demux.mak
 include $(SRC_PATH)/tests/fate/dfa.mak
 include $(SRC_PATH)/tests/fate/dnxhd.mak
+include $(SRC_PATH)/tests/fate/dnxuc.mak
 include $(SRC_PATH)/tests/fate/dpcm.mak
 include $(SRC_PATH)/tests/fate/dvvideo.mak
 include $(SRC_PATH)/tests/fate/ea.mak
diff --git a/tests/fate/dnxuc.mak b/tests/fate/dnxuc.mak
new file mode 100644
index 0000000..f7cc2f4
--- /dev/null
+++ b/tests/fate/dnxuc.mak
@@ -0,0 +1,40 @@ 
+FATE_DNXUC_CB = fate-dnxuc-cb-rgb-8 \
+                fate-dnxuc-cb-rgb-10 \
+                fate-dnxuc-cb-rgb-12 \
+                fate-dnxuc-cb-rgb-half \
+                fate-dnxuc-cb-rgb-float \
+                fate-dnxuc-cb-yuv422-8 \
+                fate-dnxuc-cb-yuv422-10 \
+                fate-dnxuc-cb-yuv422-12
+
+FATE_DNXUC_RAMP =   fate-dnxuc-ramp-rgb-8 \
+                    fate-dnxuc-ramp-rgb-10 \
+                    fate-dnxuc-ramp-rgb-12 \
+                    fate-dnxuc-ramp-rgb-half \
+                    fate-dnxuc-ramp-rgb-float \
+                    fate-dnxuc-ramp-yuv422-8 \
+                    fate-dnxuc-ramp-yuv422-10 \
+                    fate-dnxuc-ramp-yuv422-12
+
+FATE_DNXUC-$(call FRAMECRC, MXF, DNXUC) += $(FATE_DNXUC_CB) $(FATE_DNXUC_RAMP)
+
+FATE_SAMPLES_FFMPEG += $(FATE_DNXUC-yes)
+fate-dnxuc: $(FATE_DNXUC-yes) $(FATE_VCODEC_DNXUC)
+
+fate-dnxuc-cb-rgb-8: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/cb_rgb_8.mxf
+fate-dnxuc-cb-rgb-10: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/cb_rgb_10.mxf
+fate-dnxuc-cb-rgb-12: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/cb_rgb_12.mxf
+fate-dnxuc-cb-rgb-half: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/cb_rgb_half.mxf
+fate-dnxuc-cb-rgb-float: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/cb_rgb_float.mxf
+fate-dnxuc-cb-yuv422-8: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/cb_yuv422_8.mxf
+fate-dnxuc-cb-yuv422-10: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/cb_yuv422_10.mxf
+fate-dnxuc-cb-yuv422-12: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/cb_yuv422_12.mxf
+
+fate-dnxuc-ramp-rgb-8: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/ramp_rgb_8.mxf
+fate-dnxuc-ramp-rgb-10: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/ramp_rgb_10.mxf
+fate-dnxuc-ramp-rgb-12: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/ramp_rgb_12.mxf
+fate-dnxuc-ramp-rgb-half: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/ramp_rgb_half.mxf
+fate-dnxuc-ramp-rgb-float: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/ramp_rgb_float.mxf
+fate-dnxuc-ramp-yuv422-8: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/ramp_yuv422_8.mxf
+fate-dnxuc-ramp-yuv422-10: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/ramp_yuv422_10.mxf
+fate-dnxuc-ramp-yuv422-12: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/dnxuc/ramp_yuv422_12.mxf
diff --git a/tests/ref/fate/dnxuc-cb-rgb-10 b/tests/ref/fate/dnxuc-cb-rgb-10
new file mode 100644
index 0000000..398e0da
--- /dev/null
+++ b/tests/ref/fate/dnxuc-cb-rgb-10
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,   786432, 0x2e402ec2
+0,          1,          1,        1,   786432, 0x2e402ec2
+0,          2,          2,        1,   786432, 0x2e402ec2
diff --git a/tests/ref/fate/dnxuc-cb-rgb-12 b/tests/ref/fate/dnxuc-cb-rgb-12
new file mode 100644
index 0000000..4e3235f
--- /dev/null
+++ b/tests/ref/fate/dnxuc-cb-rgb-12
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,   786432, 0x6fb11356
+0,          1,          1,        1,   786432, 0x6fb11356
+0,          2,          2,        1,   786432, 0x6fb11356
diff --git a/tests/ref/fate/dnxuc-cb-rgb-8 b/tests/ref/fate/dnxuc-cb-rgb-8
new file mode 100644
index 0000000..189babc
--- /dev/null
+++ b/tests/ref/fate/dnxuc-cb-rgb-8
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,   393216, 0xc1f6a4cc
+0,          1,          1,        1,   393216, 0xc1f6a4cc
+0,          2,          2,        1,   393216, 0xc1f6a4cc
diff --git a/tests/ref/fate/dnxuc-cb-rgb-float b/tests/ref/fate/dnxuc-cb-rgb-float
new file mode 100644
index 0000000..95ab4e5
--- /dev/null
+++ b/tests/ref/fate/dnxuc-cb-rgb-float
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,  1572864, 0x88241923
+0,          1,          1,        1,  1572864, 0x88241923
+0,          2,          2,        1,  1572864, 0x88241923
diff --git a/tests/ref/fate/dnxuc-cb-rgb-half b/tests/ref/fate/dnxuc-cb-rgb-half
new file mode 100644
index 0000000..b7e9406
--- /dev/null
+++ b/tests/ref/fate/dnxuc-cb-rgb-half
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,  1048576, 0xfc459149
+0,          1,          1,        1,  1048576, 0xfc459149
+0,          2,          2,        1,  1048576, 0xfc459149
diff --git a/tests/ref/fate/dnxuc-cb-yuv422-10 b/tests/ref/fate/dnxuc-cb-yuv422-10
new file mode 100644
index 0000000..6e7c537
--- /dev/null
+++ b/tests/ref/fate/dnxuc-cb-yuv422-10
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,   524288, 0xad829843
+0,          1,          1,        1,   524288, 0xad829843
+0,          2,          2,        1,   524288, 0xad829843
diff --git a/tests/ref/fate/dnxuc-cb-yuv422-12 b/tests/ref/fate/dnxuc-cb-yuv422-12
new file mode 100644
index 0000000..01e5976
--- /dev/null
+++ b/tests/ref/fate/dnxuc-cb-yuv422-12
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,   524288, 0x70277284
+0,          1,          1,        1,   524288, 0x70277284
+0,          2,          2,        1,   524288, 0x70277284
diff --git a/tests/ref/fate/dnxuc-cb-yuv422-8 b/tests/ref/fate/dnxuc-cb-yuv422-8
new file mode 100644
index 0000000..1e4bb3e
--- /dev/null
+++ b/tests/ref/fate/dnxuc-cb-yuv422-8
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,   262144, 0x12299f3f
+0,          1,          1,        1,   262144, 0x12299f3f
+0,          2,          2,        1,   262144, 0x12299f3f
diff --git a/tests/ref/fate/dnxuc-ramp-rgb-10 b/tests/ref/fate/dnxuc-ramp-rgb-10
new file mode 100644
index 0000000..99a2eb9
--- /dev/null
+++ b/tests/ref/fate/dnxuc-ramp-rgb-10
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,   786432, 0xe4d06700
+0,          1,          1,        1,   786432, 0xe4d06700
+0,          2,          2,        1,   786432, 0xe4d06700
diff --git a/tests/ref/fate/dnxuc-ramp-rgb-12 b/tests/ref/fate/dnxuc-ramp-rgb-12
new file mode 100644
index 0000000..19eb687
--- /dev/null
+++ b/tests/ref/fate/dnxuc-ramp-rgb-12
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,   786432, 0xb8c802a4
+0,          1,          1,        1,   786432, 0xb8c802a4
+0,          2,          2,        1,   786432, 0xb8c802a4
diff --git a/tests/ref/fate/dnxuc-ramp-rgb-8 b/tests/ref/fate/dnxuc-ramp-rgb-8
new file mode 100644
index 0000000..2c1caae
--- /dev/null
+++ b/tests/ref/fate/dnxuc-ramp-rgb-8
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,   393216, 0xd1f001f2
+0,          1,          1,        1,   393216, 0xd1f001f2
+0,          2,          2,        1,   393216, 0xd1f001f2
diff --git a/tests/ref/fate/dnxuc-ramp-rgb-float b/tests/ref/fate/dnxuc-ramp-rgb-float
new file mode 100644
index 0000000..c35172c
--- /dev/null
+++ b/tests/ref/fate/dnxuc-ramp-rgb-float
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,  1572864, 0xda4a5914
+0,          1,          1,        1,  1572864, 0xda4a5914
+0,          2,          2,        1,  1572864, 0xda4a5914
diff --git a/tests/ref/fate/dnxuc-ramp-rgb-half b/tests/ref/fate/dnxuc-ramp-rgb-half
new file mode 100644
index 0000000..eee882a
--- /dev/null
+++ b/tests/ref/fate/dnxuc-ramp-rgb-half
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,  1048576, 0x0dda0807
+0,          1,          1,        1,  1048576, 0x0dda0807
+0,          2,          2,        1,  1048576, 0x0dda0807
diff --git a/tests/ref/fate/dnxuc-ramp-yuv422-10 b/tests/ref/fate/dnxuc-ramp-yuv422-10
new file mode 100644
index 0000000..ef158a5
--- /dev/null
+++ b/tests/ref/fate/dnxuc-ramp-yuv422-10
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,   524288, 0xb86e482d
+0,          1,          1,        1,   524288, 0xb86e482d
+0,          2,          2,        1,   524288, 0xb86e482d
diff --git a/tests/ref/fate/dnxuc-ramp-yuv422-12 b/tests/ref/fate/dnxuc-ramp-yuv422-12
new file mode 100644
index 0000000..4596dc8
--- /dev/null
+++ b/tests/ref/fate/dnxuc-ramp-yuv422-12
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,   524288, 0x9bbd5677
+0,          1,          1,        1,   524288, 0x9bbd5677
+0,          2,          2,        1,   524288, 0x9bbd5677
diff --git a/tests/ref/fate/dnxuc-ramp-yuv422-8 b/tests/ref/fate/dnxuc-ramp-yuv422-8
new file mode 100644
index 0000000..bb6fd38
--- /dev/null
+++ b/tests/ref/fate/dnxuc-ramp-yuv422-8
@@ -0,0 +1,8 @@ 
+#tb 0: 1/24
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x256
+#sar 0: 1/1
+0,          0,          0,        1,   262144, 0x386e0fa6
+0,          1,          1,        1,   262144, 0x386e0fa6
+0,          2,          2,        1,   262144, 0x386e0fa6