[FFmpeg-cvslog] lavu/tx: clarify stride for RDFT transforms

Lynne git at videolan.org
Thu Nov 24 16:59:55 EET 2022


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Thu Nov 24 15:56:01 2022 +0100| [93c30bd6f0846898bb3e7172bb5de65f2d0f33ce] | committer: Lynne

lavu/tx: clarify stride for RDFT transforms

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=93c30bd6f0846898bb3e7172bb5de65f2d0f33ce
---

 libavutil/tx.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavutil/tx.h b/libavutil/tx.h
index cd772ad903..758f634b73 100644
--- a/libavutil/tx.h
+++ b/libavutil/tx.h
@@ -75,7 +75,9 @@ enum AVTXType {
      * the double variant, it's a 'double'. If scale is NULL, 1.0 will be used
      * as a default.
      *
-     * The stride parameter must be set to the size of a single sample in bytes.
+     * For forward transforms (R2C), stride must be the spacing between two
+     * samples in bytes. For inverse transforms, the stride must be set
+     * to the spacing between two complex values in bytes.
      *
      * The forward transform performs a real-to-complex DFT of N samples to
      * N/2+1 complex values.



More information about the ffmpeg-cvslog mailing list