aboutsummaryrefslogtreecommitdiff
path: root/src/dsp/film_grain_common.h
diff options
context:
space:
mode:
authorBoyuan Yang <byang@debian.org>2021-11-07 08:50:18 -0500
committerBoyuan Yang <byang@debian.org>2021-11-07 08:50:18 -0500
commit320ef65362608ee1148c299d8d5d7618af34e470 (patch)
treec47911c219d1e35b8b0771e9e0176eff0e0d08ec /src/dsp/film_grain_common.h
parent2381d803c76105f44717d75f089ec37f51e5cfe4 (diff)
downloadlibgav1-320ef65362608ee1148c299d8d5d7618af34e470.tar.gz
libgav1-320ef65362608ee1148c299d8d5d7618af34e470.tar.bz2
libgav1-320ef65362608ee1148c299d8d5d7618af34e470.zip
New upstream version 0.17.0
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,