libavformat/swf.c File Reference

#include "avformat.h"
#include "bitstream.h"
#include "riff.h"
#include <assert.h>

Go to the source code of this file.

Data Structures

struct  SWFContext

Defines

#define DUMMY_FILE_SIZE   (100 * 1024 * 1024)
#define DUMMY_DURATION   600
#define TAG_END   0
#define TAG_SHOWFRAME   1
#define TAG_DEFINESHAPE   2
#define TAG_FREECHARACTER   3
#define TAG_PLACEOBJECT   4
#define TAG_REMOVEOBJECT   5
#define TAG_STREAMHEAD   18
#define TAG_STREAMBLOCK   19
#define TAG_JPEG2   21
#define TAG_PLACEOBJECT2   26
#define TAG_STREAMHEAD2   45
#define TAG_VIDEOSTREAM   60
#define TAG_VIDEOFRAME   61
#define TAG_FILEATTRIBUTES   69
#define TAG_LONG   0x100
#define FLAG_MOVETO   0x01
#define FLAG_SETFILL0   0x02
#define FLAG_SETFILL1   0x04
#define AUDIO_FIFO_SIZE   65536
#define BITMAP_ID   0
#define VIDEO_ID   0
#define SHAPE_ID   1

Functions

static int get_swf_tag (ByteIOContext *pb, int *len_ptr)
static int swf_probe (AVProbeData *p)
static int swf_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int swf_read_packet (AVFormatContext *s, AVPacket *pkt)
static int swf_read_close (AVFormatContext *s)

Variables

static const AVCodecTag swf_codec_tags []
static const AVCodecTag swf_audio_codec_tags []


Define Documentation

#define AUDIO_FIFO_SIZE   65536

Definition at line 52 of file swf.c.

#define BITMAP_ID   0

Definition at line 55 of file swf.c.

#define DUMMY_DURATION   600

Definition at line 28 of file swf.c.

#define DUMMY_FILE_SIZE   (100 * 1024 * 1024)

Definition at line 27 of file swf.c.

#define FLAG_MOVETO   0x01

Definition at line 48 of file swf.c.

#define FLAG_SETFILL0   0x02

Definition at line 49 of file swf.c.

#define FLAG_SETFILL1   0x04

Definition at line 50 of file swf.c.

#define SHAPE_ID   1

Definition at line 57 of file swf.c.

#define TAG_DEFINESHAPE   2

Definition at line 32 of file swf.c.

#define TAG_END   0

Definition at line 30 of file swf.c.

#define TAG_FILEATTRIBUTES   69

Definition at line 43 of file swf.c.

#define TAG_FREECHARACTER   3

Definition at line 33 of file swf.c.

#define TAG_JPEG2   21

Definition at line 38 of file swf.c.

Referenced by swf_read_packet().

#define TAG_LONG   0x100

Definition at line 45 of file swf.c.

#define TAG_PLACEOBJECT   4

Definition at line 34 of file swf.c.

#define TAG_PLACEOBJECT2   26

Definition at line 39 of file swf.c.

#define TAG_REMOVEOBJECT   5

Definition at line 35 of file swf.c.

#define TAG_SHOWFRAME   1

Definition at line 31 of file swf.c.

#define TAG_STREAMBLOCK   19

Definition at line 37 of file swf.c.

Referenced by swf_read_packet().

#define TAG_STREAMHEAD   18

Definition at line 36 of file swf.c.

Referenced by swf_read_packet().

#define TAG_STREAMHEAD2   45

Definition at line 40 of file swf.c.

Referenced by swf_read_packet().

#define TAG_VIDEOFRAME   61

Definition at line 42 of file swf.c.

Referenced by swf_read_packet().

#define TAG_VIDEOSTREAM   60

Definition at line 41 of file swf.c.

Referenced by swf_read_packet().

#define VIDEO_ID   0

Definition at line 56 of file swf.c.


Function Documentation

static int get_swf_tag ( ByteIOContext pb,
int *  len_ptr 
) [static]

Definition at line 612 of file swf.c.

Referenced by swf_read_packet().

static int swf_probe ( AVProbeData p  )  [static]

Definition at line 631 of file swf.c.

static int swf_read_close ( AVFormatContext s  )  [static]

Definition at line 773 of file swf.c.

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

Definition at line 641 of file swf.c.

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

Definition at line 668 of file swf.c.


Variable Documentation

const AVCodecTag swf_audio_codec_tags[] [static]

Initial value:

 {
    {CODEC_ID_PCM_S16LE,  0x00},
    {CODEC_ID_ADPCM_SWF,  0x01},
    {CODEC_ID_MP3,        0x02},
    {CODEC_ID_PCM_S16LE,  0x03},
  
    {0, 0},
}

Definition at line 87 of file swf.c.

const AVCodecTag swf_codec_tags[] [static]

Initial value:

 {
    {CODEC_ID_FLV1, 0x02},
    {CODEC_ID_VP6F, 0x04},
    {0, 0},
}

Definition at line 81 of file swf.c.


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