mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
media: rockchip: ispp: limit max width 2080 for scl0 yuv420
hardware support max width is 2080 for scl0 yuv420 vertical scale down output. Change-Id: Ifead97e0bbba417a4e35bea3e4eba3e33ea8d407 Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
@@ -1171,7 +1171,12 @@ static int limit_check_scl(struct rkispp_stream *stream,
|
||||
return ret;
|
||||
|
||||
if (stream->id == STREAM_S0) {
|
||||
max_width = 3264;
|
||||
u32 fmt = stream->out_cap_fmt.wr_fmt;
|
||||
|
||||
if (*h == sdev->out_fmt.height || (fmt & FMT_YUV422))
|
||||
max_width = 3264;
|
||||
else
|
||||
max_width = 2080;
|
||||
min_ratio = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user