aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/fate/filter-w3fdif-complex
diff options
context:
space:
mode:
authorNekopanda <pianoyayaninth-at-yahoo.co.jp@ffmpeg.org>2018-02-11 17:15:54 +0900
committerMichael Niedermayer <michael@niedermayer.cc>2018-02-11 12:04:47 +0100
commitf4d5d7e8de189ab448a5e662245b57ceb8f20df6 (patch)
treee554291fd25a5ac8e4659ab2a25a91a60c79ce01 /tests/ref/fate/filter-w3fdif-complex
parent570023eab3e2962b4ad8345a157c1e18ca1a6eca (diff)
downloadffmpeg-f4d5d7e8de189ab448a5e662245b57ceb8f20df6.tar.gz
avcodec/mpeg2dec: Fix motion vector rounding for chroma components
In 16x8 motion compensation, for lower 16x8 region, the input to mpeg_motion() for motion_y was "motion_y + 16", which causes wrong rounding. For 4:2:0, chroma scaling for y is dividing by two and rounding toward zero. When motion_y < 0 and motion_y + 16 > 0, the rounding direction of "motion_y" and "motion_y + 16" is different and rounding "motion_y + 16" would be incorrect. We should input "motion_y" as is to round correctly. I add "is_16x8" flag to do that. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/ref/fate/filter-w3fdif-complex')
-rw-r--r--tests/ref/fate/filter-w3fdif-complex60
1 files changed, 30 insertions, 30 deletions
diff --git a/tests/ref/fate/filter-w3fdif-complex b/tests/ref/fate/filter-w3fdif-complex
index 4b334daec1..cbd8f06fae 100644
--- a/tests/ref/fate/filter-w3fdif-complex
+++ b/tests/ref/fate/filter-w3fdif-complex
@@ -3,33 +3,33 @@
#codec_id 0: rawvideo
#dimensions 0: 720x576
#sar 0: 16/15
-0, 18, 18, 1, 622080, 0x21d21485
-0, 19, 19, 1, 622080, 0x600a5468
-0, 20, 20, 1, 622080, 0x9526f7b8
-0, 21, 21, 1, 622080, 0x8b3e661f
-0, 22, 22, 1, 622080, 0xff5cb5a9
-0, 23, 23, 1, 622080, 0x7e5e730c
-0, 24, 24, 1, 622080, 0x85219ac6
-0, 25, 25, 1, 622080, 0x2f3465a0
-0, 26, 26, 1, 622080, 0xddbf4da0
-0, 27, 27, 1, 622080, 0xc115d4ee
-0, 28, 28, 1, 622080, 0x7a8a8d72
-0, 29, 29, 1, 622080, 0xbafcd973
-0, 30, 30, 1, 622080, 0xd2c15603
-0, 31, 31, 1, 622080, 0xd7217855
-0, 32, 32, 1, 622080, 0x9a584eca
-0, 33, 33, 1, 622080, 0x9f3e1c40
-0, 34, 34, 1, 622080, 0x6d01efb7
-0, 35, 35, 1, 622080, 0x9ecfcce0
-0, 36, 36, 1, 622080, 0xb355fd7e
-0, 37, 37, 1, 622080, 0xc7784021
-0, 38, 38, 1, 622080, 0x13fe4187
-0, 39, 39, 1, 622080, 0xfa03b613
-0, 40, 40, 1, 622080, 0x2c9ccfcd
-0, 41, 41, 1, 622080, 0xcae6e6c6
-0, 42, 42, 1, 622080, 0x177968f9
-0, 43, 43, 1, 622080, 0xf708de36
-0, 44, 44, 1, 622080, 0x4491870a
-0, 45, 45, 1, 622080, 0x37709f98
-0, 46, 46, 1, 622080, 0x23e8d22f
-0, 47, 47, 1, 622080, 0x25cba876
+0, 18, 18, 1, 622080, 0xe1b21462
+0, 19, 19, 1, 622080, 0x1362538d
+0, 20, 20, 1, 622080, 0x0f55f79b
+0, 21, 21, 1, 622080, 0xfdb265f6
+0, 22, 22, 1, 622080, 0x2f8eb534
+0, 23, 23, 1, 622080, 0x0de472b1
+0, 24, 24, 1, 622080, 0x3e699a78
+0, 25, 25, 1, 622080, 0x66396524
+0, 26, 26, 1, 622080, 0x17244d40
+0, 27, 27, 1, 622080, 0x04a5d554
+0, 28, 28, 1, 622080, 0x0e278cd9
+0, 29, 29, 1, 622080, 0x7b53d8de
+0, 30, 30, 1, 622080, 0xe51a558e
+0, 31, 31, 1, 622080, 0xd58177e4
+0, 32, 32, 1, 622080, 0x270b4e1f
+0, 33, 33, 1, 622080, 0x3fbf1bdf
+0, 34, 34, 1, 622080, 0xbfebee9d
+0, 35, 35, 1, 622080, 0x2c6fcccf
+0, 36, 36, 1, 622080, 0x4a57fcc2
+0, 37, 37, 1, 622080, 0x33b53f5d
+0, 38, 38, 1, 622080, 0x93ba405d
+0, 39, 39, 1, 622080, 0xf4dbb54b
+0, 40, 40, 1, 622080, 0xf205ce68
+0, 41, 41, 1, 622080, 0x383fe5bc
+0, 42, 42, 1, 622080, 0x4dd06905
+0, 43, 43, 1, 622080, 0xc925de57
+0, 44, 44, 1, 622080, 0x7c8786e8
+0, 45, 45, 1, 622080, 0x550b9f60
+0, 46, 46, 1, 622080, 0x4162d1e9
+0, 47, 47, 1, 622080, 0xf609a847