[COMMON] media: scaler: 10bit size calculation for V4L2_PIX_FMT_NV12N_10B
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Wed, 21 Jun 2017 08:31:12 +0000 (17:31 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:17 +0000 (20:22 +0300)
V4L2_PIX_FMT_NV12N_10B was missed for 10bit size calculation.

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

index 8d61e4078caf097da736ce03e9fdfd62fc144786..842910ab915dc5806c15b612a85c4e48e1d8847a 100644 (file)
@@ -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;