#include "libavutil/lfg.h"
#include "avcodec.h"
#include "get_bits.h"
#include "dsputil.h"
#include "mpegaudiodsp.h"
#include "libavutil/audioconvert.h"
#include "mpc.h"
#include "mpc7data.h"
Go to the source code of this file.
Defines | |
#define | BANDS 32 |
#define | SAMPLES_PER_BAND 36 |
#define | MPC_FRAME_SIZE (BANDS * SAMPLES_PER_BAND) |
Functions | |
static av_cold int | mpc7_decode_init (AVCodecContext *avctx) |
static void | idx_to_quant (MPCContext *c, GetBitContext *gb, int idx, int *dst) |
Fill samples for given subband. | |
static int | get_scale_idx (GetBitContext *gb, int ref) |
static int | mpc7_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) |
static void | mpc7_decode_flush (AVCodecContext *avctx) |
static av_cold int | mpc7_decode_close (AVCodecContext *avctx) |
Variables | |
static VLC | scfi_vlc |
static VLC | dscf_vlc |
static VLC | hdr_vlc |
static VLC | quant_vlc [MPC7_QUANT_VLC_TABLES][2] |
static const uint16_t | quant_offsets [MPC7_QUANT_VLC_TABLES *2+1] |
AVCodec | ff_mpc7_decoder |
Definition in file mpc7.c.
static int get_scale_idx | ( | GetBitContext * | gb, | |
int | ref | |||
) | [static] |
static void idx_to_quant | ( | MPCContext * | c, | |
GetBitContext * | gb, | |||
int | idx, | |||
int * | dst | |||
) | [inline, static] |
Fill samples for given subband.
Definition at line 149 of file mpc7.c.
Referenced by mpc7_decode_frame().
static av_cold int mpc7_decode_close | ( | AVCodecContext * | avctx | ) | [static] |
static void mpc7_decode_flush | ( | AVCodecContext * | avctx | ) | [static] |
static int mpc7_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | got_frame_ptr, | |||
AVPacket * | avpkt | |||
) | [static] |
static av_cold int mpc7_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Initial value:
{ .name = "mpc7", .type = AVMEDIA_TYPE_AUDIO, .id = CODEC_ID_MUSEPACK7, .priv_data_size = sizeof(MPCContext), .init = mpc7_decode_init, .close = mpc7_decode_close, .decode = mpc7_decode_frame, .flush = mpc7_decode_flush, .capabilities = CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("Musepack SV7"), }
const uint16_t quant_offsets[MPC7_QUANT_VLC_TABLES *2+1] [static] |
Initial value:
{ 0, 512, 1024, 1536, 2052, 2564, 3076, 3588, 4100, 4612, 5124, 5636, 6164, 6676, 7224 }
Definition at line 44 of file mpc7.c.
Referenced by mpc7_decode_init(), and mpc8_decode_frame().