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_process_intra_mb.h
24  *
25  * \brief
26  *    Contains routines that decode a I slice type
27  *
28  * Detailed_description
29  *
30  * \date
31  *    07/07/2003
32  *
33  * \author  NS
34  **************************************************************************
35  */
36 #ifndef _IH264D_PROCESS_INTRA_MB_H_
37 #define _IH264D_PROCESS_INTRA_MB_H_
38 
39 #include "ih264_typedefs.h"
40 #include "ih264_macros.h"
41 #include "ih264_platform_macros.h"
42 #include "ih264d_structs.h"
43 
44 #define CHROMA_TO_LUMA_INTRA_MODE(x)   (x ^ ( (!(x & 0x01)) << 1))
45 #define MB_TYPE_TO_INTRA_16x16_MODE(x) ((x - 1) & 0x03)
46 
47 UWORD32 ih264d_unpack_luma_coeff4x4_mb(dec_struct_t * ps_dec,
48                                     dec_mb_info_t * ps_cur_mb_info,
49                                     UWORD8 intra_flag);
50 void ih264d_unpack_chroma_coeff4x4_mb(dec_struct_t * ps_dec,
51                                       dec_mb_info_t * ps_cur_mb_info);
52 UWORD32 ih264d_unpack_luma_coeff8x8_mb(dec_struct_t * ps_dec,
53                                     dec_mb_info_t * ps_cur_mb_info);
54 
55 WORD32 ih264d_read_intra_pred_modes(dec_struct_t *ps_dec,
56                                     UWORD8 *pu1_prev_intra4x4_pred_mode_flag,
57                                     UWORD8 *pu1_rem_intra4x4_pred_mode,
58                                     UWORD32 u4_trans_form8x8);
59 
60 WORD32 ih264d_process_intra_mb(dec_struct_t * ps_dec,
61                                dec_mb_info_t * ps_cur_mb_info,
62                                UWORD8 u1_mb_num);
63 
64 #endif  /* _IH264D_PROCESS_INTRA_MB_H_ */
65 
66