Home
last modified time | relevance | path

Searched refs:num_cr_points (Results 1 – 9 of 9) sorted by relevance

/external/libaom/libaom/aom_dsp/
Dgrain_synthesis.h50 int num_cr_points; // value: 0..10 member
116 if (pa->num_cr_points != pb->num_cr_points) return 0; in av1_check_grain_params_equiv()
118 pa->num_cr_points * 2 * sizeof(*pa->scaling_points_cr)) != 0) in av1_check_grain_params_equiv()
Dgrain_table.c94 if (!fscanf(file, "\n\tsCr %d", &pars->num_cr_points)) { in grain_table_entry_read()
99 for (int i = 0; i < pars->num_cr_points; ++i) { in grain_table_entry_read()
160 fprintf(file, "\n\tsCr %d", pars->num_cr_points); in grain_table_entry_write()
161 for (int i = 0; i < pars->num_cr_points; ++i) { in grain_table_entry_write()
Dgrain_synthesis.c469 if (params->num_cr_points || params->chroma_scaling_from_luma) { in generate_chroma_grain_blocks()
527 if (params->num_cr_points || params->chroma_scaling_from_luma) in generate_chroma_grain_blocks()
595 (params->num_cr_points > 0 || params->chroma_scaling_from_luma) ? 1 : 0; in add_noise_to_block()
711 (params->num_cr_points > 0 || params->chroma_scaling_from_luma) > 0 ? 1 in add_noise_to_block_hbd()
1115 init_scaling_function(params->scaling_points_cr, params->num_cr_points, in av1_add_film_grain_run()
Dnoise_model.c1186 film_grain->num_cr_points = scaling_points[2].num_points; in aom_noise_model_get_grain_parameters()
/external/libaom/libaom/test/
Dfilm_grain_table_test.cc26 EXPECT_EQ(expected->num_cr_points, actual->num_cr_points); in grain_equal()
34 expected->num_cr_points * in grain_equal()
49 if (actual->num_cr_points || actual->chroma_scaling_from_luma) { in grain_equal()
65 if (expected->num_cr_points) { in grain_equal()
Dnoise_model_test.cc1135 EXPECT_EQ(2, film_grain.num_cr_points); in TEST()
/external/libaom/libaom/av1/decoder/
Ddecodeframe.c3935 pars->num_cr_points = 0; in av1_read_film_grain_params()
3952 pars->num_cr_points = aom_rb_read_literal(rb, 4); // max 10 in av1_read_film_grain_params()
3953 if (pars->num_cr_points > 10) in av1_read_film_grain_params()
3957 for (int i = 0; i < pars->num_cr_points; i++) { in av1_read_film_grain_params()
3968 (((pars->num_cb_points == 0) && (pars->num_cr_points != 0)) || in av1_read_film_grain_params()
3969 ((pars->num_cb_points != 0) && (pars->num_cr_points == 0)))) in av1_read_film_grain_params()
3995 if (pars->num_cr_points || pars->chroma_scaling_from_luma) in av1_read_film_grain_params()
4009 if (pars->num_cr_points) { in av1_read_film_grain_params()
/external/libaom/libaom/av1/encoder/
Dbitstream.c2529 assert(pars->num_cb_points == 0 && pars->num_cr_points == 0); in write_film_grain_params()
2537 aom_wb_write_literal(wb, pars->num_cr_points, 4); // max 10 in write_film_grain_params()
2538 for (int i = 0; i < pars->num_cr_points; i++) { in write_film_grain_params()
2564 if (pars->num_cr_points || pars->chroma_scaling_from_luma) in write_film_grain_params()
2578 if (pars->num_cr_points) { in write_film_grain_params()
Dencoder.c750 pars->num_cr_points = 0; in reset_film_grain_chroma_params()