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 /*!
22  ***************************************************************************
23  * \file ih264d_parse_cabac.h
24  *
25  * \brief
26  *    This file contains cabac Residual decoding routines.
27  *
28  * \date
29  *    20/03/2003
30  *
31  * \author  NS
32  ***************************************************************************
33  */
34 #ifndef _IH264D_PARSE_CABAC_H_
35 #define _IH264D_PARSE_CABAC_H_
36 
37 #include "ih264_typedefs.h"
38 #include "ih264_macros.h"
39 #include "ih264_platform_macros.h"
40 
41 #define UCOFF_LEVEL  14
42 
43 
44 UWORD8 ih264d_read_coeff4x4_cabac(dec_bit_stream_t *ps_bitstrm,
45                                   UWORD32 u4_ctxcat,
46                                   bin_ctxt_model_t *ps_ctxt_sig_coeff,
47                                   dec_struct_t *ps_dec,
48                                   bin_ctxt_model_t *ps_ctxt_coded);
49 
50 void ih264d_read_coeff8x8_cabac(dec_bit_stream_t *ps_bitstrm,
51                                 dec_struct_t *ps_dec,
52                                 dec_mb_info_t *ps_cur_mb_info);
53 
54 UWORD32 cabac_parse_8x8block_transform8x8_set(WORD16 *pi2_coeff_block,
55                                               dec_struct_t * ps_dec,
56                                               UWORD8 *pu1_top_nnz,
57                                               UWORD8 *pu1_left_nnz,
58                                               dec_mb_info_t *ps_cur_mb_info);
59 
60 #endif  /* _IH264D_PARSE_CABAC_H_ */
61