1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef _ROCKCHIP_AV1_FILMGRAIN_H_
4 #define _ROCKCHIP_AV1_FILMGRAIN_H_
6 #include <linux/types.h>
8 void rockchip_av1_generate_luma_grain_block(s32 (*luma_grain_block)[73][82],
11 s32 grain_scale_shift,
13 s32 (*ar_coeffs_y)[24],
19 void rockchip_av1_generate_chroma_grain_block(s32 (*luma_grain_block)[73][82],
20 s32 (*cb_grain_block)[38][44],
21 s32 (*cr_grain_block)[38][44],
26 s32 grain_scale_shift,
28 s32 (*ar_coeffs_cb)[25],
29 s32 (*ar_coeffs_cr)[25],
33 u8 chroma_scaling_from_luma,