commit | ee8662fc1f8c1a87f56db54d2539dcbb0252a21d | [log] [tgz] |
---|---|---|
author | Mark Yao <mark.yao@rock-chips.com> | Mon Jun 06 15:58:46 2016 +0800 |
committer | Mark Yao <mark.yao@rock-chips.com> | Tue Jul 19 09:42:20 2016 +0800 |
tree | 0e236a523a2282c99589c5df876ab9f316c8858a | |
parent | 7a1ff36c2cdfeed9bef2d5ce0aa13d72eccc773f [diff] |
drm/rockchip: vop: correct the source size of uv scale factor setting When the input color format is YUV, we need to do some external scale for CBCR. Like, * In YUV420 data format: cbcr_xscale = dst_w / src_w * 2; cbcr_yscale = dst_h / src_h * 2; * In YUV422 data format: cbcr_xscale = dst_w / src_w * 2; cbcr_yscale = dst_h / src_h; * In YUV444 data format cbcr_xscale = dst_w / src_w; cbcr_yscale = dst_h / src_h; Signed-off-by: Yakir Yang <ykk@rock-chips.com>