Home
last modified time | relevance | path

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

/external/libaom/libaom/aom_dsp/
Dgrain_synthesis.h46 int num_cb_points; // value: 0..10 member
111 if (pa->num_cb_points != pb->num_cb_points) return 0; in av1_check_grain_params_equiv()
113 pa->num_cb_points * 2 * sizeof(*pa->scaling_points_cb)) != 0) in av1_check_grain_params_equiv()
Dgrain_table.c81 if (!fscanf(file, "\n\tsCb %d", &pars->num_cb_points)) { in grain_table_entry_read()
86 for (int i = 0; i < pars->num_cb_points; ++i) { in grain_table_entry_read()
155 fprintf(file, "\n\tsCb %d", pars->num_cb_points); in grain_table_entry_write()
156 for (int i = 0; i < pars->num_cb_points; ++i) { in grain_table_entry_write()
Dgrain_synthesis.c455 if (params->num_cb_points || params->chroma_scaling_from_luma) { in generate_chroma_grain_blocks()
522 if (params->num_cb_points || params->chroma_scaling_from_luma) in generate_chroma_grain_blocks()
593 (params->num_cb_points > 0 || params->chroma_scaling_from_luma) ? 1 : 0; in add_noise_to_block()
708 (params->num_cb_points > 0 || params->chroma_scaling_from_luma) > 0 ? 1 in add_noise_to_block_hbd()
1113 init_scaling_function(params->scaling_points_cb, params->num_cb_points, in av1_add_film_grain_run()
Dnoise_model.c1179 film_grain->num_cb_points = scaling_points[1].num_points; in aom_noise_model_get_grain_parameters()
/external/libaom/libaom/test/
Dfilm_grain_table_test.cc25 EXPECT_EQ(expected->num_cb_points, actual->num_cb_points); in grain_equal()
31 expected->num_cb_points * in grain_equal()
45 if (actual->num_cb_points || actual->chroma_scaling_from_luma) { in grain_equal()
60 if (expected->num_cb_points) { in grain_equal()
Dnoise_model_test.cc1128 EXPECT_EQ(2, film_grain.num_cb_points); in TEST()
/external/libaom/libaom/av1/decoder/
Ddecodeframe.c4300 pars->num_cb_points = 0; in av1_read_film_grain_params()
4303 pars->num_cb_points = aom_rb_read_literal(rb, 4); // max 10 in av1_read_film_grain_params()
4304 if (pars->num_cb_points > 10) in av1_read_film_grain_params()
4308 for (int i = 0; i < pars->num_cb_points; i++) { in av1_read_film_grain_params()
4334 (((pars->num_cb_points == 0) && (pars->num_cr_points != 0)) || in av1_read_film_grain_params()
4335 ((pars->num_cb_points != 0) && (pars->num_cr_points == 0)))) in av1_read_film_grain_params()
4357 if (pars->num_cb_points || pars->chroma_scaling_from_luma) in av1_read_film_grain_params()
4369 if (pars->num_cb_points) { in av1_read_film_grain_params()
/external/libaom/libaom/av1/encoder/
Dbitstream.c2500 assert(pars->num_cb_points == 0 && pars->num_cr_points == 0); in write_film_grain_params()
2502 aom_wb_write_literal(wb, pars->num_cb_points, 4); // max 10 in write_film_grain_params()
2503 for (int i = 0; i < pars->num_cb_points; i++) { in write_film_grain_params()
2531 if (pars->num_cb_points || pars->chroma_scaling_from_luma) in write_film_grain_params()
2543 if (pars->num_cb_points) { in write_film_grain_params()
Dencoder.c476 pars->num_cb_points = 0; in reset_film_grain_chroma_params()