From de67a36bf22650a764c3afb7d335624f00c478a1 Mon Sep 17 00:00:00 2001 From: Janghyuck Kim Date: Wed, 21 Jun 2017 17:31:12 +0900 Subject: [PATCH] [COMMON] media: scaler: 10bit size calculation for V4L2_PIX_FMT_NV12N_10B V4L2_PIX_FMT_NV12N_10B was missed for 10bit size calculation. Change-Id: I6cb0582ae7e00b5c91a9362e9bd9b35603def47b Signed-off-by: Janghyuck Kim --- drivers/media/platform/exynos/scaler/scaler-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/exynos/scaler/scaler-core.c b/drivers/media/platform/exynos/scaler/scaler-core.c index 8d61e4078caf..842910ab915d 100644 --- a/drivers/media/platform/exynos/scaler/scaler-core.c +++ b/drivers/media/platform/exynos/scaler/scaler-core.c @@ -727,6 +727,7 @@ int sc_calc_s10b_planesize(u32 pixelformat, u32 width, u32 height, switch (pixelformat) { case V4L2_PIX_FMT_NV12M_S10B: + case V4L2_PIX_FMT_NV12N_10B: *ysize = NV12M_Y_SIZE(width, height); *csize = NV12M_CBCR_SIZE(width, height); break; @@ -745,6 +746,7 @@ int sc_calc_s10b_planesize(u32 pixelformat, u32 width, u32 height, switch (pixelformat) { case V4L2_PIX_FMT_NV12M_S10B: + case V4L2_PIX_FMT_NV12N_10B: *ysize += NV12M_Y_2B_SIZE(width, height); *csize += NV12M_CBCR_2B_SIZE(width, height); break; -- 2.20.1