irc_vbr_str_prms.h revision a2b49e5f0574dee76f81507f288143d83a4b7c1a
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 _VBR_STR_PRMS_H_
22#define _VBR_STR_PRMS_H_
23
24typedef struct
25{
26    UWORD32 u4_num_pics_in_delay_prd[MAX_PIC_TYPE];
27    UWORD32 u4_pic_num;
28    UWORD32 u4_intra_prd_pos_in_tgt_ticks;
29    UWORD32 u4_cur_pos_in_src_ticks;
30    UWORD32 u4_intra_frame_int;
31    UWORD32 u4_src_ticks;
32    UWORD32 u4_tgt_ticks;
33    UWORD32 u4_frms_in_delay_prd;
34} vbr_str_prms_t;
35
36void irc_init_vbv_str_prms(vbr_str_prms_t *p_vbr_str_prms,
37                           UWORD32 u4_intra_frm_interval,
38                           UWORD32 u4_src_ticks,
39                           UWORD32 u4_tgt_ticks,
40                           UWORD32 u4_frms_in_delay_period);
41
42WORD32 irc_get_vsp_num_pics_in_dly_prd(vbr_str_prms_t *p_vbr_str_prms,
43                                       UWORD32 *pu4_num_pics_in_delay_prd);
44
45void irc_get_vsp_src_tgt_ticks(vbr_str_prms_t *p_vbr_str_prms,
46                               UWORD32 *pu4_src_ticks,
47                               UWORD32 *pu4_tgt_ticks);
48
49void irc_update_vbr_str_prms(vbr_str_prms_t *p_vbr_str_prms,
50                             picture_type_e e_pic_type);
51
52void irc_change_vsp_ifi(vbr_str_prms_t *p_vbr_str_prms,
53                        UWORD32 u4_intra_frame_int);
54
55void irc_change_vsp_tgt_ticks(vbr_str_prms_t *p_vbr_str_prms,
56                              UWORD32 u4_tgt_ticks);
57
58void irc_change_vsp_src_ticks(vbr_str_prms_t *p_vbr_str_prms,
59                              UWORD32 u4_src_ticks);
60
61void irc_change_vsp_fidp(vbr_str_prms_t *p_vbr_str_prms,
62                         UWORD32 u4_frms_in_delay_period);
63
64#endif
65
66