libavformat/isom.h File Reference

#include "avio.h"
#include "internal.h"
#include "dv.h"

Go to the source code of this file.

Data Structures

struct  MOVStts
struct  MOVStsc
struct  MOVDref
struct  MOVAtom
struct  MOVFragment
struct  MOVTrackExt
struct  MOVSbgp
struct  MOVStreamContext
struct  MOVContext

Defines

#define MP4ODescrTag   0x01
#define MP4IODescrTag   0x02
#define MP4ESDescrTag   0x03
#define MP4DecConfigDescrTag   0x04
#define MP4DecSpecificDescrTag   0x05
#define MP4SLDescrTag   0x06
#define MOV_TFHD_BASE_DATA_OFFSET   0x01
#define MOV_TFHD_STSD_ID   0x02
#define MOV_TFHD_DEFAULT_DURATION   0x08
#define MOV_TFHD_DEFAULT_SIZE   0x10
#define MOV_TFHD_DEFAULT_FLAGS   0x20
#define MOV_TFHD_DURATION_IS_EMPTY   0x010000
#define MOV_TRUN_DATA_OFFSET   0x01
#define MOV_TRUN_FIRST_SAMPLE_FLAGS   0x04
#define MOV_TRUN_SAMPLE_DURATION   0x100
#define MOV_TRUN_SAMPLE_SIZE   0x200
#define MOV_TRUN_SAMPLE_FLAGS   0x400
#define MOV_TRUN_SAMPLE_CTS   0x800
#define MOV_FRAG_SAMPLE_FLAG_DEGRADATION_PRIORITY_MASK   0x0000ffff
#define MOV_FRAG_SAMPLE_FLAG_IS_NON_SYNC   0x00010000
#define MOV_FRAG_SAMPLE_FLAG_PADDING_MASK   0x000e0000
#define MOV_FRAG_SAMPLE_FLAG_REDUNDANCY_MASK   0x00300000
#define MOV_FRAG_SAMPLE_FLAG_DEPENDED_MASK   0x00c00000
#define MOV_FRAG_SAMPLE_FLAG_DEPENDS_MASK   0x03000000
#define MOV_FRAG_SAMPLE_FLAG_DEPENDS_NO   0x02000000
#define MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES   0x01000000

Functions

int ff_mov_iso639_to_lang (const char lang[4], int mp4)
int ff_mov_lang_to_iso639 (unsigned code, char to[4])
int ff_mp4_read_descr_len (AVIOContext *pb)
int ff_mp4_read_descr (AVFormatContext *fc, AVIOContext *pb, int *tag)
int ff_mp4_read_dec_config_descr (AVFormatContext *fc, AVStream *st, AVIOContext *pb)
void ff_mp4_parse_es_descr (AVIOContext *pb, int *es_id)
int ff_mov_read_esds (AVFormatContext *fc, AVIOContext *pb, MOVAtom atom)
enum AVCodecID ff_mov_get_lpcm_codec_id (int bps, int flags)
 Compute codec id for 'lpcm' tag.
int ff_mov_read_stsd_entries (MOVContext *c, AVIOContext *pb, int entries)
int ff_mov_read_chan (AVFormatContext *s, AVIOContext *pb, AVStream *st, int64_t size)
void ff_mov_write_chan (AVIOContext *pb, int64_t channel_layout)

Variables

const AVCodecTag ff_mp4_obj_type []
const AVCodecTag ff_codec_movvideo_tags []
const AVCodecTag ff_codec_movaudio_tags []
const AVCodecTag ff_codec_movsubtitle_tags []


Define Documentation

#define MOV_FRAG_SAMPLE_FLAG_DEGRADATION_PRIORITY_MASK   0x0000ffff

Definition at line 193 of file isom.h.

#define MOV_FRAG_SAMPLE_FLAG_DEPENDED_MASK   0x00c00000

Definition at line 197 of file isom.h.

#define MOV_FRAG_SAMPLE_FLAG_DEPENDS_MASK   0x03000000

Definition at line 198 of file isom.h.

#define MOV_FRAG_SAMPLE_FLAG_DEPENDS_NO   0x02000000

Definition at line 200 of file isom.h.

Referenced by get_sample_flags(), and mov_write_tfhd_tag().

#define MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES   0x01000000

Definition at line 201 of file isom.h.

Referenced by get_sample_flags(), mov_read_trun(), and mov_write_tfhd_tag().

#define MOV_FRAG_SAMPLE_FLAG_IS_NON_SYNC   0x00010000

Definition at line 194 of file isom.h.

Referenced by get_sample_flags(), mov_read_trun(), and mov_write_tfhd_tag().

#define MOV_FRAG_SAMPLE_FLAG_PADDING_MASK   0x000e0000

Definition at line 195 of file isom.h.

#define MOV_FRAG_SAMPLE_FLAG_REDUNDANCY_MASK   0x00300000

Definition at line 196 of file isom.h.

#define MOV_TFHD_BASE_DATA_OFFSET   0x01

Definition at line 179 of file isom.h.

Referenced by mov_read_tfhd(), and mov_write_tfhd_tag().

#define MOV_TFHD_DEFAULT_DURATION   0x08

Definition at line 181 of file isom.h.

Referenced by mov_read_tfhd(), and mov_write_tfhd_tag().

#define MOV_TFHD_DEFAULT_FLAGS   0x20

Definition at line 183 of file isom.h.

Referenced by mov_read_tfhd(), and mov_write_tfhd_tag().

#define MOV_TFHD_DEFAULT_SIZE   0x10

