1 /****************************************************************************** 2 * 3 * Copyright (C) 2018 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 ****************************************************************************** 22 * \file vbr_str_prms.h 23 * 24 * \brief 25 * This file contains all the necessary declarations for 26 * vbr params functions 27 * 28 * \date 29 * 30 * \author 31 * ittiam 32 * 33 ****************************************************************************** 34 */ 35 #ifndef _VBR_STR_PRMS_H_ 36 #define _VBR_STR_PRMS_H_ 37 38 /*****************************************************************************/ 39 /* Structure */ 40 /*****************************************************************************/ 41 typedef struct 42 { 43 UWORD32 u4_num_pics_in_delay_prd[MAX_PIC_TYPE]; 44 UWORD32 u4_pic_num; 45 UWORD32 u4_intra_prd_pos_in_tgt_ticks; 46 UWORD32 u4_cur_pos_in_src_ticks; 47 UWORD32 u4_intra_frame_int; 48 UWORD32 u4_src_ticks; 49 UWORD32 u4_tgt_ticks; 50 UWORD32 u4_frms_in_delay_prd; 51 } vbr_str_prms_t; 52 53 /*****************************************************************************/ 54 /* Function Declarations */ 55 /*****************************************************************************/ 56 void init_vbv_str_prms( 57 vbr_str_prms_t *p_vbr_str_prms, 58 UWORD32 u4_intra_frm_interval, 59 UWORD32 u4_src_ticks, 60 UWORD32 u4_tgt_ticks, 61 UWORD32 u4_frms_in_delay_period); 62 63 void change_vsp_ifi(vbr_str_prms_t *p_vbr_str_prms, UWORD32 u4_intra_frame_int); 64 void change_vsp_tgt_ticks(vbr_str_prms_t *p_vbr_str_prms, UWORD32 u4_tgt_ticks); 65 void change_vsp_src_ticks(vbr_str_prms_t *p_vbr_str_prms, UWORD32 u4_src_ticks); 66 void change_vsp_fidp(vbr_str_prms_t *p_vbr_str_prms, UWORD32 u4_frms_in_delay_period); 67 68 #endif 69