libavcodec/mpc8.c File Reference

Musepack SV8 decoder MPEG Audio Layer 1/2 -like codec with frames of 1152 samples divided into 32 subbands. More...

#include "libavutil/random.h"
#include "avcodec.h"
#include "bitstream.h"
#include "dsputil.h"
#include "mpegaudio.h"
#include "mpc.h"
#include "mpcdata.h"
#include "mpc8data.h"
#include "mpc8huff.h"

Go to the source code of this file.

Functions

static int mpc8_dec_base (GetBitContext *gb, int k, int n)
static int mpc8_dec_enum (GetBitContext *gb, int k, int n)
static int mpc8_get_mod_golomb (GetBitContext *gb, int m)
static int mpc8_get_mask (GetBitContext *gb, int size, int t)
static av_cold int mpc8_decode_init (AVCodecContext *avctx)
static int mpc8_decode_frame (AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size)

Variables

static VLC band_vlc
static VLC scfi_vlc [2]
static VLC dscf_vlc [2]
static VLC res_vlc [2]
static VLC q1_vlc
static VLC q2_vlc [2]
static VLC q3_vlc [2]
static VLC quant_vlc [4][2]
static VLC q9up_vlc
static const int q3_offsets [2] = { MPC8_Q3_OFFSET, MPC8_Q4_OFFSET }
static const int quant_offsets [6] = { MPC8_Q5_OFFSET, MPC8_Q6_OFFSET, MPC8_Q7_OFFSET, MPC8_Q8_OFFSET }
AVCodec mpc8_decoder


Detailed Description

Musepack SV8 decoder MPEG Audio Layer 1/2 -like codec with frames of 1152 samples divided into 32 subbands.

Definition in file mpc8.c.


Function Documentation

static int mpc8_dec_base ( GetBitContext gb,
int  k,
int  n 
) [inline, static]

Definition at line 45 of file mpc8.c.

Referenced by mpc8_dec_enum(), and mpc8_get_mod_golomb().

static int mpc8_dec_enum ( GetBitContext gb,
int  k,
int  n 
) [inline, static]

Definition at line 55 of file mpc8.c.

Referenced by mpc8_get_mask().

static int mpc8_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
const uint8_t *  buf,
int  buf_size 
) [static]

Definition at line 181 of file mpc8.c.

static av_cold int mpc8_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 91 of file mpc8.c.

static int mpc8_get_mask ( GetBitContext gb,
int  size,
int  t 
) [static]

Definition at line 80 of file mpc8.c.

Referenced by mpc8_decode_frame().

static int mpc8_get_mod_golomb ( GetBitContext gb,
int  m 
) [inline, static]

Definition at line 74 of file mpc8.c.

Referenced by mpc8_decode_frame().


Variable Documentation

VLC band_vlc [static]

Definition at line 39 of file mpc8.c.

VLC dscf_vlc[2] [static]

Definition at line 39 of file mpc8.c.

Initial value:

 {
    "mpc8",
    CODEC_TYPE_AUDIO,
    CODEC_ID_MUSEPACK8,
    sizeof(MPCContext),
    mpc8_decode_init,
    NULL,
    NULL,
    mpc8_decode_frame,
    .long_name = NULL_IF_CONFIG_SMALL("Musepack SV8"),
}

Definition at line 353 of file mpc8.c.

VLC q1_vlc [static]

Definition at line 40 of file mpc8.c.

VLC q2_vlc[2] [static]

Definition at line 40 of file mpc8.c.

const int q3_offsets[2] = { MPC8_Q3_OFFSET, MPC8_Q4_OFFSET } [static]

Definition at line 42 of file mpc8.c.

Referenced by mpc8_decode_frame().

VLC q3_vlc[2] [static]

Definition at line 40 of file mpc8.c.

VLC q9up_vlc [static]

Definition at line 40 of file mpc8.c.

const int quant_offsets[6] = { MPC8_Q5_OFFSET, MPC8_Q6_OFFSET, MPC8_Q7_OFFSET, MPC8_Q8_OFFSET } [static]

Definition at line 43 of file mpc8.c.

Referenced by mpc8_decode_frame().

VLC quant_vlc[4][2] [static]

Definition at line 40 of file mpc8.c.

VLC res_vlc[2] [static]

Definition at line 39 of file mpc8.c.

VLC scfi_vlc[2] [static]

Definition at line 39 of file mpc8.c.


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