Searched hist:ee8662fc (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_vop.c | ee8662fc Mon Jun 06 02:58:46 CDT 2016 Mark Yao <mark.yao@rock-chips.com> 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> ee8662fc Mon Jun 06 02:58:46 CDT 2016 Mark Yao <mark.yao@rock-chips.com> 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>
|