drm/rockchip: vop: correct the source size of uv scale factor setting
authorMark Yao <mark.yao@rock-chips.com>
Mon, 6 Jun 2016 07:27:33 +0000 (15:27 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 4 Jul 2016 06:02:25 +0000 (14:02 +0800)
commit7af0c9a9cac604bf111d3f38578e2eb5e9148573
tree0cda5726b4879968920c805680342b744a742854
parente92970aaaba0effa1497002071ad62cdd8fb78cf
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;

Change-Id: I08678fdcc13a5c4055fcc46f20b378ad7fa16761
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
(am from https://patchwork.kernel.org/patch/9157353/)