Lines Matching defs:ramp

612 	const struct dc_gamma *ramp,
621 const uint32_t max_number = ramp->num_entries + 3;
691 const struct dc_gamma *ramp,
722 ramp, axis_x, coord_x, channel,
728 if (index_left >= ramp->num_entries + 3) {
733 if (index_right >= ramp->num_entries + 3) {
1276 const struct dc_gamma *ramp,
1284 struct pwl_float_data *rgb_last = rgb + ramp->num_entries - 1;
1289 if (dc_fixpt_lt(max_os, ramp->entries.red[i]) ||
1290 dc_fixpt_lt(max_os, ramp->entries.green[i]) ||
1291 dc_fixpt_lt(max_os, ramp->entries.blue[i])) {
1296 } while (i != ramp->num_entries);
1302 ramp->entries.red[i], scaler);
1304 ramp->entries.green[i], scaler);
1306 ramp->entries.blue[i], scaler);
1310 } while (i != ramp->num_entries);
1339 const struct dc_gamma *ramp,
1349 for (i = 0 ; i < ramp->num_entries; i++) {
1350 if (dc_fixpt_lt(ramp->entries.red[i], min))
1351 min = ramp->entries.red[i];
1353 if (dc_fixpt_lt(ramp->entries.green[i], min))
1354 min = ramp->entries.green[i];
1356 if (dc_fixpt_lt(ramp->entries.blue[i], min))
1357 min = ramp->entries.blue[i];
1359 if (dc_fixpt_lt(max, ramp->entries.red[i]))
1360 max = ramp->entries.red[i];
1362 if (dc_fixpt_lt(max, ramp->entries.green[i]))
1363 max = ramp->entries.green[i];
1365 if (dc_fixpt_lt(max, ramp->entries.blue[i]))
1366 max = ramp->entries.blue[i];
1374 for (i = 0 ; i < ramp->num_entries; i++) {
1377 ramp->entries.red[i], delta), offset);
1380 ramp->entries.green[i], delta), offset);
1383 ramp->entries.blue[i], delta), offset);
1403 * take different structures as params or different format for ramp
1407 const struct regamma_ramp *ramp,
1419 if (ramp->gamma[i] > max_os ||
1420 ramp->gamma[i + 256] > max_os ||
1421 ramp->gamma[i + 512] > max_os) {
1431 ramp->gamma[i], scaler);
1433 ramp->gamma[i + 256], scaler);
1435 ramp->gamma[i + 512], scaler);
1487 const struct dc_gamma *ramp,
1507 if (ramp->type != GAMMA_CS_TFM_1D && ramp->type != GAMMA_CUSTOM)
1541 lut1 = ramp->entries.red[index];
1542 lut2 = ramp->entries.red[index_next];
1544 lut1 = ramp->entries.green[index];
1545 lut2 = ramp->entries.green[index_next];
1547 lut1 = ramp->entries.blue[index];
1548 lut2 = ramp->entries.blue[index_next];
1625 const struct dc_gamma *ramp,
1641 ramp, coeff128, coordinates_x, axis_x, i,
1647 max_entries += ramp->num_entries;
1668 * Then there's another loop using both of the above + new scaled user ramp
1673 * user ramp is always applied on X with 0/255, 1/255, 2/255, ..., 255/255
1811 const struct dc_gamma *ramp,
1828 if (ramp && map_user_ramp) {
1834 ramp, coeff128, rgb_user, coords, axis_x,
1861 const struct dc_gamma *ramp)
1902 if (ramp && ramp->type == GAMMA_CS_TFM_1D)
1903 apply_lut_1d(ramp, MAX_HW_POINTS, &output_tf->tf_pts);
1915 const struct dc_gamma *ramp)
1945 scale_user_regamma_ramp(rgb_user, &regamma->ramp, dividers);
1962 if (ramp && ramp->type == GAMMA_CS_TFM_1D)
1963 apply_lut_1d(ramp, MAX_HW_POINTS, &output_tf->tf_pts);
1979 const struct dc_gamma *ramp, bool map_user_ramp)
1995 * If linear, it's bypass if no user ramp
2023 if (map_user_ramp && ramp && ramp->type == GAMMA_RGB_256) {
2024 rgb_user = kvcalloc(ramp->num_entries + _EXTRA_POINTS,
2030 axis_x = kvcalloc(ramp->num_entries + _EXTRA_POINTS, sizeof(*axis_x),
2041 ramp->num_entries,
2044 scale_gamma(rgb_user, ramp, dividers);
2108 map_regamma_hw_to_x_user(ramp, coeff, rgb_user,
2111 map_user_ramp && ramp && ramp->type == GAMMA_RGB_256,
2117 if (ramp && ramp->type == GAMMA_CUSTOM)
2118 apply_lut_1d(ramp, MAX_HW_POINTS, tf_pts);
2216 const struct dc_gamma *ramp,
2239 if (ramp == NULL)
2241 if ((ramp->is_identity && ramp->type != GAMMA_CS_TFM_1D) ||
2242 (!map_user_ramp && ramp->type == GAMMA_RGB_256))
2248 if (ramp && ramp->type != GAMMA_CS_TFM_1D &&
2249 (map_user_ramp || ramp->type != GAMMA_RGB_256)) {
2250 rgb_user = kvcalloc(ramp->num_entries + _EXTRA_POINTS,
2256 axis_x = kvcalloc(ramp->num_entries + 3, sizeof(*axis_x),
2267 ramp->num_entries,
2270 if (ramp->type == GAMMA_RGB_256 && map_user_ramp)
2271 scale_gamma(rgb_user, ramp, dividers);
2272 else if (ramp->type == GAMMA_RGB_FLOAT_1024)
2273 scale_gamma_dx(rgb_user, ramp, dividers);
2301 map_regamma_hw_to_x_user(ramp, coeff, rgb_user,
2304 (map_user_ramp || (ramp && ramp->type != GAMMA_RGB_256)) &&
2305 (ramp && ramp->type != GAMMA_CS_TFM_1D),
2308 if (ramp && ramp->type == GAMMA_CS_TFM_1D)
2309 apply_lut_1d(ramp, MAX_HW_POINTS, tf_pts);