mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-07 01:52:46 +08:00
[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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user