Home
last modified time | relevance | path

Searched refs:scaling_points (Results 1 – 2 of 2) sorted by relevance

/external/libaom/libaom/aom_dsp/
Dnoise_model.c1148 aom_noise_strength_lut_t scaling_points[3]; in aom_noise_model_get_grain_parameters() local
1150 &noise_model->combined_state[0].strength_solver, 14, scaling_points + 0); in aom_noise_model_get_grain_parameters()
1152 &noise_model->combined_state[1].strength_solver, 10, scaling_points + 1); in aom_noise_model_get_grain_parameters()
1154 &noise_model->combined_state[2].strength_solver, 10, scaling_points + 2); in aom_noise_model_get_grain_parameters()
1162 for (int i = 0; i < scaling_points[c].num_points; ++i) { in aom_noise_model_get_grain_parameters()
1163 scaling_points[c].points[i][0] = in aom_noise_model_get_grain_parameters()
1164 AOMMIN(255, scaling_points[c].points[i][0] / strength_divisor); in aom_noise_model_get_grain_parameters()
1165 scaling_points[c].points[i][1] = in aom_noise_model_get_grain_parameters()
1166 AOMMIN(255, scaling_points[c].points[i][1] / strength_divisor); in aom_noise_model_get_grain_parameters()
1168 AOMMAX(scaling_points[c].points[i][1], max_scaling_value); in aom_noise_model_get_grain_parameters()
[all …]
Dgrain_synthesis.c536 static void init_scaling_function(const int scaling_points[][2], int num_points, in init_scaling_function()
540 for (int i = 0; i < scaling_points[0][0]; i++) in init_scaling_function()
541 scaling_lut[i] = scaling_points[0][1]; in init_scaling_function()
544 int delta_y = scaling_points[point + 1][1] - scaling_points[point][1]; in init_scaling_function()
545 int delta_x = scaling_points[point + 1][0] - scaling_points[point][0]; in init_scaling_function()
550 scaling_lut[scaling_points[point][0] + x] = in init_scaling_function()
551 scaling_points[point][1] + (int)((x * delta + 32768) >> 16); in init_scaling_function()
555 for (int i = scaling_points[num_points - 1][0]; i < 256; i++) in init_scaling_function()
556 scaling_lut[i] = scaling_points[num_points - 1][1]; in init_scaling_function()