From: Mark Yao Date: Mon, 6 Jun 2016 07:27:33 +0000 (+0800) Subject: drm/rockchip: vop: correct the source size of uv scale factor setting X-Git-Tag: firefly_0821_release~2250 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7af0c9a9cac604bf111d3f38578e2eb5e9148573;p=firefly-linux-kernel-4.4.55.git 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 (am from https://patchwork.kernel.org/patch/9157353/) ---