Definition at line 182 of file isom.h.

Referenced by mov_read_tfhd(), and mov_write_tfhd_tag().

#define MOV_TFHD_DURATION_IS_EMPTY   0x010000

Definition at line 184 of file isom.h.

Referenced by mov_write_tfhd_tag().

#define MOV_TFHD_STSD_ID   0x02

Definition at line 180 of file isom.h.

Referenced by mov_read_tfhd().

#define MOV_TRUN_DATA_OFFSET   0x01

Definition at line 186 of file isom.h.

Referenced by mov_read_trun(), and mov_write_trun_tag().

#define MOV_TRUN_FIRST_SAMPLE_FLAGS   0x04

Definition at line 187 of file isom.h.

Referenced by mov_read_trun(), and mov_write_trun_tag().

#define MOV_TRUN_SAMPLE_CTS   0x800

Definition at line 191 of file isom.h.

Referenced by mov_read_trun(), and mov_write_trun_tag().

#define MOV_TRUN_SAMPLE_DURATION   0x100

Definition at line 188 of file isom.h.

Referenced by mov_read_trun(), and mov_write_trun_tag().

#define MOV_TRUN_SAMPLE_FLAGS   0x400

Definition at line 190 of file isom.h.

Referenced by mov_read_trun(), and mov_write_trun_tag().

#define MOV_TRUN_SAMPLE_SIZE   0x200

Definition at line 189 of file isom.h.

Referenced by mov_read_trun(), and mov_write_trun_tag().

#define MP4DecConfigDescrTag   0x04

Definition at line 175 of file isom.h.

Referenced by ff_mov_read_esds(), parse_mp4_descr(), and parse_MP4ESDescrTag().

#define MP4DecSpecificDescrTag   0x05

Definition at line 176 of file isom.h.

Referenced by ff_mp4_read_dec_config_descr().

#define MP4ESDescrTag   0x03

Definition at line 174 of file isom.h.

Referenced by ff_mov_read_esds(), and parse_mp4_descr().

#define MP4IODescrTag   0x02

Definition at line 173 of file isom.h.

Referenced by mp4_read_iods(), and parse_mp4_descr().

#define MP4ODescrTag   0x01

Definition at line 172 of file isom.h.

Referenced by parse_mp4_descr().

#define MP4SLDescrTag   0x06

Definition at line 177 of file isom.h.

Referenced by parse_mp4_descr(), and parse_MP4ESDescrTag().


Function Documentation

enum AVCodecID ff_mov_get_lpcm_codec_id ( int  bps,
int  flags 
)

Compute codec id for 'lpcm' tag.

See CoreAudioTypes and AudioStreamBasicDescription at Apple.

Definition at line 1164 of file mov.c.

Referenced by ff_mov_read_stsd_entries(), and read_desc_chunk().

int ff_mov_iso639_to_lang ( const char  lang[4],
int  mp4 
)

Definition at line 331 of file isom.c.

Referenced by mov_write_header(), mov_write_string_data_tag(), and mov_write_string_metadata().

int ff_mov_lang_to_iso639 ( unsigned  code,
char  to[4] 
)

Definition at line 358 of file isom.c.

Referenced by mov_read_mdhd(), and mov_read_udta_string().

int ff_mov_read_chan ( AVFormatContext s,
AVIOContext pb,
AVStream st,
int64_t  size 
)

Definition at line 546 of file mov_chan.c.

Referenced by aiff_read_header(), mov_read_chan(), mov_read_chan2(), and read_header().

int ff_mov_read_esds ( AVFormatContext fc,
AVIOContext pb,
MOVAtom  atom 
)

Definition at line 589 of file mov.c.

Referenced by mov_read_esds(), and read_kuki_chunk().

int ff_mov_read_stsd_entries ( MOVContext c,
AVIOContext pb,
int  entries 
)

Definition at line 1195 of file mov.c.

Referenced by mov_read_stsd(), and qt_rtp_parse_packet().

void ff_mov_write_chan ( AVIOContext pb,
int64_t  channel_layout 
)

Definition at line 542 of file isom.c.

Referenced by aiff_write_header(), and caf_write_header().

void ff_mp4_parse_es_descr ( AVIOContext pb,
int es_id 
)

Definition at line 402 of file isom.c.

Referenced by ff_mov_read_esds(), and parse_MP4ESDescrTag().

int ff_mp4_read_dec_config_descr ( AVFormatContext fc,
AVStream st,
AVIOContext pb 
)

Definition at line 427 of file isom.c.

Referenced by ff_mov_read_esds(), ff_parse_mpeg2_descriptor(), and m4sl_cb().

int ff_mp4_read_descr ( AVFormatContext fc,
AVIOContext pb,
int tag 
)

Definition at line 393 of file isom.c.

Referenced by ff_mov_read_esds(), ff_mp4_read_dec_config_descr(), and parse_mp4_descr().

int ff_mp4_read_descr_len ( AVIOContext pb  ) 

Definition at line 380 of file isom.c.

Referenced by ff_mp4_read_descr(), and read_pakt_chunk().


Variable Documentation

Definition at line 248 of file isom.c.

Referenced by ff_mov_read_stsd_entries(), and mov_get_codec_tag().

Definition at line 298 of file isom.c.

Referenced by ff_mov_read_stsd_entries(), and mov_get_codec_tag().

Definition at line 35 of file isom.c.

Referenced by mov_write_esds_tag(), and mp4_get_codec_tag().


Generated on Fri Oct 26 02:50:10 2012 for FFmpeg by  doxygen 1.5.8