diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2022-02-18 01:21:18 +0300 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2022-02-28 21:23:36 +0300 |
commit | 0028e8ea57b9391915e97c8f69251bf47dd13357 (patch) | |
tree | 012ace5a4787949e345e494dcd416e523fe61882 /src/fg_apply_tmpl.c | |
parent | ba07371c2e590801c391093a07043d5db0e30c95 (diff) |
x86: Add 8-bit film grain AVX-512 (Ice Lake) asm
Diffstat (limited to 'src/fg_apply_tmpl.c')
-rw-r--r-- | src/fg_apply_tmpl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fg_apply_tmpl.c b/src/fg_apply_tmpl.c index 18dc4cc..ee14db9 100644 --- a/src/fg_apply_tmpl.c +++ b/src/fg_apply_tmpl.c @@ -223,7 +223,11 @@ void bitfn(dav1d_apply_grain)(const Dav1dFilmGrainDSPContext *const dsp, const Dav1dPicture *const in) { ALIGN_STK_16(entry, grain_lut, 3,[GRAIN_HEIGHT + 1][GRAIN_WIDTH]); +#if ARCH_X86_64 && BITDEPTH == 8 + ALIGN_STK_64(uint8_t, scaling, 3,[SCALING_SIZE]); +#else uint8_t scaling[3][SCALING_SIZE]; +#endif const int rows = (out->p.h + 31) >> 5; bitfn(dav1d_prep_grain)(dsp, out, in, scaling, grain_lut); |