libavformat/mpc.c File Reference

#include "libavcodec/get_bits.h"
#include "avformat.h"
#include "internal.h"
#include "apetag.h"
#include "id3v1.h"
#include "libavutil/dict.h"

Go to the source code of this file.

Data Structures

struct  MPCFrame
struct  MPCContext

Defines

#define MPC_FRAMESIZE   1152
#define DELAY_FRAMES   32

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 ff_mpc_demuxer


Define Documentation

#define DELAY_FRAMES   32

Definition at line 30 of file mpc.c.

Referenced by mpc_read_seek().

#define MPC_FRAMESIZE   1152

Definition at line 29 of file mpc.c.

Referenced by mpc_read_header().


Function Documentation

static int mpc_probe ( AVProbeData p  )  [static]

Definition at line 47 of file mpc.c.

static int mpc_read_close ( AVFormatContext s  )  [static]

Definition at line 176 of file mpc.c.

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

Definition at line 55 of file mpc.c.

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

Definition at line 117 of file 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 191 of file mpc.c.


Variable Documentation

Initial value:

 {
    .name           = "mpc",
    .long_name      = NULL_IF_CONFIG_SMALL("Musepack"),
    .priv_data_size = sizeof(MPCContext),
    .read_probe     = mpc_probe,
    .read_header    = mpc_read_header,
    .read_packet    = mpc_read_packet,
    .read_close     = mpc_read_close,
    .read_seek      = mpc_read_seek,
    .extensions = "mpc",
}

Definition at line 225 of file mpc.c.

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

Definition at line 32 of file mpc.c.

Referenced by mpc_read_header().


Generated on Fri Oct 26 02:43:48 2012 for FFmpeg by  doxygen 1.5.8