[isp] Limit ISP search to block size 32. Size 64 is not allowed.

This commit is contained in:
siivonek 2022-09-21 12:55:07 +03:00 committed by Marko Viitanen
parent 8ae285322e
commit c4bc2d6b10

View file

@ -1392,7 +1392,7 @@ static int8_t search_intra_rdo(
double best_isp_cost = MAX_DOUBLE;
double best_bits = MAX_DOUBLE;
int8_t best_isp_mode = -1;
int max_isp_modes = can_do_isp_search && uvg_can_use_isp(width, height, 64 /*MAX_TR_SIZE*/) && state->encoder_control->cfg.isp ? NUM_ISP_MODES : 1;
int max_isp_modes = can_do_isp_search && uvg_can_use_isp(width, height, TR_MAX_WIDTH) && state->encoder_control->cfg.isp ? NUM_ISP_MODES : 1;
for (int isp_mode = 0; isp_mode < max_isp_modes; ++isp_mode) {
search_data[mode].pred_cu.intra.isp_mode = isp_mode;