Revision 68602540 libavcodec/dsputil.h

View differences:

libavcodec/dsputil.h
674 674
    void (*imdct_half)(struct MDCTContext *s, FFTSample *output, const FFTSample *input);
675 675
} FFTContext;
676 676

  
677
extern FFTSample* ff_cos_tabs[13];
678

  
677 679
/**
678 680
 * Sets up a complex FFT.
679 681
 * @param nbits           log2 of the length of the input array
......
759 761
void ff_mdct_calc(MDCTContext *s, FFTSample *out, const FFTSample *input);
760 762
void ff_mdct_end(MDCTContext *s);
761 763

  
764
/* Real Discrete Fourier Transform */
765

  
766
enum RDFTransformType {
767
    RDFT,
768
    IRDFT,
769
    RIDFT,
770
    IRIDFT,
771
};
772

  
773
typedef struct {
774
    int nbits;
775
    int inverse;
776
    int sign_convention;
777

  
778
    /* pre/post rotation tables */
779
    FFTSample *tcos;
780
    FFTSample *tsin;
781
    FFTContext fft;
782
} RDFTContext;
783

  
784
/**
785
 * Sets up a real FFT.
786
 * @param nbits           log2 of the length of the input array
787
 * @param trans           the type of transform
788
 */
789
int ff_rdft_init(RDFTContext *s, int nbits, enum RDFTransformType trans);
790
void ff_rdft_calc(RDFTContext *s, FFTSample *data);
791
void ff_rdft_end(RDFTContext *s);
792

  
762 793
#define WRAPPER8_16(name8, name16)\
763 794
static int name16(void /*MpegEncContext*/ *s, uint8_t *dst, uint8_t *src, int stride, int h){\
764 795
    return name8(s, dst           , src           , stride, h)\

Also available in: Unified diff