Lines Matching defs:params
72 void dwb2_config_dwb_cnv(struct dwbc *dwbc, struct dc_dwb_params *params)
78 REG_UPDATE_2(CNV_SOURCE_SIZE, CNV_SOURCE_WIDTH, params->cnv_params.src_width,
79 CNV_SOURCE_HEIGHT, params->cnv_params.src_height);
82 if (params->cnv_params.crop_en) {
84 REG_UPDATE(CNV_WINDOW_START, CNV_WINDOW_START_X, params->cnv_params.crop_x);
85 REG_UPDATE(CNV_WINDOW_START, CNV_WINDOW_START_Y, params->cnv_params.crop_y);
86 REG_UPDATE(CNV_WINDOW_SIZE, CNV_WINDOW_WIDTH, params->cnv_params.crop_width);
87 REG_UPDATE(CNV_WINDOW_SIZE, CNV_WINDOW_HEIGHT, params->cnv_params.crop_height);
93 REG_UPDATE(CNV_MODE, CNV_FRAME_CAPTURE_RATE, params->capture_rate);
96 REG_UPDATE(CNV_MODE, CNV_OUT_BPC, params->cnv_params.cnv_out_bpc);
99 static bool dwb2_enable(struct dwbc *dwbc, struct dc_dwb_params *params)
104 if ((params->cnv_params.src_width != params->dest_width) ||
105 (params->cnv_params.src_height != params->dest_height)) {
121 dwb2_config_dwb_cnv(dwbc, params);
124 dwb2_set_scaler(dwbc, params);
158 static bool dwb2_update(struct dwbc *dwbc, struct dc_dwb_params *params)
164 if ((params->cnv_params.src_width != params->dest_width) ||
165 (params->cnv_params.src_height != params->dest_height)) {
185 dwb2_config_dwb_cnv(dwbc, params);
188 dwb2_set_scaler(dwbc, params);
250 void dwb2_set_scaler(struct dwbc *dwbc, struct dc_dwb_params *params)
256 REG_UPDATE_2(WBSCL_MODE, WBSCL_MODE, params->out_format,
257 WBSCL_OUT_BIT_DEPTH, params->output_depth);
259 if (params->out_format != dwb_scaler_mode_bypass444) {
261 REG_UPDATE(WBSCL_DEST_SIZE, WBSCL_DEST_WIDTH, params->dest_width);
262 REG_UPDATE(WBSCL_DEST_SIZE, WBSCL_DEST_HEIGHT, params->dest_height);
277 if (params->cnv_params.crop_en) {
279 dwb_program_horz_scalar(dwbc20, params->cnv_params.crop_width,
280 params->dest_width,
281 params->scaler_taps);
284 dwb_program_vert_scalar(dwbc20, params->cnv_params.crop_height,
285 params->dest_height,
286 params->scaler_taps,
287 params->subsample_position);
290 dwb_program_horz_scalar(dwbc20, params->cnv_params.src_width,
291 params->dest_width,
292 params->scaler_taps);
295 dwb_program_vert_scalar(dwbc20, params->cnv_params.src_height,
296 params->dest_height,
297 params->scaler_taps,
298 params->subsample_position);