* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
+
#ifndef _VLC_MP4_H
#define _VLC_MP4_H 1
-
#define FOURCC_uuid VLC_FOURCC( 'u', 'u', 'i', 'd' )
#define FOURCC_ftyp VLC_FOURCC( 'f', 't', 'y', 'p' )
} MP4_Box_data_trkn_t;
+typedef struct
+{
+ uint8_t i_version;
+ uint32_t i_flags;
+
+ uint16_t i_object_descriptor;
+ uint8_t i_OD_profile_level;
+ uint8_t i_scene_profile_level;
+ uint8_t i_audio_profile_level;
+ uint8_t i_visual_profile_level;
+ uint8_t i_graphics_profile_level;
+
+} MP4_Box_data_iods_t;
+
/*
typedef struct MP4_Box_data__s
{
MP4_Box_data_enda_t *p_enda;
MP4_Box_data_gnre_t *p_gnre;
MP4_Box_data_trkn_t *p_trkn;
+ MP4_Box_data_iods_t *p_iods;
MP4_Box_data_stsz_t *p_stsz;
MP4_Box_data_stz2_t *p_stz2;
*****************************************************************************/
void MP4_BoxDumpStructure( stream_t *p_input, MP4_Box_t *p_box );
-
/*****************************************************************************
* MP4_BoxGet: find a box given a path relative to p_box
*****************************************************************************
*****************************************************************************/
int MP4_BoxCount( MP4_Box_t *p_box, const char *psz_fmt, ... );
+/* Internal functions exposed for MKV demux */
int MP4_ReadBoxCommon( stream_t *p_stream, MP4_Box_t *p_box );
int MP4_ReadBox_sample_vide( stream_t *p_stream, MP4_Box_t *p_box );
void MP4_FreeBox_sample_vide( MP4_Box_t *p_box );