summaryrefslogtreecommitdiffstats
path: root/tests/ref/fate/filter-yadif16
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-yadif16
parent570023eab3e2962b4ad8345a157c1e18ca1a6eca (diff)
downloadffmpeg-streaming-f4d5d7e8de189ab448a5e662245b57ceb8f20df6.zip
ffmpeg-streaming-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-yadif16')
-rw-r--r--tests/ref/fate/filter-yadif1660
1 files changed, 30 insertions, 30 deletions
diff --git a/tests/ref/fate/filter-yadif16 b/tests/ref/fate/filter-yadif16
index 3386b02..0c856ab 100644
--- a/tests/ref/fate/filter-yadif16
+++ b/tests/ref/fate/filter-yadif16
@@ -3,33 +3,33 @@
#codec_id 0: rawvideo
#dimensions 0: 720x576
#sar 0: 16/15
-0, 9, 9, 1, 1244160, 0xfb65caee
-0, 10, 10, 1, 1244160, 0x6222e690
-0, 11, 11, 1, 1244160, 0x020ac648
-0, 12, 12, 1, 1244160, 0xb76691ca
-0, 13, 13, 1, 1244160, 0xe0fd7404
-0, 14, 14, 1, 1244160, 0x3ab29705
-0, 15, 15, 1, 1244160, 0xbe807835
-0, 16, 16, 1, 1244160, 0x77d358fd
-0, 17, 17, 1, 1244160, 0x359b174f
-0, 18, 18, 1, 1244160, 0xe20f0e7f
-0, 19, 19, 1, 1244160, 0x988966ec
-0, 20, 20, 1, 1244160, 0xd078da72
-0, 21, 21, 1, 1244160, 0x276d97f7
-0, 22, 22, 1, 1244160, 0xf8ee7ca0
-0, 23, 23, 1, 1244160, 0x776bed72
-0, 24, 24, 1, 1244160, 0xb9bf92b2
-0, 25, 25, 1, 1244160, 0x30e01094
-0, 26, 26, 1, 1244160, 0xbc5f3139
-0, 27, 27, 1, 1244160, 0x44324902
-0, 28, 28, 1, 1244160, 0x64aab8f5
-0, 29, 29, 1, 1244160, 0x0a05aeac
-0, 30, 30, 1, 1244160, 0x31e5aa36
-0, 31, 31, 1, 1244160, 0xa685405f
-0, 32, 32, 1, 1244160, 0x54a6e776
-0, 33, 33, 1, 1244160, 0x9af4d8c9
-0, 34, 34, 1, 1244160, 0xf709ac9a
-0, 35, 35, 1, 1244160, 0x12a9441d
-0, 36, 36, 1, 1244160, 0xf3f1bd5e
-0, 37, 37, 1, 1244160, 0x7bcef716
-0, 38, 38, 1, 1244160, 0xe3a2f129
+0, 9, 9, 1, 1244160, 0x24eeca92
+0, 10, 10, 1, 1244160, 0x96b8e646
+0, 11, 11, 1, 1244160, 0xc11fc5da
+0, 12, 12, 1, 1244160, 0xc15f9168
+0, 13, 13, 1, 1244160, 0xba1c738e
+0, 14, 14, 1, 1244160, 0x56b59681
+0, 15, 15, 1, 1244160, 0x14ad778d
+0, 16, 16, 1, 1244160, 0x18dc584b
+0, 17, 17, 1, 1244160, 0xe4c11635
+0, 18, 18, 1, 1244160, 0x85cc0dc0
+0, 19, 19, 1, 1244160, 0x2d6a65a4
+0, 20, 20, 1, 1244160, 0x4054d8f9
+0, 21, 21, 1, 1244160, 0xebce97d3
+0, 22, 22, 1, 1244160, 0x79437c93
+0, 23, 23, 1, 1244160, 0x6438ed40
+0, 24, 24, 1, 1244160, 0x9121928c
+0, 25, 25, 1, 1244160, 0xb8731075
+0, 26, 26, 1, 1244160, 0xfb01310e
+0, 27, 27, 1, 1244160, 0x97be489c
+0, 28, 28, 1, 1244160, 0xa5b4b8aa
+0, 29, 29, 1, 1244160, 0x00a7ae0f
+0, 30, 30, 1, 1244160, 0x514fa990
+0, 31, 31, 1, 1244160, 0xd73c3f66
+0, 32, 32, 1, 1244160, 0x3602e6c3
+0, 33, 33, 1, 1244160, 0xa16ad8ab
+0, 34, 34, 1, 1244160, 0xdf11ac80
+0, 35, 35, 1, 1244160, 0x1f084421
+0, 36, 36, 1, 1244160, 0x9fc1bd32
+0, 37, 37, 1, 1244160, 0x1389f6cf
+0, 38, 38, 1, 1244160, 0x6fc5f0e5
OpenPOWER on IntegriCloud