From 1a561bee2b589295e07c11547c4a1bb25fe21430 Mon Sep 17 00:00:00 2001 From: Janghyuck Kim Date: Mon, 19 Jun 2017 21:15:05 +0900 Subject: [PATCH] [COMMON] media: scaler: get rid of padding for 2bit CbCr In case of S10B pixel format, padding bytes for 2bit CbCr does not necessary. Change-Id: I66fd0197c53690beb1d94e5315eea5c0b6ec88b1 Signed-off-by: Janghyuck Kim --- drivers/media/platform/exynos/scaler/scaler-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/exynos/scaler/scaler-core.c b/drivers/media/platform/exynos/scaler/scaler-core.c index bb92fc222633..bb8f8c5012f2 100644 --- a/drivers/media/platform/exynos/scaler/scaler-core.c +++ b/drivers/media/platform/exynos/scaler/scaler-core.c @@ -659,6 +659,9 @@ int sc_calc_s10b_planesize(u32 pixelformat, u32 width, u32 height, break; } + /* Do not consider extra size for 2bit CbCr */ + *csize -= 256; + return ret; } -- 2.20.1