• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef __RK_VENC_RC_H__
17 #define __RK_VENC_RC_H__
18 
19 #include "rk_type.h"
20 
21 /* Rate control parameter */
22 typedef enum MppEncRcMode_e {
23     MPP_ENC_RC_MODE_VBR,
24     MPP_ENC_RC_MODE_CBR,
25     MPP_ENC_RC_MODE_FIXQP,
26     MPP_ENC_RC_MODE_AVBR,
27     MPP_ENC_RC_MODE_BUTT
28 } MppEncRcMode;
29 
30 typedef enum MppEncRcPriority_e {
31     MPP_ENC_RC_BY_BITRATE_FIRST,
32     MPP_ENC_RC_BY_FRM_SIZE_FIRST,
33     MPP_ENC_RC_PRIORITY_BUTT
34 } MppEncRcPriority;
35 
36 typedef enum MppEncRcDropFrmMode_e {
37     MPP_ENC_RC_DROP_FRM_DISABLED,
38     MPP_ENC_RC_DROP_FRM_NORMAL,
39     MPP_ENC_RC_DROP_FRM_PSKIP,
40     MPP_ENC_RC_DROP_FRM_BUTT
41 } MppEncRcDropFrmMode;
42 
43 typedef enum MppEncRcSuperFrameMode_t {
44     MPP_ENC_RC_SUPER_FRM_NONE,
45     MPP_ENC_RC_SUPER_FRM_DROP,
46     MPP_ENC_RC_SUPER_FRM_REENC,
47     MPP_ENC_RC_SUPER_FRM_BUTT
48 } MppEncRcSuperFrameMode;
49 
50 typedef enum MppEncRcGopMode_e {
51     MPP_ENC_RC_NORMAL_P,
52     MPP_ENC_RC_SMART_P,
53     MPP_ENC_RC_GOP_MODE_BUTT,
54 } MppEncRcGopMode;
55 
56 #endif /* __RK_VENC_RC_H__ */