libavformat/mpc8.c File Reference

#include "libavcodec/bitstream.h"
#include "libavcodec/unary.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  MPCContext

Defines

#define MKMPCTAG(a, b)   (a | (b << 8))
 Two-byte MPC tag.
#define TAG_MPCK   MKTAG('M','P','C','K')

Enumerations

enum  MPCPacketTags {
  TAG_STREAMHDR = MKMPCTAG('S','H'), TAG_STREAMEND = MKMPCTAG('S','E'), TAG_AUDIOPACKET = MKMPCTAG('A','P'), TAG_SEEKTBLOFF = MKMPCTAG('S','O'),
  TAG_SEEKTABLE = MKMPCTAG('S','T'), TAG_REPLAYGAIN = MKMPCTAG('R','G'), TAG_ENCINFO = MKMPCTAG('E','I')
}
 Reserved MPC tags. More...

Functions

static int mpc8_probe (AVProbeData *p)
static int64_t gb_get_v (GetBitContext *gb)
static void mpc8_get_chunk_header (ByteIOContext *pb, int *tag, int64_t *size)
static void mpc8_parse_seektable (AVFormatContext *s, int64_t off)
static void mpc8_handle_chunk (AVFormatContext *s, int tag, int64_t chunk_pos, int64_t size)
static int mpc8_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int mpc8_read_packet (AVFormatContext *s, AVPacket *pkt)
static int mpc8_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)

Variables

static const int mpc8_rate [8] = { 44100, 48000, 37800, 32000, -1, -1, -1, -1 }
AVInputFormat mpc8_demuxer


Define Documentation

#define MKMPCTAG ( a,
 )     (a | (b << 8))

Two-byte MPC tag.

Definition at line 27 of file mpc8.c.

#define TAG_MPCK   MKTAG('M','P','C','K')

Definition at line 29 of file mpc8.c.

Referenced by mpc8_probe(), and mpc8_read_header().


Enumeration Type Documentation

Reserved MPC tags.

Enumerator:
TAG_STREAMHDR 
TAG_STREAMEND 
TAG_AUDIOPACKET 
TAG_SEEKTBLOFF 
TAG_SEEKTABLE 
TAG_REPLAYGAIN 
TAG_ENCINFO 

Definition at line 32 of file mpc8.c.


Function Documentation

static int64_t gb_get_v ( GetBitContext gb  )  [inline, static]

Definition at line 61 of file mpc8.c.

Referenced by mpc8_parse_seektable().

static void mpc8_get_chunk_header ( ByteIOContext pb,
int *  tag,
int64_t *  size 
) [static]

Definition at line 76 of file mpc8.c.

Referenced by mpc8_parse_seektable(), mpc8_read_header(), and mpc8_read_packet().

static void mpc8_handle_chunk ( AVFormatContext s,
int  tag,
int64_t  chunk_pos,
int64_t  size 
) [static]

Definition at line 128 of file mpc8.c.

Referenced by mpc8_read_header(), and mpc8_read_packet().

static void mpc8_parse_seektable ( AVFormatContext s,
int64_t  off 
) [static]

Definition at line 85 of file mpc8.c.

Referenced by mpc8_handle_chunk().

static int mpc8_probe ( AVProbeData p  )  [static]

Definition at line 54 of file mpc8.c.

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

Definition at line 145 of file mpc8.c.

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

Definition at line 200 of file mpc8.c.

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

Definition at line 223 of file mpc8.c.


Variable Documentation

Initial value:

Definition at line 236 of file mpc8.c.

const int mpc8_rate[8] = { 44100, 48000, 37800, 32000, -1, -1, -1, -1 } [static]

Definition at line 45 of file mpc8.c.

Referenced by mpc8_read_header().


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