#include <stdint.h>
#include "avcodec.h"
+#include "g722dsp.h"
#define PREV_SAMPLES_BUF_SIZE 1024
-typedef struct {
+typedef struct G722Context {
const AVClass *class;
- AVFrame frame;
int bits_per_codeword;
int16_t prev_samples[PREV_SAMPLES_BUF_SIZE]; ///< memory of past decoded samples
int prev_samples_pos; ///< the number of values in prev_samples
int value;
int prev;
} *paths[2];
+
+ G722DSPContext dsp;
} G722Context;
extern const int16_t ff_g722_high_inv_quant[4];
void ff_g722_update_high_predictor(struct G722Band *band, const int dhigh,
const int ihigh);
-void ff_g722_apply_qmf(const int16_t *prev_samples, int *xout1, int *xout2);
-
#endif /* AVCODEC_G722_H */