libavformat/mov.c File Reference

#include <limits.h>
#include "avformat.h"
#include "riff.h"
#include "isom.h"
#include "dv.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 271 of file mov.c.

Referenced by mov_read_esds().

#define MP4DecSpecificDescrTag   0x05

Definition at line 272 of file mov.c.

Referenced by mov_read_esds().

#define MP4ESDescrTag   0x03

Definition at line 270 of file mov.c.

Referenced by mov_read_esds().


Function Documentation

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

Definition at line 1319 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 1058 of file mov.c.

Referenced by mov_read_udta().

static int mov_probe ( AVProbeData p  )  [static]

Definition at line 1276 of file mov.c.

static int mov_read_close ( AVFormatContext s  )  [static]

Definition at line 1633 of file mov.c.

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

Definition at line 1167 of file mov.c.

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

Definition at line 1002 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 1219 of file mov.c.

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

Definition at line 446 of file mov.c.

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

Definition at line 274 of file mov.c.

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

Definition at line 467 of file mov.c.

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

Definition at line 330 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 515 of file mov.c.

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

Definition at line 209 of file mov.c.

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

Definition at line 1441 of file mov.c.

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

Definition at line 315 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 356 of file mov.c.

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

Definition at line 343 of file mov.c.

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

Definition at line 387 of file mov.c.

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

Definition at line 1504 of file mov.c.

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

Definition at line 1604 of file mov.c.

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

Definition at line 423 of file mov.c.

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

Definition at line 535 of file mov.c.

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

Definition at line 869 of file mov.c.

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

Definition at line 567 of file mov.c.

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

Definition at line 897 of file mov.c.

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

Definition at line 925 of file mov.c.

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

Definition at line 957 of file mov.c.

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

Definition at line 1101 of file mov.c.

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

Definition at line 1038 of file mov.c.

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

Definition at line 1066 of file mov.c.

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

Definition at line 486 of file mov.c.

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

Definition at line 1146 of file mov.c.

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

Definition at line 1576 of file mov.c.

Referenced by mov_read_seek().

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

Definition at line 261 of file mov.c.

Referenced by mov_read_esds().

static int mp4_read_descr_len ( ByteIOContext pb  )  [static]

Definition at line 248 of file mov.c.

Referenced by mp4_read_descr().


Variable Documentation

Definition at line 142 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 1652 of file mov.c.


Generated on Thu Apr 2 07:15:43 2009 for ffmpeg by  doxygen 1.5.6