projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e79010
)
rk3368 lcdc: add yuv420sp nv21 format at lcdc scale fac
author
hjc
<hjc@rock-chips.com>
Mon, 16 Mar 2015 01:58:27 +0000
(09:58 +0800)
committer
hjc
<hjc@rock-chips.com>
Tue, 17 Mar 2015 07:31:58 +0000
(15:31 +0800)
Signed-off-by: hjc <hjc@rock-chips.com>
drivers/video/rockchip/lcdc/rk3368_lcdc.c
patch
|
blob
|
history
diff --git
a/drivers/video/rockchip/lcdc/rk3368_lcdc.c
b/drivers/video/rockchip/lcdc/rk3368_lcdc.c
index ba13a770bbb5b21a65ea94fb88c4912555b814d2..151ee9457678cef113cd6e02174c6f8fa35832fd 100755
(executable)
--- a/
drivers/video/rockchip/lcdc/rk3368_lcdc.c
+++ b/
drivers/video/rockchip/lcdc/rk3368_lcdc.c
@@
-2273,6
+2273,7
@@
static int rk3368_lcdc_cal_scl_fac(struct rk_lcdc_win *win)
break;
case YUV420:
case YUV420_A:
+ case YUV420_NV21:
cbcr_srcW = srcW / 2;
cbcr_dstW = dstW;
cbcr_srcH = srcH / 2;
@@
-2329,6
+2330,7
@@
static int rk3368_lcdc_cal_scl_fac(struct rk_lcdc_win *win)
/*line buffer mode */
if ((win->area[0].format == YUV422) ||
(win->area[0].format == YUV420) ||
+ (win->area[0].format == YUV420_NV21) ||
(win->area[0].format == YUV422_A) ||
(win->area[0].format == YUV420_A)) {
if (win->cbr_hor_scl_mode == SCALE_DOWN) {