blob: 8740eb401206075a20100202eb99dbc7d9c6043f [file] [log] [blame]
Hamsalekha S8d3d3032015-03-13 21:24:58 +05301/******************************************************************************
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#ifndef _IH264D_PROCESS_PSLICE_H_
21#define _IH264D_PROCESS_PSLICE_H_
22/*!
23**************************************************************************
24* \file ih264d_process_pslice.h
25*
26* \brief
27* Contains declarations of routines that decode a P slice type
28*
29* Detailed_description
30*
31* \date
32* 21/12/2002
33*
34* \author NS
35**************************************************************************
36*/
37#include "ih264_typedefs.h"
38#include "ih264_macros.h"
39#include "ih264_platform_macros.h"
40#include "ih264d_structs.h"
41WORD32 ih264d_parse_pslice(dec_struct_t *ps_dec,
42 UWORD16 u2_first_mb_in_slice);
43WORD32 ih264d_parse_pred_weight_table(dec_slice_params_t * ps_cur_slice,
44 dec_bit_stream_t * ps_bitstrm);
45
46WORD32 parsePSliceData(dec_struct_t * ps_dec,
47 dec_slice_params_t * ps_slice,
48 UWORD16 u2_first_mb_in_slice);
49
50WORD32 ih264d_process_inter_mb(dec_struct_t * ps_dec,
51 dec_mb_info_t * ps_cur_mb_info,
52 UWORD8 u1_mb_num);
53
54void ih264d_init_ref_idx_lx_p(dec_struct_t *ps_dec);
55
56WORD32 ih264d_mv_pred_ref_tfr_nby2_pmb(dec_struct_t * ps_dec,
57 UWORD8 u1_num_mbs,
58 UWORD8 u1_num_mbsNby2);
59
60WORD32 ih264d_decode_recon_tfr_nmb(dec_struct_t * ps_dec,
61 UWORD8 u1_mb_idx,
62 UWORD8 u1_num_mbs,
63 UWORD8 u1_num_mbs_next,
64 UWORD8 u1_tfr_n_mb,
65 UWORD8 u1_end_of_row);
66
67void ih264d_insert_pic_in_ref_pic_listx(struct pic_buffer_t *ps_ref_pic_buf_lx,
68 struct pic_buffer_t *ps_pic);
69#endif /* _IH264D_PROCESS_PSLICE_H_ */