]> git.sesse.net Git - ffmpeg/commitdiff
fate: Add dpx-probe test
authorHarry Mallon <harry.mallon@codex.online>
Mon, 7 Dec 2020 10:32:09 +0000 (10:32 +0000)
committerPaul B Mahol <onemda@gmail.com>
Thu, 17 Dec 2020 12:02:49 +0000 (13:02 +0100)
Signed-off-by: Harry Mallon <harry.mallon@codex.online>
tests/fate/image.mak
tests/ref/fate/dpx-probe [new file with mode: 0644]

index c453f0f79c95849f1db0e19ce44ca9a5fb59c406..0352e1c05ead4fb7e5f3d4a83b1c98d136da8540 100644 (file)
@@ -97,6 +97,10 @@ fate-dpx: CMD = framecrc -i $(TARGET_SAMPLES)/dpx/lighthouse_rgb48.dpx
 FATE_SAMPLES_AVCONV-$(call PARSERDEMDEC, DPX, IMAGE2PIPE, DPX) += fate-dpxparser
 fate-dpxparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/dpx/lena_4x_concat.dpx -sws_flags +accurate_rnd+bitexact
 
+FATE_IMAGE-$(call DEMDEC, IMAGE2, DPX) += fate-dpx-probe
+fate-dpx-probe: SRC = $(TARGET_SAMPLES)/dpx/cyan.dpx
+fate-dpx-probe: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_frames -show_entries frame=color_transfer,color_range,color_space,color_primaries,sample_aspect_ratio -print_format default -bitexact -v 0 -i "$(SRC)"
+
 FATE_EXR += fate-exr-slice-raw
 fate-exr-slice-raw: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_raw.exr -pix_fmt gbrapf32le
 
diff --git a/tests/ref/fate/dpx-probe b/tests/ref/fate/dpx-probe
new file mode 100644 (file)
index 0000000..c5d049d
--- /dev/null
@@ -0,0 +1,9 @@
+[FRAME]
+sample_aspect_ratio=1:1
+color_range=unknown
+color_space=unknown
+color_primaries=unknown
+color_transfer=unknown
+TAG:Creator=Apple Compressor
+TAG:Input Device=
+[/FRAME]