mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
[enc_cfg]: Update mirror transformation.
1. constraint the range of input argument. 2. add flip config, equal to vertical mirror transformation. 3. add mirroring_ext and rotation_ext to config set, for supporting GET_CFG control. Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com> Change-Id: I01c0b9187a18851354e81b5f08afc6dcaaba8365
This commit is contained in:
@@ -480,8 +480,9 @@ typedef enum MppEncPrepCfgChange_e {
|
||||
MPP_ENC_PREP_CFG_CHANGE_INPUT = (1 << 0), /* change on input config */
|
||||
MPP_ENC_PREP_CFG_CHANGE_FORMAT = (1 << 2), /* change on format */
|
||||
/* transform parameter */
|
||||
MPP_ENC_PREP_CFG_CHANGE_ROTATION = (1 << 4), /* change on ration */
|
||||
MPP_ENC_PREP_CFG_CHANGE_ROTATION = (1 << 4), /* change on rotation */
|
||||
MPP_ENC_PREP_CFG_CHANGE_MIRRORING = (1 << 5), /* change on mirroring */
|
||||
MPP_ENC_PREP_CFG_CHANGE_FLIP = (1 << 6), /* change on flip */
|
||||
/* enhancement parameter */
|
||||
MPP_ENC_PREP_CFG_CHANGE_DENOISE = (1 << 8), /* change on denoise */
|
||||
MPP_ENC_PREP_CFG_CHANGE_SHARPEN = (1 << 9), /* change on denoise */
|
||||
@@ -550,15 +551,24 @@ typedef struct MppEncPrepCfg_t {
|
||||
MppFrameColorTransferCharacteristic colortrc;
|
||||
MppFrameColorRange range;
|
||||
|
||||
/* suffix ext means the user set config externally */
|
||||
MppEncRotationCfg rotation;
|
||||
MppEncRotationCfg rotation_ext;
|
||||
|
||||
/*
|
||||
* input frame mirroring parameter
|
||||
* 0 - disable mirroring
|
||||
* 1 - horizontal mirroring
|
||||
* 2 - vertical mirroring
|
||||
*/
|
||||
RK_S32 mirroring;
|
||||
RK_S32 mirroring_ext;
|
||||
|
||||
/*
|
||||
* input frame flip parameter
|
||||
* 0 - disable flip
|
||||
* 1 - flip, vertical mirror transformation
|
||||
*/
|
||||
RK_S32 flip;
|
||||
|
||||
/*
|
||||
* TODO:
|
||||
|
Reference in New Issue
Block a user