1/******************************************************************************
2*
3* Copyright (C) 2012 Ittiam Systems Pvt Ltd, Bangalore
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/**
19*******************************************************************************
20* @file
21*  ihevcd_parse_slice.h
22*
23* @brief
24*  Contains miscellaneous utility functions such as init() etc
25*
26* @author
27*  Harish
28*
29* @par List of Functions:
30*
31* @remarks
32*  None
33*
34*******************************************************************************
35*/
36
37#ifndef _IHEVCD_UTILS_H_
38#define _IHEVCD_UTILS_H_
39
40WORD32 ihevcd_get_lvl_idx(WORD32 level);
41WORD32 ihevcd_get_dpb_size(WORD32 level, WORD32 pic_size);
42WORD32 ihevcd_get_pic_mv_bank_size(WORD32 num_luma_samples);
43WORD32 ihevcd_get_tu_data_size(WORD32 num_luma_samples);
44WORD32 ihevcd_nctb_cnt(codec_t *ps_codec, sps_t *ps_sps);
45WORD32 ihevcd_get_max_luma_samples(WORD32 level);
46IHEVCD_ERROR_T ihevcd_get_tile_pos(pps_t *ps_pps,
47                                   sps_t *ps_sps,
48                                   WORD32 ctb_x,
49                                   WORD32 ctb_y,
50                                   WORD32 *pi4_ctb_tile_x,
51                                   WORD32 *pi4_ctb_tile_y,
52                                   WORD32 *pi4_tile_idx);
53IHEVCD_ERROR_T ihevcd_parse_pic_init(codec_t *ps_codec);
54WORD32 ihevcd_get_total_pic_buf_size(WORD32 pic_size,
55                                     WORD32 level,
56                                     WORD32 horz_pad,
57                                     WORD32 vert_pad,
58                                     WORD32 init_num_bufs,
59                                     WORD32 init_extra_bufs,
60                                     WORD32 chroma_only);
61#endif /* _IHEVCD_UTILS_H_ */
62