Home | History | Annotate | Download | only in encoder
      1 /******************************************************************************
      2  *
      3  * Copyright (C) 2015 The Android Open Source Project
      4  *
      5  * Licensed under the Apache License, Version 2.0 (the "License");
      6  * you may not use this file except in compliance with the License.
      7  * You may obtain a copy of the License at:
      8  *
      9  * http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  * Unless required by applicable law or agreed to in writing, software
     12  * distributed under the License is distributed on an "AS IS" BASIS,
     13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  * See the License for the specific language governing permissions and
     15  * limitations under the License.
     16  *
     17  *****************************************************************************
     18  * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
     19 */
     20 
     21 #ifndef _RC_CNTRL_PARAM_H_
     22 #define _RC_CNTRL_PARAM_H_
     23 
     24 /* This file should contain only enumerations exported to codec by RC */
     25 
     26 /* RC algo type */
     27 typedef enum
     28 {
     29     VBR_STORAGE = 0,
     30     VBR_STORAGE_DVD_COMP = 1,
     31     VBR_STREAMING = 2,
     32     CONST_QP = 3,
     33     CBR_LDRC = 4,
     34     CBR_NLDRC = 5
     35 
     36 } rc_type_e;
     37 
     38 /* Picture type structure*/
     39 typedef enum
     40 {
     41     BUF_PIC = -1, I_PIC = 0, P_PIC, B_PIC, MAX_PIC_TYPE
     42 
     43 } picture_type_e;
     44 
     45 /* MB Type structure*/
     46 typedef enum
     47 {
     48     /* Based on MB TYPES added the array size increases */
     49     MB_TYPE_INTRA, MB_TYPE_INTER, MAX_MB_TYPE
     50 } mb_type_e;
     51 
     52 typedef enum
     53 {
     54     VBV_NORMAL, VBV_UNDERFLOW, VBV_OVERFLOW, VBR_CAUTION
     55 
     56 } vbv_buf_status_e;
     57 
     58 #endif
     59 
     60