X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fg722.h;h=483017018b1bee1b988de4936d92f64eb0eb7d78;hb=89a13998a1b5074411dff5a461dce3837057b0b8;hp=eb3b9b872e35e2819a7d1b72b1be3be2dcc96fa9;hpb=6fcbb0f553b8e45993e2746d3763adc2faec0781;p=ffmpeg diff --git a/libavcodec/g722.h b/libavcodec/g722.h index eb3b9b872e3..483017018b1 100644 --- a/libavcodec/g722.h +++ b/libavcodec/g722.h @@ -27,12 +27,12 @@ #include #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 @@ -62,6 +62,8 @@ typedef struct { int value; int prev; } *paths[2]; + + G722DSPContext dsp; } G722Context; extern const int16_t ff_g722_high_inv_quant[4]; @@ -73,6 +75,4 @@ void ff_g722_update_low_predictor(struct G722Band *band, const int ilow); 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 */