summaryrefslogtreecommitdiff
path: root/libavutil/tx.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2021-04-10 03:55:14 +0200
committerLynne <dev@lynne.ee>2021-04-24 17:17:26 +0200
commitaa6c757d50ca060cab05c3a822a43563934823a1 (patch)
tree1af12d9e076f12901a085f02c360d0de65325f11 /libavutil/tx.h
parent8c55c8258331377ffcc6fe74e0d80b3ab0966d11 (diff)
lavu/tx: add unaligned flag to the API
Diffstat (limited to 'libavutil/tx.h')
-rw-r--r--libavutil/tx.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavutil/tx.h b/libavutil/tx.h
index fccded8bc3..a3d70644e4 100644
--- a/libavutil/tx.h
+++ b/libavutil/tx.h
@@ -95,7 +95,7 @@ enum AVTXType {
* @param stride the input or output stride in bytes
*
* The out and in arrays must be aligned to the maximum required by the CPU
- * architecture.
+ * architecture unless the AV_TX_UNALIGNED flag was set in av_tx_init().
* The stride must follow the constraints the transform type has specified.
*/
typedef void (*av_tx_fn)(AVTXContext *s, void *out, void *in, ptrdiff_t stride);
@@ -110,6 +110,12 @@ enum AVTXFlags {
* transform types.
*/
AV_TX_INPLACE = 1ULL << 0,
+
+ /**
+ * Relaxes alignment requirement for the in and out arrays of av_tx_fn().
+ * May be slower with certain transform types.
+ */
+ AV_TX_UNALIGNED = 1ULL << 1,
};
/**