From 14de09a401a07c143bbac09d6a9760a379dd302e Mon Sep 17 00:00:00 2001 From: Herman Chen Date: Wed, 19 Dec 2018 10:44:41 +0800 Subject: [PATCH] [jpege]: Add YUYV422 format support Change-Id: Idbecbab280ce1128d21ee6656307b6c95a9523cf Signed-off-by: Herman Chen --- mpp/hal/vpu/jpege/hal_jpege_vepu1.c | 1 + mpp/hal/vpu/jpege/hal_jpege_vepu2.c | 1 + 2 files changed, 2 insertions(+) diff --git a/mpp/hal/vpu/jpege/hal_jpege_vepu1.c b/mpp/hal/vpu/jpege/hal_jpege_vepu1.c index fcb2c186..7339db24 100644 --- a/mpp/hal/vpu/jpege/hal_jpege_vepu1.c +++ b/mpp/hal/vpu/jpege/hal_jpege_vepu1.c @@ -534,6 +534,7 @@ MPP_RET hal_jpege_vepu1_control(void *hal, RK_S32 cmd, void *param) if (cfg->format != MPP_FMT_YUV420SP && cfg->format != MPP_FMT_YUV420P && cfg->format != MPP_FMT_YUV422SP_VU && + cfg->format != MPP_FMT_YUV422_YUYV && cfg->format != MPP_FMT_YUV422_UYVY && cfg->format != MPP_FMT_RGB888 && cfg->format != MPP_FMT_BGR888) { diff --git a/mpp/hal/vpu/jpege/hal_jpege_vepu2.c b/mpp/hal/vpu/jpege/hal_jpege_vepu2.c index b33b2125..c366dc8d 100644 --- a/mpp/hal/vpu/jpege/hal_jpege_vepu2.c +++ b/mpp/hal/vpu/jpege/hal_jpege_vepu2.c @@ -515,6 +515,7 @@ MPP_RET hal_jpege_vepu2_control(void *hal, RK_S32 cmd, void *param) if (cfg->format != MPP_FMT_YUV420SP && cfg->format != MPP_FMT_YUV420P && cfg->format != MPP_FMT_YUV422SP_VU && + cfg->format != MPP_FMT_YUV422_YUYV && cfg->format != MPP_FMT_YUV422_UYVY && cfg->format != MPP_FMT_RGB888 && cfg->format != MPP_FMT_BGR888) {