xref: /aosp_15_r20/external/libhevc/decoder/ihevcd_parse_slice_header.h (revision c83a76b084498d55f252f48b2e3786804cdf24b7)
1*c83a76b0SSuyog Pawar /******************************************************************************
2*c83a76b0SSuyog Pawar *
3*c83a76b0SSuyog Pawar * Copyright (C) 2012 Ittiam Systems Pvt Ltd, Bangalore
4*c83a76b0SSuyog Pawar *
5*c83a76b0SSuyog Pawar * Licensed under the Apache License, Version 2.0 (the "License");
6*c83a76b0SSuyog Pawar * you may not use this file except in compliance with the License.
7*c83a76b0SSuyog Pawar * You may obtain a copy of the License at:
8*c83a76b0SSuyog Pawar *
9*c83a76b0SSuyog Pawar * http://www.apache.org/licenses/LICENSE-2.0
10*c83a76b0SSuyog Pawar *
11*c83a76b0SSuyog Pawar * Unless required by applicable law or agreed to in writing, software
12*c83a76b0SSuyog Pawar * distributed under the License is distributed on an "AS IS" BASIS,
13*c83a76b0SSuyog Pawar * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*c83a76b0SSuyog Pawar * See the License for the specific language governing permissions and
15*c83a76b0SSuyog Pawar * limitations under the License.
16*c83a76b0SSuyog Pawar *
17*c83a76b0SSuyog Pawar ******************************************************************************/
18*c83a76b0SSuyog Pawar /**
19*c83a76b0SSuyog Pawar *******************************************************************************
20*c83a76b0SSuyog Pawar * @file
21*c83a76b0SSuyog Pawar *  ihevcd_parse_slice_header.h
22*c83a76b0SSuyog Pawar *
23*c83a76b0SSuyog Pawar * @brief
24*c83a76b0SSuyog Pawar *  Parsing of slice header
25*c83a76b0SSuyog Pawar *
26*c83a76b0SSuyog Pawar * @author
27*c83a76b0SSuyog Pawar *  Ittiam
28*c83a76b0SSuyog Pawar *
29*c83a76b0SSuyog Pawar * @remarks
30*c83a76b0SSuyog Pawar *  None
31*c83a76b0SSuyog Pawar *
32*c83a76b0SSuyog Pawar *******************************************************************************
33*c83a76b0SSuyog Pawar */
34*c83a76b0SSuyog Pawar 
35*c83a76b0SSuyog Pawar #ifndef _IHEVCD_PARSE_SLICE_HEADER_H_
36*c83a76b0SSuyog Pawar #define _IHEVCD_PARSE_SLICE_HEADER_H_
37*c83a76b0SSuyog Pawar 
38*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_short_term_ref_pic_set(bitstrm_t *ps_bitstrm,
39*c83a76b0SSuyog Pawar                                              stref_picset_t *ps_stref_picset_base,
40*c83a76b0SSuyog Pawar                                              WORD32 num_short_term_ref_pic_sets,
41*c83a76b0SSuyog Pawar                                              WORD32 idx,
42*c83a76b0SSuyog Pawar                                              stref_picset_t *ps_stref_picset);
43*c83a76b0SSuyog Pawar 
44*c83a76b0SSuyog Pawar WORD32 ihevcd_parse_pred_wt_ofst(bitstrm_t *ps_bitstrm,
45*c83a76b0SSuyog Pawar                                  sps_t *ps_sps,
46*c83a76b0SSuyog Pawar                                  pps_t *ps_pps,
47*c83a76b0SSuyog Pawar                                  slice_header_t *ps_slice_hdr);
48*c83a76b0SSuyog Pawar 
49*c83a76b0SSuyog Pawar WORD32 ihevcd_calc_poc(codec_t *ps_codec, nal_header_t *ps_nal, WORD8 i1_log2_max_poc_lsb, WORD32 i2_poc_lsb);
50*c83a76b0SSuyog Pawar 
51*c83a76b0SSuyog Pawar 
52*c83a76b0SSuyog Pawar 
53*c83a76b0SSuyog Pawar #endif /* _IHEVCD_PARSE_SLICE_HEADER_H_ */
54