#define AVCODEC_MPC_H
#include "libavutil/lfg.h"
+
#include "avcodec.h"
-#include "get_bits.h"
-#include "dsputil.h"
+#include "bswapdsp.h"
#include "mpegaudio.h"
#include "mpegaudiodsp.h"
#define MPC_FRAME_SIZE (BANDS * SAMPLES_PER_BAND)
/** Subband structure - hold all variables for each subband */
-typedef struct {
+typedef struct Band {
int msf; ///< mid-stereo flag
int res[2];
int scfi[2];
int Q[2];
}Band;
-typedef struct {
- AVFrame frame;
- DSPContext dsp;
+typedef struct MPCContext {
+ BswapDSPContext bdsp;
MPADSPContext mpadsp;
- GetBitContext gb;
int IS, MSS, gapless;
int lastframelen;
int maxbands, last_max_band;