summaryrefslogtreecommitdiff
path: root/libavcodec/fft.h
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2010-03-23 19:48:16 +0000
committerVitor Sessak <vitor1001@gmail.com>2010-03-23 19:48:16 +0000
commite1484ebed6d7a7e193d27e5d5fdf1ee585127081 (patch)
tree0f169f26370c6f76d65da974d42d0e11035cd82b /libavcodec/fft.h
parentbe548816dc05c7e7a07659d499f1005fc0bc1d55 (diff)
Implement the discrete sine/cosine transforms DCT-I and DST-I
Originally committed as revision 22649 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/fft.h')
-rw-r--r--libavcodec/fft.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/libavcodec/fft.h b/libavcodec/fft.h
index 6a8f41e79e..1f5b2e86da 100644
--- a/libavcodec/fft.h
+++ b/libavcodec/fft.h
@@ -226,11 +226,14 @@ struct DCTContext {
};
/**
- * Sets up (Inverse)DCT.
- * @param nbits log2 of the length of the input array
- * @param inverse >0 forward transform, <0 inverse transform
+ * Sets up DCT.
+ * @param nbits size of the input array:
+ * (1 << nbits) for DCT-II, DCT-III and DST-I
+ * (1 << nbits) + 1 for DCT-I
+ *
+ * @note the first element of the input of DST-I is ignored
*/
-int ff_dct_init(DCTContext *s, int nbits, int inverse);
+int ff_dct_init(DCTContext *s, int nbits, enum DCTTransformType type);
void ff_dct_calc(DCTContext *s, FFTSample *data);
void ff_dct_end (DCTContext *s);