]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpc.h
nvenc: Allow different const qps for I, P and B frames
[ffmpeg] / libavcodec / mpc.h
index 2ee3c6d4160bf51a7b11f2cd6b317d1f40196d34..39b8d6302db3225d5519a6d5883fd3dc51b28eee 100644 (file)
@@ -30,9 +30,9 @@
 #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"
 
@@ -41,7 +41,7 @@
 #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];
@@ -49,11 +49,9 @@ typedef struct {
     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;