From bf6a59f67f2adbb77a360bc94de0e8627b9c2261 Mon Sep 17 00:00:00 2001 From: Yandong Lin Date: Fri, 14 May 2021 11:47:30 +0800 Subject: [PATCH] [jpege]: Support jpeg enc dynamic setting rotation param Signed-off-by: Yandong Lin Change-Id: Id93d8f67f0eb7da920c84888f3e3c155107a6d03 --- mpp/codec/enc/jpeg/jpege_api_v2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mpp/codec/enc/jpeg/jpege_api_v2.c b/mpp/codec/enc/jpeg/jpege_api_v2.c index 1bf939e3..64dc1ba8 100644 --- a/mpp/codec/enc/jpeg/jpege_api_v2.c +++ b/mpp/codec/enc/jpeg/jpege_api_v2.c @@ -129,7 +129,8 @@ static MPP_RET jpege_proc_prep_cfg(MppEncPrepCfg *dst, MppEncPrepCfg *src) /* jpeg encoder do not have mirring / denoise feature */ - if (change & MPP_ENC_PREP_CFG_CHANGE_INPUT) { + if ((change & MPP_ENC_PREP_CFG_CHANGE_INPUT) || + (change & MPP_ENC_PREP_CFG_CHANGE_ROTATION)) { if (dst->rotation == MPP_ENC_ROT_90 || dst->rotation == MPP_ENC_ROT_270) { dst->width = src->height; dst->height = src->width;