SCALER_MAX_VRATIO
max_sc_v = min(SCALER_MAX_VRATIO, 1 << tmp_min_v);
if ((sw >= SCALER_MAX_HRATIO * dw) || (sh >= SCALER_MAX_VRATIO * dh))