Lines Matching refs:film_grain
62 const AV1RawFilmGrainParams *film_grain = &h->cur_frame.film_grain; in fill_picture_parameters() local
65 …int apply_grain = !(avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN) && film_grain->appl… in fill_picture_parameters()
103 …pp->coding.film_grain = seq->film_grain_params_present && !(avctx->export_side_d… in fill_picture_parameters()
220 pp->film_grain.apply_grain = 1; in fill_picture_parameters()
221 pp->film_grain.scaling_shift_minus8 = film_grain->grain_scaling_minus_8; in fill_picture_parameters()
222 pp->film_grain.chroma_scaling_from_luma = film_grain->chroma_scaling_from_luma; in fill_picture_parameters()
223 pp->film_grain.ar_coeff_lag = film_grain->ar_coeff_lag; in fill_picture_parameters()
224 pp->film_grain.ar_coeff_shift_minus6 = film_grain->ar_coeff_shift_minus_6; in fill_picture_parameters()
225 pp->film_grain.grain_scale_shift = film_grain->grain_scale_shift; in fill_picture_parameters()
226 pp->film_grain.overlap_flag = film_grain->overlap_flag; in fill_picture_parameters()
227 pp->film_grain.clip_to_restricted_range = film_grain->clip_to_restricted_range; in fill_picture_parameters()
228 …pp->film_grain.matrix_coeff_is_identity = (seq->color_config.matrix_coefficients == AVCOL_SPC_RGB); in fill_picture_parameters()
230 pp->film_grain.grain_seed = film_grain->grain_seed; in fill_picture_parameters()
231 pp->film_grain.num_y_points = film_grain->num_y_points; in fill_picture_parameters()
232 for (i = 0; i < film_grain->num_y_points; i++) { in fill_picture_parameters()
233 pp->film_grain.scaling_points_y[i][0] = film_grain->point_y_value[i]; in fill_picture_parameters()
234 pp->film_grain.scaling_points_y[i][1] = film_grain->point_y_scaling[i]; in fill_picture_parameters()
236 pp->film_grain.num_cb_points = film_grain->num_cb_points; in fill_picture_parameters()
237 for (i = 0; i < film_grain->num_cb_points; i++) { in fill_picture_parameters()
238 pp->film_grain.scaling_points_cb[i][0] = film_grain->point_cb_value[i]; in fill_picture_parameters()
239 pp->film_grain.scaling_points_cb[i][1] = film_grain->point_cb_scaling[i]; in fill_picture_parameters()
241 pp->film_grain.num_cr_points = film_grain->num_cr_points; in fill_picture_parameters()
242 for (i = 0; i < film_grain->num_cr_points; i++) { in fill_picture_parameters()
243 pp->film_grain.scaling_points_cr[i][0] = film_grain->point_cr_value[i]; in fill_picture_parameters()
244 pp->film_grain.scaling_points_cr[i][1] = film_grain->point_cr_scaling[i]; in fill_picture_parameters()
247 pp->film_grain.ar_coeffs_y[i] = film_grain->ar_coeffs_y_plus_128[i]; in fill_picture_parameters()
250 pp->film_grain.ar_coeffs_cb[i] = film_grain->ar_coeffs_cb_plus_128[i]; in fill_picture_parameters()
251 pp->film_grain.ar_coeffs_cr[i] = film_grain->ar_coeffs_cr_plus_128[i]; in fill_picture_parameters()
253 pp->film_grain.cb_mult = film_grain->cb_mult; in fill_picture_parameters()
254 pp->film_grain.cb_luma_mult = film_grain->cb_luma_mult; in fill_picture_parameters()
255 pp->film_grain.cr_mult = film_grain->cr_mult; in fill_picture_parameters()
256 pp->film_grain.cr_luma_mult = film_grain->cr_luma_mult; in fill_picture_parameters()
257 pp->film_grain.cb_offset = film_grain->cb_offset; in fill_picture_parameters()
258 pp->film_grain.cr_offset = film_grain->cr_offset; in fill_picture_parameters()
259 pp->film_grain.cr_offset = film_grain->cr_offset; in fill_picture_parameters()