]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpc.h
assdec: check the right variable
[ffmpeg] / libavcodec / mpc.h
index 67fc7feed0412533a6e903adce033d54cc352a19..cdf49c1a4e373710339beacc9644e81d1ac4a42e 100644 (file)
 
 #include "libavutil/lfg.h"
 #include "avcodec.h"
+#include "bswapdsp.h"
 #include "get_bits.h"
-#include "dsputil.h"
 #include "mpegaudio.h"
-
-#include "mpcdata.h"
+#include "mpegaudiodsp.h"
 
 #define BANDS            32
 #define SAMPLES_PER_BAND 36
 #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];
@@ -50,8 +49,9 @@ typedef struct {
     int Q[2];
 }Band;
 
-typedef struct {
-    DSPContext dsp;
+typedef struct MPCContext {
+    BswapDSPContext bdsp;
+    MPADSPContext mpadsp;
     GetBitContext gb;
     int IS, MSS, gapless;
     int lastframelen;
@@ -72,6 +72,6 @@ typedef struct {
 } MPCContext;
 
 void ff_mpc_init(void);
-void ff_mpc_dequantize_and_synth(MPCContext *c, int maxband, void *dst, int channels);
+void ff_mpc_dequantize_and_synth(MPCContext *c, int maxband, int16_t **out, int channels);
 
 #endif /* AVCODEC_MPC_H */