summaryrefslogtreecommitdiff
path: root/libavutil/tx.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-11-19 14:20:23 +0100
committerLynne <dev@lynne.ee>2022-11-24 15:58:35 +0100
commit504b7bec1a7a46ffbfd0c605fdd984df36dc9871 (patch)
tree17a7e66a42c17f1504e5beaaf20a02a08b4c754a /libavutil/tx.h
parent93c30bd6f0846898bb3e7172bb5de65f2d0f33ce (diff)
downloadffmpeg-504b7bec1a7a46ffbfd0c605fdd984df36dc9871.tar.gz
lavu/tx: add DCT-II implementation
Diffstat (limited to 'libavutil/tx.h')
-rw-r--r--libavutil/tx.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavutil/tx.h b/libavutil/tx.h
index 758f634b73..064edbc097 100644
--- a/libavutil/tx.h
+++ b/libavutil/tx.h
@@ -91,6 +91,20 @@ enum AVTXType {
AV_TX_DOUBLE_RDFT = 7,
AV_TX_INT32_RDFT = 8,
+ /**
+ * Real to real (DCT) transforms.
+ *
+ * The forward transform is a DCT-II.
+ * The inverse transform is a DCT-III.
+ *
+ * The input array is always overwritten. DCT-III requires that the
+ * input be padded with 2 extra samples. Stride must be set to the
+ * spacing between two samples in bytes.
+ */
+ AV_TX_FLOAT_DCT = 9,
+ AV_TX_DOUBLE_DCT = 10,
+ AV_TX_INT32_DCT = 11,
+
/* Not part of the API, do not use */
AV_TX_NB,
};