Searched refs:scaling_points (Results 1 – 2 of 2) sorted by relevance
/external/libaom/libaom/aom_dsp/ |
D | noise_model.c | 1154 aom_noise_strength_lut_t scaling_points[3]; in aom_noise_model_get_grain_parameters() local 1156 &noise_model->combined_state[0].strength_solver, 14, scaling_points + 0); in aom_noise_model_get_grain_parameters() 1158 &noise_model->combined_state[1].strength_solver, 10, scaling_points + 1); in aom_noise_model_get_grain_parameters() 1160 &noise_model->combined_state[2].strength_solver, 10, scaling_points + 2); in aom_noise_model_get_grain_parameters() 1168 for (int i = 0; i < scaling_points[c].num_points; ++i) { in aom_noise_model_get_grain_parameters() 1169 scaling_points[c].points[i][0] = in aom_noise_model_get_grain_parameters() 1170 AOMMIN(255, scaling_points[c].points[i][0] / strength_divisor); in aom_noise_model_get_grain_parameters() 1171 scaling_points[c].points[i][1] = in aom_noise_model_get_grain_parameters() 1172 AOMMIN(255, scaling_points[c].points[i][1] / strength_divisor); in aom_noise_model_get_grain_parameters() 1174 AOMMAX(scaling_points[c].points[i][1], max_scaling_value); in aom_noise_model_get_grain_parameters() [all …]
|
D | grain_synthesis.c | 536 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()
|