diff mbox series

[FFmpeg-devel,v2,8/8] fate/scalechroma: switch to standard chroma location

Message ID 20240704143104.1821386-8-ffmpeg@haasn.xyz
State New
Headers show
Series [FFmpeg-devel,v2,1/8] swscale: document SWS_FULL_CHR_H_* flags | 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 success Make fate finished

Commit Message

Niklas Haas July 4, 2024, 2:31 p.m. UTC
From: Niklas Haas <git@haasn.dev>

Replace the manually specified chroma location by one using standard
notation, arbitrarily "bottomleft" as it is a less common path.

Required if we want to phase out the use of manual chroma locations.
---
 tests/fate/filter-video.mak       |  2 +-
 tests/ref/fate/filter-scalechroma | 50 +++++++++++++++----------------
 2 files changed, 26 insertions(+), 26 deletions(-)
diff mbox series

Patch

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 7f8dc3aa27..cffd67b1f8 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -433,7 +433,7 @@  fate-filter-scale2ref_keep_aspect: CMD = framemd5 -frames:v 5 -/filter_complex $
 
 FATE_FILTER_VSYNTH-$(call FILTERDEMDEC, SCALE, RAWVIDEO, RAWVIDEO) += fate-filter-scalechroma
 fate-filter-scalechroma: tests/data/vsynth1.yuv
-fate-filter-scalechroma: CMD = framecrc -flags bitexact -s 352x288 -pix_fmt yuv444p -i $(TARGET_PATH)/tests/data/vsynth1.yuv -pix_fmt yuv420p -sws_flags +bitexact -vf scale=out_v_chr_pos=33:out_h_chr_pos=151
+fate-filter-scalechroma: CMD = framecrc -flags bitexact -s 352x288 -pix_fmt yuv444p -i $(TARGET_PATH)/tests/data/vsynth1.yuv -pix_fmt yuv420p -sws_flags +bitexact -vf scale=out_chroma_loc=bottomleft
 
 FATE_FILTER_VSYNTH_VIDEO_FILTER-$(CONFIG_VFLIP_FILTER) += fate-filter-vflip
 fate-filter-vflip: CMD = video_filter "vflip"
diff --git a/tests/ref/fate/filter-scalechroma b/tests/ref/fate/filter-scalechroma
index 842769c2d5..dbe08600ab 100644
--- a/tests/ref/fate/filter-scalechroma
+++ b/tests/ref/fate/filter-scalechroma
@@ -3,28 +3,28 @@ 
 #codec_id 0: rawvideo
 #dimensions 0: 352x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0xdcab783a
-0,          1,          1,        1,   152064, 0x79c7f1f6
-0,          2,          2,        1,   152064, 0x3b810afb
-0,          3,          3,        1,   152064, 0x892aca1d
-0,          4,          4,        1,   152064, 0x52fdd093
-0,          5,          5,        1,   152064, 0xaa643426
-0,          6,          6,        1,   152064, 0x9ad020ed
-0,          7,          7,        1,   152064, 0x5c179057
-0,          8,          8,        1,   152064, 0xa56bf155
-0,          9,          9,        1,   152064, 0x61dcffca
-0,         10,         10,        1,   152064, 0x0d51a1d3
-0,         11,         11,        1,   152064, 0x652f9e8d
-0,         12,         12,        1,   152064, 0xdc0bb4d8
-0,         13,         13,        1,   152064, 0x561437cf
-0,         14,         14,        1,   152064, 0x69ef8e4f
-0,         15,         15,        1,   152064, 0xe7244350
-0,         16,         16,        1,   152064, 0xe65651cf
-0,         17,         17,        1,   152064, 0xfc9ff646
-0,         18,         18,        1,   152064, 0x6ae10bc4
-0,         19,         19,        1,   152064, 0xd3d1898a
-0,         20,         20,        1,   152064, 0xf3f8b139
-0,         21,         21,        1,   152064, 0x68c129be
-0,         22,         22,        1,   152064, 0xc3922593
-0,         23,         23,        1,   152064, 0x2b14d96e
-0,         24,         24,        1,   152064, 0xab119489
+0,          0,          0,        1,   152064, 0x77bb80f8
+0,          1,          1,        1,   152064, 0x3a21f6e8
+0,          2,          2,        1,   152064, 0xcc0907b0
+0,          3,          3,        1,   152064, 0xaa5cd87b
+0,          4,          4,        1,   152064, 0x410bd74d
+0,          5,          5,        1,   152064, 0x7a763b14
+0,          6,          6,        1,   152064, 0x3e4020d4
+0,          7,          7,        1,   152064, 0x46be8b5d
+0,          8,          8,        1,   152064, 0x8021f16c
+0,          9,          9,        1,   152064, 0x82ca033d
+0,         10,         10,        1,   152064, 0xa76ca6ca
+0,         11,         11,        1,   152064, 0x49019bb7
+0,         12,         12,        1,   152064, 0x3590adf5
+0,         13,         13,        1,   152064, 0xf21235dc
+0,         14,         14,        1,   152064, 0x6b5f93a9
+0,         15,         15,        1,   152064, 0x4b8c5137
+0,         16,         16,        1,   152064, 0x698b67cc
+0,         17,         17,        1,   152064, 0x3cebef62
+0,         18,         18,        1,   152064, 0x77770da1
+0,         19,         19,        1,   152064, 0xecdd84d4
+0,         20,         20,        1,   152064, 0x873fbc32
+0,         21,         21,        1,   152064, 0x55043c82
+0,         22,         22,        1,   152064, 0xee2b3669
+0,         23,         23,        1,   152064, 0xa64ae990
+0,         24,         24,        1,   152064, 0xb3499e12