Descriptionuse rounding in scaledown by 2
When scaling down by 2 the formula should round consistently.
(a+b+c+d+2)/4
The C version did but the SSE2 version was doing 2 averages.
avg(avg(a,b),avg(c,d))
This change uses a sum, then rounds.
R=dhrosa@google.com, harryjin@google.com
BUG=libyuv:447, libyuv:527
Committed: https://chromium.googlesource.com/libyuv/libyuv/+/ae55e418517651548638b27be31d1b2abaed22bb
Patch Set 1 #Patch Set 2 : gn fix for libyuv on neon64 #Patch Set 3 : bump version to r1555 #Patch Set 4 : defer avx2 gcc port #Patch Set 5 : corrected version to 1554 #
Messages
Total messages: 5 (2 generated)
|