diff mbox series

[FFmpeg-devel,05/11] lavu/tx: add unaligned flag to the API

Message ID MYfnKjG--3-2@lynne.ee
State Accepted
Commit aa6c757d50ca060cab05c3a822a43563934823a1
Headers show
Series lavu/tx: FFT improvements, additions and assembly
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Lynne April 19, 2021, 8:23 p.m. UTC
Patch attached.
Subject: [PATCH 05/11] lavu/tx: add unaligned flag to the API

---
 libavutil/tx.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

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,
 };
 
 /**