X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fg722.h;h=483017018b1bee1b988de4936d92f64eb0eb7d78;hb=89a13998a1b5074411dff5a461dce3837057b0b8;hp=5edb6c811901aa59bc1277a7a820b9606c49c7c2;hpb=704721bc9cb47c58ce3dff8ef64ce3fb85283069;p=ffmpeg diff --git a/libavcodec/g722.h b/libavcodec/g722.h index 5edb6c81190..483017018b1 100644 --- a/libavcodec/g722.h +++ b/libavcodec/g722.h @@ -26,10 +26,14 @@ #define AVCODEC_G722_H #include +#include "avcodec.h" +#include "g722dsp.h" #define PREV_SAMPLES_BUF_SIZE 1024 -typedef struct { +typedef struct G722Context { + const AVClass *class; + 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 @@ -58,6 +62,8 @@ typedef struct { int value; int prev; } *paths[2]; + + G722DSPContext dsp; } G722Context; extern const int16_t ff_g722_high_inv_quant[4]; @@ -69,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 */