1 /*****************************************************************************
2 * mpeg4_iod.h: ISO 14496-1 IOD and parsers
3 *****************************************************************************
4 * Copyright (C) 2004-2015 VLC authors and VideoLAN
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 *****************************************************************************/
21 #define ES_DESCRIPTOR_COUNT 255
24 USE_ACCESS_UNIT_START_FLAG = 1 << 7,
25 USE_ACCESS_UNIT_END_FLAG = 1 << 6,
26 USE_RANDOM_ACCESS_POINT_FLAG = 1 << 5,
27 HAS_RANDOM_ACCESS_UNITS_ONLY_FLAG = 1 << 4,
28 USE_PADDING_FLAG = 1 << 3,
29 USE_TIMESTAMPS_FLAG = 1 << 2,
30 USE_IDLE_FLAG = 1 << 1,
36 uint32_t i_timestamp_resolution;
37 uint32_t i_OCR_resolution;
39 uint8_t i_timestamp_length;
42 uint8_t i_instant_bitrate_length;
43 uint8_t i_degradation_priority_length;
44 uint8_t i_AU_seqnum_length;
45 uint8_t i_packet_seqnum_length;
48 uint16_t i_accessunit_duration;
49 uint16_t i_compositionunit_duration;
51 uint64_t i_startdecoding_timestamp;
52 uint64_t i_startcomposition_timestamp;
53 } sl_config_descriptor_t;
57 uint8_t i_objectTypeIndication;
63 } decoder_config_descriptor_t;
72 decoder_config_descriptor_t dec_descr;
73 sl_config_descriptor_t sl_descr;
75 } es_mpeg4_descriptor_t;
82 es_mpeg4_descriptor_t es_descr[ES_DESCRIPTOR_COUNT];
86 iod_descriptor_t *IODNew( vlc_object_t *p_object, unsigned i_data, const uint8_t *p_data );
87 void IODFree( iod_descriptor_t *p_iod );