swf.c File Reference

Go to the source code of this file.

Classes

struct  SWFContext

Functions

static void put_swf_tag (AVFormatContext *s, int tag)
static void put_swf_end_tag (AVFormatContext *s)
static void max_nbits (int *nbits_ptr, int val)
static void put_swf_rect (ByteIOContext *pb, int xmin, int xmax, int ymin, int ymax)
static void put_swf_line_edge (PutBitContext *pb, int dx, int dy)
static void put_swf_matrix (ByteIOContext *pb, int a, int b, int c, int d, int tx, int ty)
static int swf_write_header (AVFormatContext *s)
static int swf_write_video (AVFormatContext *s, AVCodecContext *enc, const uint8_t *buf, int size)
static int swf_write_audio (AVFormatContext *s, AVCodecContext *enc, const uint8_t *buf, int size)
static int swf_write_packet (AVFormatContext *s, AVPacket *pkt)
static int swf_write_trailer (AVFormatContext *s)
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 []
AVInputFormat swf_demuxer
AVOutputFormat swf_muxer


Function Documentation

static void put_swf_tag ( AVFormatContext s,
int  tag 
) [static]

Definition at line 96 of file swf.c.

Referenced by swf_write_header(), swf_write_trailer(), and swf_write_video().

static void put_swf_end_tag ( AVFormatContext s  )  [static]

Definition at line 112 of file swf.c.

Referenced by swf_write_header(), swf_write_trailer(), and swf_write_video().

static void max_nbits ( int *  nbits_ptr,
int  val 
) [inline, static]

Definition at line 134 of file swf.c.

Referenced by put_swf_line_edge(), put_swf_matrix(), and put_swf_rect().

static void put_swf_rect ( ByteIOContext pb,
int  xmin,
int  xmax,
int  ymin,
int  ymax 
) [static]

Definition at line 150 of file swf.c.

Referenced by swf_write_header().

static void put_swf_line_edge ( PutBitContext pb,
int  dx,
int  dy 
) [static]

Definition at line 177 of file swf.c.

Referenced by swf_write_header().

static void put_swf_matrix ( ByteIOContext pb,
int  a,
int  b,
int  c,
int  d,
int  tx,
int  ty 
) [static]

Definition at line 207 of file swf.c.

Referenced by swf_write_header(), and swf_write_video().

static int swf_write_header ( AVFormatContext s  )  [static]

Definition at line 244 of file swf.c.

static int swf_write_video ( AVFormatContext s,
AVCodecContext enc,
const uint8_t *  buf,
int  size 
) [static]

Definition at line 408 of file swf.c.

Referenced by swf_write_audio(), and swf_write_packet().

static int swf_write_audio ( AVFormatContext s,
AVCodecContext enc,
const uint8_t *  buf,
int  size 
) [static]

Definition at line 524 of file swf.c.

Referenced by swf_write_packet().

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

Definition at line 551 of file swf.c.

static int swf_write_trailer ( AVFormatContext s  )  [static]

Definition at line 560 of file swf.c.

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

Definition at line 599 of file swf.c.

Referenced by swf_read_packet().

static int swf_probe ( AVProbeData p  )  [static]

Definition at line 618 of file swf.c.

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

Definition at line 628 of file swf.c.

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

Definition at line 655 of file swf.c.

static int swf_read_close ( AVFormatContext s  )  [static]

Definition at line 754 of file swf.c.


Variable Documentation

const AVCodecTag swf_codec_tags[] [static]

Initial value:

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

Definition at line 80 of file swf.c.

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 86 of file swf.c.

Initial value:

 {
    "swf",
    "Flash format",
    sizeof(SWFContext),
    swf_probe,
    swf_read_header,
    swf_read_packet,
    swf_read_close,
}

Definition at line 760 of file swf.c.

Initial value:

 {
    "swf",
    "Flash format",
    "application/x-shockwave-flash",
    "swf",
    sizeof(SWFContext),
    CODEC_ID_MP3,
    CODEC_ID_FLV1,
    swf_write_header,
    swf_write_packet,
    swf_write_trailer,
}

Definition at line 771 of file swf.c.


Generated on Sat Dec 18 05:15:56 2010 for MythTV by  doxygen 1.5.5