libavformat/avidec.c File Reference

#include <strings.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/bswap.h"
#include "libavcodec/bytestream.h"
#include "avformat.h"
#include "avi.h"
#include "dv.h"
#include "riff.h"
#include <assert.h>

Go to the source code of this file.

Data Structures

struct  AVIStream
struct  AVIContext

Defines

#define MAX_ODML_DEPTH   1000

Functions

static int avi_load_index (AVFormatContext *s)
static int guess_ni_flag (AVFormatContext *s)
static int get_duration (AVIStream *ast, int len)
static int get_riff (AVFormatContext *s, ByteIOContext *pb)
static int read_braindead_odml_indx (AVFormatContext *s, int frame_num)
static void clean_index (AVFormatContext *s)
static int avi_read_tag (AVFormatContext *s, AVStream *st, uint32_t tag, uint32_t size)
static void avi_read_info (AVFormatContext *s, uint64_t end)
static void avi_metadata_creation_time (AVMetadata **metadata, char *date)
static void avi_read_nikon (AVFormatContext *s, uint64_t end)
static int avi_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int read_gab2_sub (AVStream *st, AVPacket *pkt)
static AVStreamget_subtitle_pkt (AVFormatContext *s, AVStream *next_st, AVPacket *pkt)
static int get_stream_idx (int *d)
static int avi_read_packet (AVFormatContext *s, AVPacket *pkt)
static int avi_read_idx1 (AVFormatContext *s, int size)
static void seek_subtitle (AVStream *st, AVStream *st2, int64_t timestamp)
static int avi_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
static int avi_read_close (AVFormatContext *s)
static int avi_probe (AVProbeData *p)

Variables

static const char avi_headers [][8]
static const char months [12][4]
AVInputFormat avi_demuxer


Define Documentation

#define MAX_ODML_DEPTH   1000

Definition at line 72 of file avidec.c.

Referenced by read_braindead_odml_indx().


Function Documentation

static int avi_load_index ( AVFormatContext s  )  [static]

Definition at line 1205 of file avidec.c.

Referenced by avi_read_header(), and avi_read_seek().

static void avi_metadata_creation_time ( AVMetadata **  metadata,
char *  date 
) [static]

Definition at line 285 of file avidec.c.

Referenced by avi_read_header().

static int avi_probe ( AVProbeData p  )  [static]

Definition at line 1370 of file avidec.c.

static int avi_read_close ( AVFormatContext s  )  [static]

Definition at line 1345 of file avidec.c.

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

Definition at line 340 of file avidec.c.

static int avi_read_idx1 ( AVFormatContext s,
int  size 
) [static]

Definition at line 1123 of file avidec.c.

Referenced by avi_load_index().

static void avi_read_info ( AVFormatContext s,
uint64_t  end 
) [static]

Definition at line 273 of file avidec.c.

Referenced by avi_read_header().

static void avi_read_nikon ( AVFormatContext s,
uint64_t  end 
) [static]

Definition at line 304 of file avidec.c.

Referenced by avi_read_header().

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

Definition at line 847 of file avidec.c.

static int avi_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
) [static]

Definition at line 1261 of file avidec.c.

static int avi_read_tag ( AVFormatContext s,
AVStream st,
uint32_t  tag,
uint32_t  size 
) [static]

Definition at line 252 of file avidec.c.

Referenced by avi_read_header(), and avi_read_info().

static void clean_index ( AVFormatContext s  )  [static]

Definition at line 226 of file avidec.c.

Referenced by avi_read_header().

static int get_duration ( AVIStream ast,
int  len 
) [inline, static]

Definition at line 99 of file avidec.c.

Referenced by avi_read_idx1(), and read_braindead_odml_indx().

static int get_riff ( AVFormatContext s,
ByteIOContext pb 
) [static]

Definition at line 108 of file avidec.c.

Referenced by avi_read_header().

static int get_stream_idx ( int *  d  )  [static]

Definition at line 838 of file avidec.c.

static AVStream* get_subtitle_pkt ( AVFormatContext s,
AVStream next_st,
AVPacket pkt 
) [static]

Definition at line 805 of file avidec.c.

static int guess_ni_flag ( AVFormatContext s  )  [static]

Definition at line 1174 of file avidec.c.

Referenced by avi_read_header().

static int read_braindead_odml_indx ( AVFormatContext s,
int  frame_num 
) [static]

Definition at line 132 of file avidec.c.

Referenced by avi_read_header().

static int read_gab2_sub ( AVStream st,
AVPacket pkt 
) [static]

Definition at line 756 of file avidec.c.

static void seek_subtitle ( AVStream st,
AVStream st2,
int64_t  timestamp 
) [static]

Definition at line 1251 of file avidec.c.

Referenced by avi_read_seek().


Variable Documentation

Initial value:

Definition at line 1383 of file avidec.c.

const char avi_headers[][8] [static]

Initial value:

 {
    { 'R', 'I', 'F', 'F',    'A', 'V', 'I', ' ' },
    { 'R', 'I', 'F', 'F',    'A', 'V', 'I', 'X' },
    { 'R', 'I', 'F', 'F',    'A', 'V', 'I', 0x19},
    { 'O', 'N', '2', ' ',    'O', 'N', '2', 'f' },
    { 'R', 'I', 'F', 'F',    'A', 'M', 'V', ' ' },
    { 0 }
}

Definition at line 75 of file avidec.c.

Referenced by avi_probe(), and get_riff().

const char months[12][4] [static]

Initial value:

 { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
                                    "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }

Definition at line 282 of file avidec.c.


Generated on Wed Jan 19 23:49:49 2011 for FFmpeg by  doxygen 1.5.6