#include "libavutil/random.h"
#include "avcodec.h"
#include "bitstream.h"
#include "dsputil.h"
#include "mpegaudio.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 | mpc7_decode_frame (AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) |
static void | mpc7_decode_flush (AVCodecContext *avctx) |
Variables | |
static VLC | scfi_vlc |
static VLC | dscf_vlc |
static VLC | hdr_vlc |
static VLC | quant_vlc [MPC7_QUANT_VLC_TABLES][2] |
AVCodec | mpc7_decoder |
Definition in file mpc7.c.
static void idx_to_quant | ( | MPCContext * | c, | |
GetBitContext * | gb, | |||
int | idx, | |||
int * | dst | |||
) | [inline, static] |
Fill samples for given subband.
Definition at line 115 of file mpc7.c.
Referenced by mpc7_decode_frame().
static void mpc7_decode_flush | ( | AVCodecContext * | avctx | ) | [static] |
static int mpc7_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
static av_cold int mpc7_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Initial value:
{ "mpc7", CODEC_TYPE_AUDIO, CODEC_ID_MUSEPACK7, sizeof(MPCContext), mpc7_decode_init, NULL, NULL, mpc7_decode_frame, .flush = mpc7_decode_flush, .long_name = NULL_IF_CONFIG_SMALL("Musepack SV7"), }