fate/lavf-image: fix passed arguments for some high bit depth tests
authorJames Almer <jamrial@gmail.com>
Thu, 14 Mar 2019 20:07:15 +0000 (17:07 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 14 Mar 2019 20:15:28 +0000 (17:15 -0300)
Should fix fate failures on big endian targets.

Signed-off-by: James Almer <jamrial@gmail.com>
tests/fate-run.sh
tests/fate/lavf-image.mak
tests/ref/lavf/gray16be.pam
tests/ref/lavf/rgb48be.pam
tests/ref/lavf/rgb48le_10.dpx

index 4c77b2d..5c2732b 100755 (executable)
@@ -325,9 +325,9 @@ lavf_image(){
     outdir="tests/data/images/$t"
     mkdir -p "$outdir"
     file=${outdir}/%02d.$t
-    run_avconv $DEC_OPTS $1 -f image2 -c:v pgmyuv -i $raw_src "$ENC_OPTS -metadata title=lavftest" $2 -frames 13 -y -qscale 10 $target_path/$file
+    run_avconv $DEC_OPTS -f image2 -c:v pgmyuv -i $raw_src $1 "$ENC_OPTS -metadata title=lavftest" -frames 13 -y -qscale 10 $target_path/$file
     do_md5sum ${outdir}/02.$t
-    do_avconv_crc $file $DEC_OPTS $2 -i $target_path/$file
+    do_avconv_crc $file $DEC_OPTS $2 -i $target_path/$file $2
     echo $(wc -c ${outdir}/02.$t)
 }
 
index f22d187..dbbd374 100644 (file)
@@ -38,27 +38,27 @@ $(FATE_LAVF_IMAGES): CMD = lavf_image
 $(FATE_LAVF_IMAGES): REF = $(SRC_PATH)/tests/ref/lavf/$(@:fate-lavf-%=%)
 $(FATE_LAVF_IMAGES): $(VREF)
 
-fate-lavf-jpg: CMD = lavf_image "" "-pix_fmt yuvj420p"
-fate-lavf-tiff: CMD = lavf_image "" "-pix_fmt rgb24"
-fate-lavf-gbrp10le.dpx: CMD = lavf_image "" "-pix_fmt gbrp10le"
-fate-lavf-gbrp12le.dpx: CMD = lavf_image "" "-pix_fmt gbrp12le"
-fate-lavf-rgb48le.dpx: CMD = lavf_image "" "-pix_fmt rgb48le"
+fate-lavf-jpg: CMD = lavf_image "-pix_fmt yuvj420p"
+fate-lavf-tiff: CMD = lavf_image "-pix_fmt rgb24"
+fate-lavf-gbrp10le.dpx: CMD = lavf_image "-pix_fmt gbrp10le" "-pix_fmt gbrp10le"
+fate-lavf-gbrp12le.dpx: CMD = lavf_image "-pix_fmt gbrp12le" "-pix_fmt gbrp12le"
+fate-lavf-rgb48le.dpx: CMD = lavf_image "-pix_fmt rgb48le"
 fate-lavf-rgb48le_10.dpx: CMD = lavf_image "-pix_fmt rgb48le -bits_per_raw_sample 10" "-pix_fmt rgb48le"
-fate-lavf-rgba64le.dpx: CMD = lavf_image "" "-pix_fmt rgba64le"
-fate-lavf-rgba.pam: CMD = lavf_image "" "-pix_fmt rgba"
-fate-lavf-gray.pam: CMD = lavf_image "" "-pix_fmt gray"
-fate-lavf-gray16be.pam: CMD = lavf_image "" "-pix_fmt gray16be"
-fate-lavf-rgb48be.pam: CMD = lavf_image "" "-pix_fmt rgb48be"
-fate-lavf-monob.pam: CMD = lavf_image "" "-pix_fmt monob"
-fate-lavf-gray16be.png: CMD = lavf_image "" "-pix_fmt gray16be"
-fate-lavf-rgb48be.png: CMD = lavf_image "" "-pix_fmt rgb48be"
-fate-lavf-rgba.xwd: CMD = lavf_image "" "-pix_fmt rgba"
-fate-lavf-rgb565be.xwd: CMD = lavf_image "" "-pix_fmt rgb565be"
-fate-lavf-rgb555be.xwd: CMD = lavf_image "" "-pix_fmt rgb555be"
-fate-lavf-rgb8.xwd: CMD = lavf_image "" "-pix_fmt rgb8"
-fate-lavf-rgb4_byte.xwd: CMD = lavf_image "" "-pix_fmt rgb4_byte"
-fate-lavf-gray.xwd: CMD = lavf_image "" "-pix_fmt gray"
-fate-lavf-monow.xwd: CMD = lavf_image "" "-pix_fmt monow"
+fate-lavf-rgba64le.dpx: CMD = lavf_image "-pix_fmt rgba64le"
+fate-lavf-rgba.pam: CMD = lavf_image "-pix_fmt rgba"
+fate-lavf-gray.pam: CMD = lavf_image "-pix_fmt gray"
+fate-lavf-gray16be.pam: CMD = lavf_image "-pix_fmt gray16be" "-pix_fmt gray16be"
+fate-lavf-rgb48be.pam: CMD = lavf_image "-pix_fmt rgb48be" "-pix_fmt rgb48be"
+fate-lavf-monob.pam: CMD = lavf_image "-pix_fmt monob"
+fate-lavf-gray16be.png: CMD = lavf_image "-pix_fmt gray16be"
+fate-lavf-rgb48be.png: CMD = lavf_image "-pix_fmt rgb48be"
+fate-lavf-rgba.xwd: CMD = lavf_image "-pix_fmt rgba"
+fate-lavf-rgb565be.xwd: CMD = lavf_image "-pix_fmt rgb565be"
+fate-lavf-rgb555be.xwd: CMD = lavf_image "-pix_fmt rgb555be"
+fate-lavf-rgb8.xwd: CMD = lavf_image "-pix_fmt rgb8"
+fate-lavf-rgb4_byte.xwd: CMD = lavf_image "-pix_fmt rgb4_byte"
+fate-lavf-gray.xwd: CMD = lavf_image "-pix_fmt gray"
+fate-lavf-monow.xwd: CMD = lavf_image "-pix_fmt monow"
 
 FATE_AVCONV += $(FATE_LAVF_IMAGES)
 fate-lavf-images fate-lavf: $(FATE_LAVF_IMAGES)
index 3907d84..5038384 100644 (file)
@@ -1,3 +1,3 @@
 740eb42157af9e9eed46b70ba6a6cf4d *tests/data/images/gray16be.pam/02.gray16be.pam
-tests/data/images/gray16be.pam/%02d.gray16be.pam CRC=0x879b10ef
+tests/data/images/gray16be.pam/%02d.gray16be.pam CRC=0x893f10ef
 202823 tests/data/images/gray16be.pam/02.gray16be.pam
index bb3edbe..13e5f77 100644 (file)
@@ -1,3 +1,3 @@
 032538f0313b4f240b44a5bef115f5bf *tests/data/images/rgb48be.pam/02.rgb48be.pam
-tests/data/images/rgb48be.pam/%02d.rgb48be.pam CRC=0xe5b9c023
+tests/data/images/rgb48be.pam/%02d.rgb48be.pam CRC=0x5984c023
 608321 tests/data/images/rgb48be.pam/02.rgb48be.pam
index 9947eeb..ce36e50 100644 (file)
@@ -1,3 +1,3 @@
 b9f22728f8ff393bf30cf6cbd624fa95 *tests/data/images/rgb48le_10.dpx/02.rgb48le_10.dpx
-tests/data/images/rgb48le_10.dpx/%02d.rgb48le_10.dpx CRC=0xa150e4c9
+tests/data/images/rgb48le_10.dpx/%02d.rgb48le_10.dpx CRC=0xf38d5830
 407168 tests/data/images/rgb48le_10.dpx/02.rgb48le_10.dpx