xref: /aosp_15_r20/external/libhevc/decoder/ihevcd_parse_headers.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_headers.h
22*c83a76b0SSuyog Pawar *
23*c83a76b0SSuyog Pawar * @brief
24*c83a76b0SSuyog Pawar *  Parsing of various headers like VPS, SPS, PPS etc
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_HEADERS_H_
36*c83a76b0SSuyog Pawar #define _IHEVCD_PARSE_HEADERS_H_
37*c83a76b0SSuyog Pawar 
38*c83a76b0SSuyog Pawar void ihevcd_copy_sps(codec_t *ps_codec, WORD32 sps_id, WORD32 sps_id_ref);
39*c83a76b0SSuyog Pawar void ihevcd_copy_pps(codec_t *ps_codec, WORD32 pps_id, WORD32 pps_id_ref);
40*c83a76b0SSuyog Pawar void ihevcd_copy_slice_hdr(codec_t *ps_codec, WORD32 slice_idx, WORD32 slice_idx_ref);
41*c83a76b0SSuyog Pawar 
42*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_parse_vps(codec_t *ps_codec);
43*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec);
44*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_parse_pps(codec_t *ps_codec);
45*c83a76b0SSuyog Pawar #ifndef DISABLE_SEI
46*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_parse_sei(codec_t *ps_codec, nal_header_t *ps_nal);
47*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_parse_pic_timing_sei(codec_t *ps_codec, sps_t *ps_sps);
48*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_parse_buffering_period_sei(codec_t *ps_codec, sps_t *ps_sps);
49*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_parse_time_code_sei(codec_t *ps_codec);
50*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_parse_user_data_registered_itu_t_t35(codec_t *ps_codec, UWORD32 u4_payload_size);
51*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_parse_active_parameter_sets_sei(codec_t *ps_codec, sps_t *ps_sps);
52*c83a76b0SSuyog Pawar #endif
53*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_read_rbsp_trailing_bits(codec_t *ps_codec, UWORD32 u4_bits_left);
54*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_parse_slice_header(codec_t *ps_codec,
55*c83a76b0SSuyog Pawar                                          nal_header_t *ps_nal);
56*c83a76b0SSuyog Pawar 
57*c83a76b0SSuyog Pawar #endif /* _IHEVCD_PARSE_HEADERS_H_ */
58