mmf.c File Reference

Go to the source code of this file.

Classes

struct  MMFContext

Functions

static int mmf_rate_code (int rate)
static int mmf_rate (int code)
static void end_tag_be (ByteIOContext *pb, offset_t start)
static int mmf_write_header (AVFormatContext *s)
static int mmf_write_packet (AVFormatContext *s, AVPacket *pkt)
static void put_varlength (ByteIOContext *pb, int val)
static int mmf_write_trailer (AVFormatContext *s)
static int mmf_probe (AVProbeData *p)
static int mmf_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int mmf_read_packet (AVFormatContext *s, AVPacket *pkt)
static int mmf_read_close (AVFormatContext *s)
static int mmf_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)

Variables

static int mmf_rates [] = { 4000, 8000, 11025, 22050, 44100 }
AVInputFormat mmf_demuxer
AVOutputFormat mmf_muxer


Function Documentation

static int mmf_rate_code ( int  rate  )  [static]

Definition at line 32 of file mmf.c.

Referenced by mmf_write_header().

static int mmf_rate ( int  code  )  [static]

Definition at line 41 of file mmf.c.

Referenced by mmf_read_header().

static void end_tag_be ( ByteIOContext pb,
offset_t  start 
) [static]

Definition at line 50 of file mmf.c.

Referenced by mmf_write_header(), and mmf_write_trailer().

static int mmf_write_header ( AVFormatContext s  )  [static]

Definition at line 60 of file mmf.c.

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

Definition at line 109 of file mmf.c.

static void put_varlength ( ByteIOContext pb,
int  val 
) [static]

Definition at line 117 of file mmf.c.

Referenced by mmf_write_trailer().

static int mmf_write_trailer ( AVFormatContext s  )  [static]

Definition at line 128 of file mmf.c.

static int mmf_probe ( AVProbeData p  )  [static]

Definition at line 168 of file mmf.c.

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

Definition at line 181 of file mmf.c.

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

Definition at line 261 of file mmf.c.

static int mmf_read_close ( AVFormatContext s  )  [static]

Definition at line 293 of file mmf.c.

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

Definition at line 298 of file mmf.c.


Variable Documentation

int mmf_rates[] = { 4000, 8000, 11025, 22050, 44100 } [static]

Definition at line 30 of file mmf.c.

Referenced by mmf_rate(), and mmf_rate_code().

Initial value:

Definition at line 305 of file mmf.c.

Initial value:

 {
    "mmf",
    "mmf format",
    "application/vnd.smaf",
    "mmf",
    sizeof(MMFContext),
    CODEC_ID_ADPCM_YAMAHA,
    CODEC_ID_NONE,
    mmf_write_header,
    mmf_write_packet,
    mmf_write_trailer,
}

Definition at line 317 of file mmf.c.


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