mpc.c File Reference

Go to the source code of this file.

Classes

struct  MPCFrame
struct  MPCContext

Functions

static int mpc_probe (AVProbeData *p)
static int mpc_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int mpc_read_packet (AVFormatContext *s, AVPacket *pkt)
static int mpc_read_close (AVFormatContext *s)
static int mpc_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 Seek to the given position If position is unknown but is within the limits of file then packets are skipped unless desired position is reached.

Variables

static const int mpc_rate [4] = { 44100, 48000, 37800, 32000 }
AVInputFormat mpc_demuxer


Function Documentation

static int mpc_probe ( AVProbeData p  )  [static]

Definition at line 42 of file libavformat/mpc.c.

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

Definition at line 52 of file libavformat/mpc.c.

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

Definition at line 113 of file libavformat/mpc.c.

static int mpc_read_close ( AVFormatContext s  )  [static]

Definition at line 170 of file libavformat/mpc.c.

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

Seek to the given position If position is unknown but is within the limits of file then packets are skipped unless desired position is reached.

Also this function makes use of the fact that timestamp == frameno

Definition at line 185 of file libavformat/mpc.c.


Variable Documentation

const int mpc_rate[4] = { 44100, 48000, 37800, 32000 } [static]

Definition at line 27 of file libavformat/mpc.c.

Referenced by mpc_read_header().

Initial value:

 {
    "mpc",
    "musepack",
    sizeof(MPCContext),
    mpc_probe,
    mpc_read_header,
    mpc_read_packet,
    mpc_read_close,
    mpc_read_seek,
    .extensions = "mpc",
}

Definition at line 219 of file libavformat/mpc.c.


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