mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
[mpp2str]: Add rc_gop_mode 2 str
Change-Id: I3fd4334cf108d62726e3caae5eda9801922d8ef9 Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
This commit is contained in:
parent
476e6adfa5
commit
41c9c809b0
3 changed files with 19 additions and 0 deletions
|
|
@ -48,4 +48,10 @@ typedef enum MppEncRcSuperFrameMode_t {
|
|||
MPP_ENC_RC_SUPER_FRM_BUTT
|
||||
} MppEncRcSuperFrameMode;
|
||||
|
||||
typedef enum MppEncRcGopMode_e {
|
||||
MPP_ENC_RC_NORMAL_P,
|
||||
MPP_ENC_RC_SMART_P,
|
||||
MPP_ENC_RC_GOP_MODE_BUTT,
|
||||
} MppEncRcGopMode;
|
||||
|
||||
#endif /*__RK_VENC_RC_H__*/
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ const char *strof_ctx_type(MppCtxType type);
|
|||
const char *strof_coding_type(MppCodingType coding);
|
||||
const char *strof_rc_mode(MppEncRcMode rc_mode);
|
||||
const char *strof_profle(MppCodingType coding, RK_U32 profile);
|
||||
const char *strof_gop_mode(MppEncRcGopMode gop_mode);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,6 +77,18 @@ const char *strof_rc_mode(MppEncRcMode rc_mode)
|
|||
|
||||
return NULL;
|
||||
}
|
||||
const char *strof_gop_mode(MppEncRcGopMode gop_mode)
|
||||
{
|
||||
static const char *gop_mode_str[] = {
|
||||
"normalp",
|
||||
"smartp",
|
||||
};
|
||||
|
||||
if (gop_mode >= MPP_ENC_RC_NORMAL_P && gop_mode < MPP_ENC_RC_GOP_MODE_BUTT)
|
||||
return gop_mode_str[gop_mode];
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char *strof_profle(MppCodingType coding, RK_U32 profile)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue