00001 /***************************************************************** 00002 | 00003 | Common Media Types 00004 | 00005 | (c) 2002-2007 Gilles Boccon-Gibod 00006 | Author: Gilles Boccon-Gibod (bok@bok.net) 00007 | 00008 ****************************************************************/ 00013 #ifndef _BLT_COMMON_MEDIA_TYPES_H_ 00014 #define _BLT_COMMON_MEDIA_TYPES_H_ 00015 00016 /*---------------------------------------------------------------------- 00017 | includes 00018 +---------------------------------------------------------------------*/ 00019 #include "BltTypes.h" 00020 #include "BltModule.h" 00021 #include "BltStream.h" 00022 00023 /*---------------------------------------------------------------------- 00024 | constants 00025 +---------------------------------------------------------------------*/ 00026 #define BLT_MP4_ES_MIME_TYPE "audio/vnd.bluetune.mp4-es" 00027 #define BLT_ISO_BASE_ES_MIME_TYPE "audio/vnd.bluetune.iso-base-es" 00028 00029 /*---------------------------------------------------------------------- 00030 | types 00031 +---------------------------------------------------------------------*/ 00032 typedef struct { 00033 BLT_MediaType base; 00034 unsigned int object_type_id; 00035 unsigned int decoder_info_length; 00036 /* variable size array follows */ 00037 unsigned char decoder_info[1]; /* could be more than 1 byte */ 00038 } BLT_Mpeg4AudioMediaType; 00039 00040 typedef struct { 00041 BLT_MediaType base; 00042 BLT_UInt32 format; 00043 unsigned int decoder_info_length; 00044 /* variable size array follows */ 00045 unsigned char decoder_info[1]; /* could be more than 1 byte */ 00046 } BLT_IsoBaseAudioMediaType; 00047 00048 #endif /* _BLT_COMMON_MEDIA_TYPES_H_ */