libavformat/mov.c File Reference

#include <limits.h>
#include "avformat.h"
#include "riff.h"
#include "isom.h"
#include "dv.h"
#include "bitstream.h"
#include "qtpalette.h"
#include <assert.h>

Go to the source code of this file.

Data Structures

struct  MOV_stsc_t
struct  MOV_atom_t
struct  MOV_mdat_t
struct  MOVStreamContext
struct  MOVContext
struct  MOVParseTableEntry

Defines

#define MP4ESDescrTag   0x03
#define MP4DecConfigDescrTag   0x04
#define MP4DecSpecificDescrTag   0x05

Functions

static int mov_read_default (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_hdlr (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mp4_read_descr_len (ByteIOContext *pb)
static int mp4_read_descr (MOVContext *c, ByteIOContext *pb, int *tag)
static int mov_read_esds (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_mdat (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_ftyp (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_moov (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_mdhd (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_mvhd (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_smi (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_enda (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_extradata (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_wave (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_glbl (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
 This function reads atom content and puts data in extradata without tag nor size unlike mov_read_extradata.
static int mov_read_stco (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_stsd (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_stsc (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_stss (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_stsz (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_stts (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_ctts (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_trak (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static void mov_parse_udta_string (ByteIOContext *pb, char *str, int size)
static int mov_read_udta (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_tkhd (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_wide (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_cmov (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_elst (MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_probe (AVProbeData *p)
static void mov_build_index (MOVContext *mov, AVStream *st)
static int mov_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int mov_read_packet (AVFormatContext *s, AVPacket *pkt)
static int mov_seek_stream (AVStream *st, int64_t timestamp, int flags)
static int mov_read_seek (AVFormatContext *s, int stream_index, int64_t sample_time, int flags)
static int mov_read_close (AVFormatContext *s)

Variables

static const MOVParseTableEntry mov_default_parse_table []
AVInputFormat mov_demuxer


Define Documentation

#define MP4DecConfigDescrTag   0x04

Definition at line 272 of file mov.c.

Referenced by mov_read_esds().

#define MP4DecSpecificDescrTag   0x05

Definition at line 273 of file mov.c.

Referenced by mov_read_esds().

#define MP4ESDescrTag   0x03

Definition at line 271 of file mov.c.

Referenced by mov_read_esds().


Function Documentation

static void mov_build_index ( MOVContext mov,
AVStream st 
) [static]

Definition at line 1356 of file mov.c.

Referenced by mov_read_header().

static void mov_parse_udta_string ( ByteIOContext pb,
char *  str,
int  size 
) [static]

Definition at line 1090 of file mov.c.

Referenced by mov_read_udta().

static int mov_probe ( AVProbeData p  )  [static]

Definition at line 1313 of file mov.c.

static int mov_read_close ( AVFormatContext s  )  [static]

Definition at line 1670 of file mov.c.

static int mov_read_cmov ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 1199 of file mov.c.

static int mov_read_ctts ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 1034 of file mov.c.

static int mov_read_default ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

static int mov_read_elst ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 1251 of file mov.c.

static int mov_read_enda ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 447 of file mov.c.

static int mov_read_esds ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 275 of file mov.c.

static int mov_read_extradata ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 468 of file mov.c.

static int mov_read_ftyp ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 331 of file mov.c.

static int mov_read_glbl ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

This function reads atom content and puts data in extradata without tag nor size unlike mov_read_extradata.

Definition at line 516 of file mov.c.

static int mov_read_hdlr ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 210 of file mov.c.

static int mov_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 1478 of file mov.c.

static int mov_read_mdat ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 316 of file mov.c.

Referenced by mov_read_wide().

static int mov_read_mdhd ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 357 of file mov.c.

static int mov_read_moov ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 344 of file mov.c.

static int mov_read_mvhd ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 388 of file mov.c.

static int mov_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 1541 of file mov.c.

static int mov_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  sample_time,
int  flags 
) [static]

Definition at line 1641 of file mov.c.

static int mov_read_smi ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 424 of file mov.c.

static int mov_read_stco ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 536 of file mov.c.

static int mov_read_stsc ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 870 of file mov.c.

static int mov_read_stsd ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 568 of file mov.c.

static int mov_read_stss ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 898 of file mov.c.

static int mov_read_stsz ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 926 of file mov.c.

static int mov_read_stts ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 989 of file mov.c.

static int mov_read_tkhd ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 1133 of file mov.c.

static int mov_read_trak ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 1070 of file mov.c.

static int mov_read_udta ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 1098 of file mov.c.

static int mov_read_wave ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 487 of file mov.c.

static int mov_read_wide ( MOVContext c,
ByteIOContext pb,
MOV_atom_t  atom 
) [static]

Definition at line 1178 of file mov.c.

static int mov_seek_stream ( AVStream st,
int64_t  timestamp,
int  flags 
) [static]

Definition at line 1613 of file mov.c.

Referenced by mov_read_seek().

static int mp4_read_descr ( MOVContext c,
ByteIOContext pb,
int *  tag 
) [static]

Definition at line 262 of file mov.c.

Referenced by mov_read_esds().

static int mp4_read_descr_len ( ByteIOContext pb  )  [static]

Definition at line 249 of file mov.c.

Referenced by mp4_read_descr().


Variable Documentation

Definition at line 143 of file mov.c.

Initial value:

 {
    "mov,mp4,m4a,3gp,3g2,mj2",
    "QuickTime/MPEG4/Motion JPEG 2000 format",
    sizeof(MOVContext),
    mov_probe,
    mov_read_header,
    mov_read_packet,
    mov_read_close,
    mov_read_seek,
}

Definition at line 1689 of file mov.c.


Generated on Wed Feb 9 19:10:13 2011 for ffmpeg by  doxygen 1.5.6