[jpege]: Support jpeg enc dynamic setting rotation param

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Id93d8f67f0eb7da920c84888f3e3c155107a6d03
This commit is contained in:
Yandong Lin
2021-05-14 11:47:30 +08:00
committed by Herman Chen
parent ffe4ef768b
commit bf6a59f67f

View File

@@ -129,7 +129,8 @@ static MPP_RET jpege_proc_prep_cfg(MppEncPrepCfg *dst, MppEncPrepCfg *src)
/* jpeg encoder do not have mirring / denoise feature */ /* 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) { if (dst->rotation == MPP_ENC_ROT_90 || dst->rotation == MPP_ENC_ROT_270) {
dst->width = src->height; dst->width = src->height;
dst->height = src->width; dst->height = src->width;