mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
video: rockchip: rga3: add bi-linear(scale-down) limits
If scaling is done vertically using bilinear interpolation, the input resolution is forced to switch to average interpolation when it is greater than 4096. Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com> Change-Id: I66d2ecb76386d3f6378a241f7157af89f1e1542d
This commit is contained in:
@@ -358,7 +358,12 @@ static void RGA2_set_reg_src_info(u8 *base, struct rga2_req *msg)
|
||||
vsd_scale_mode = 0;
|
||||
break;
|
||||
case RGA_INTERP_LINEAR:
|
||||
vsd_scale_mode = 1;
|
||||
if (sh > 4096)
|
||||
/* force select average */
|
||||
vsd_scale_mode = 0;
|
||||
else
|
||||
vsd_scale_mode = 1;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user