aboutsummaryrefslogtreecommitdiff
path: root/src/dsp/film_grain_common.h
diff options
context:
space:
mode:
authorBoyuan Yang <byang@debian.org>2021-11-07 08:50:20 -0500
committerBoyuan Yang <byang@debian.org>2021-11-07 08:50:20 -0500
commit513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44 (patch)
tree249280ac94eb2b871de89cd1b166fff4ee00ab09 /src/dsp/film_grain_common.h
parent3c21ceac2f6a5adfab07d3d458880561543d0a31 (diff)
parent320ef65362608ee1148c299d8d5d7618af34e470 (diff)
downloadlibgav1-513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44.tar.gz
libgav1-513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44.tar.bz2
libgav1-513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44.zip
Update upstream source from tag 'upstream/0.17.0'
Update to upstream version '0.17.0' with Debian dir 5b612b6a2d67788b0c85bac59e50edc1545bfd7e
Diffstat (limited to 'src/dsp/film_grain_common.h')
-rw-r--r--src/dsp/film_grain_common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dsp/film_grain_common.h b/src/dsp/film_grain_common.h
index 64e3e8e..2e6ad45 100644
--- a/src/dsp/film_grain_common.h
+++ b/src/dsp/film_grain_common.h
@@ -59,15 +59,16 @@ enum {
// The two possible heights of the chroma noise array.
kMinChromaHeight = 38,
kMaxChromaHeight = 73,
- // The scaling lookup table maps bytes to bytes, so only uses 256 elements,
- // plus one for overflow in 10bit lookups.
+ // The standard scaling lookup table maps bytes to bytes, so only uses 256
+ // elements, plus one for overflow in 12bpp lookups. The size is scaled up for
+ // 10bpp.
kScalingLookupTableSize = 257,
// Padding is added to the scaling lookup table to permit overwrites by
// InitializeScalingLookupTable_NEON.
kScalingLookupTablePadding = 6,
// Padding is added to each row of the noise image to permit overreads by
// BlendNoiseWithImageLuma_NEON and overwrites by WriteOverlapLine8bpp_NEON.
- kNoiseImagePadding = 7,
+ kNoiseImagePadding = 15,
// Padding is added to the end of the |noise_stripes_| buffer to permit
// overreads by WriteOverlapLine8bpp_NEON.
kNoiseStripePadding = 7,