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 /* Rate control parameter */ 20 typedef enum MppEncRcMode_e { 21 MPP_ENC_RC_MODE_VBR, 22 MPP_ENC_RC_MODE_CBR, 23 MPP_ENC_RC_MODE_FIXQP, 24 MPP_ENC_RC_MODE_AVBR, 25 MPP_ENC_RC_MODE_BUTT 26 } MppEncRcMode; 27 28 typedef enum MppEncRcPriority_e { 29 MPP_ENC_RC_BY_BITRATE_FIRST, 30 MPP_ENC_RC_BY_FRM_SIZE_FIRST, 31 MPP_ENC_RC_PRIORITY_BUTT 32 } MppEncRcPriority; 33 34 typedef enum MppEncRcDropFrmMode_e { 35 MPP_ENC_RC_DROP_FRM_DISABLED, 36 MPP_ENC_RC_DROP_FRM_NORMAL, 37 MPP_ENC_RC_DROP_FRM_PSKIP, 38 MPP_ENC_RC_DROP_FRM_BUTT 39 } MppEncRcDropFrmMode; 40 41 typedef enum MppEncRcSuperFrameMode_t { 42 MPP_ENC_RC_SUPER_FRM_NONE, 43 MPP_ENC_RC_SUPER_FRM_DROP, 44 MPP_ENC_RC_SUPER_FRM_REENC, 45 MPP_ENC_RC_SUPER_FRM_BUTT 46 } MppEncRcSuperFrameMode; 47 48 typedef enum MppEncRcGopMode_e { 49 MPP_ENC_RC_NORMAL_P, 50 MPP_ENC_RC_SMART_P, 51 MPP_ENC_RC_GOP_MODE_BUTT, 52 } MppEncRcGopMode; 53 54 #endif /* __RK_VENC_RC_H__ */ 55