[COMMON] media: scaler: get rid of padding for 2bit CbCr
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Mon, 19 Jun 2017 12:15:05 +0000 (21:15 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:28:30 +0000 (14:28 +0900)
In case of S10B pixel format, padding bytes for 2bit CbCr does not
necessary.

Change-Id: I66fd0197c53690beb1d94e5315eea5c0b6ec88b1
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
drivers/media/platform/exynos/scaler/scaler-core.c

index bb92fc222633f69e00f9764de83d78eb4c2f3fd7..bb8f8c5012f2b7204b9b6d18d0117e3727285595 100644 (file)
@@ -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;
 }