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:
508e51e
)
drm/rockchip: vop: fix NV12 video display error
author
Mark Yao
<mark.yao@rock-chips.com>
Tue, 2 May 2017 07:22:43 +0000
(15:22 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Tue, 2 May 2017 08:32:34 +0000
(16:32 +0800)
fixup the scale calculation formula on the case
src_height == (dst_height/2).
Change-Id: I620a4646232c016ff1547b5b6469ed2eedeacfed
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/rockchip/rockchip_drm_vop.h
b/drivers/gpu/drm/rockchip/rockchip_drm_vop.h
index 7e45492ba1a3e783d96bd393ef50dc9fd919844e..3519520c4a7ab622c9761b493d050ac389f796a8 100644
(file)
--- a/
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
+++ b/
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
@@
-446,6
+446,9
@@
static inline uint16_t scl_get_bili_dn_vskip(int src_h, int dst_h,
act_height = (src_h + vskiplines - 1) / vskiplines;
+ if (act_height == dst_h)
+ return GET_SCL_FT_BILI_DN(src_h, dst_h) / vskiplines;
+
return GET_SCL_FT_BILI_DN(act_height, dst_h);
}