• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 ihevce_entropy_interface.h
23 *
24 * \brief
25 *    This file contains interface defination of HEVC entropy function
26 *
27 * \date
28 *    18/09/2012
29 *
30 * \author
31 *    Ittiam
32 *
33 ******************************************************************************
34 */
35 
36 #ifndef _IHEVCE_ENTROPY_INTERFACE_H_
37 #define _IHEVCE_ENTROPY_INTERFACE_H_
38 
39 /*****************************************************************************/
40 /* Constant Macros                                                           */
41 /*****************************************************************************/
42 
43 /**  @brief  Enable/Disable NAL size populatation in output buffer */
44 #define POPULATE_NAL_SIZE 1
45 
46 /**  @brief  Enable/Disable NAL offset populatation in output buffer */
47 #define POPULATE_NAL_OFFSET 0
48 
49 /*****************************************************************************/
50 /* Function Macros                                                           */
51 /*****************************************************************************/
52 
53 /*****************************************************************************/
54 /* Typedefs                                                                  */
55 /*****************************************************************************/
56 
57 /*****************************************************************************/
58 /* Enums                                                                     */
59 /*****************************************************************************/
60 
61 /*****************************************************************************/
62 /* Structure                                                                 */
63 /*****************************************************************************/
64 
65 /*****************************************************************************/
66 /* Extern Variable Declarations                                              */
67 /*****************************************************************************/
68 
69 /*****************************************************************************/
70 /* Extern Function Declarations                                              */
71 /*****************************************************************************/
72 WORD32 ihevce_entropy_get_num_mem_recs(void);
73 
74 WORD32 ihevce_entropy_size_of_out_buffer(frm_proc_ent_cod_ctxt_t *ps_curr_inp);
75 
76 WORD32 ihevce_entropy_get_mem_recs(
77     iv_mem_rec_t *ps_mem_tab,
78     ihevce_static_cfg_params_t *ps_init_prms,
79     WORD32 i4_mem_space,
80     WORD32 i4_resolution_id);
81 
82 void *ihevce_entropy_init(
83     iv_mem_rec_t *ps_mem_tab,
84     ihevce_static_cfg_params_t *ps_init_prms,
85     void *pv_tile_params_base,
86     WORD32 i4_res_id);
87 
88 WORD32 ihevce_entropy_encode_frame(
89     void *pv_entropy_hdl,
90     iv_output_data_buffs_t *ps_curr_out,
91     frm_proc_ent_cod_ctxt_t *ps_curr_inp,
92     WORD32 i4_out_buf_size);
93 
94 #endif /* _IHEVCE_ENTROPY_INTERFACE_H_ */
95