Skip to content

FFTUnswizzle

Chuck Walbourn edited this page Apr 27, 2022 · 6 revisions

Arranges Fast Fourier Transform function output by order of increasing frequency.

void FFTUnswizzle(XMVECTOR* pOutput, const XMVECTOR* pInput,
     const size_t uLog2Length);

Parameters

pOutput

[out] Caller-supplied output buffer. pOutput receives samples in order of increasing frequency. The buffer must have at least 1<<uLog2Length/4 elements.

pInput

[in] Input buffer containing samples in bit-reversed order as generated by FFT functions. The buffer must have at least 1<<uLog2Length/4 elements.

uLog2Length

[in] The log base 2 of the FFT length in samples. uLog2Length must be greater than or equal to 2.

Remarks

The FFT functions generate output in bit-reversed order (the FFT uses a split-radix FFT, radix 4 and 2, which impacts the bit-reversal pattern). Use FFTUnswizzle to rearrange FFT function output into order of increasing frequency.

All buffer parameters must be 16-byte aligned. Audio data must be 32-bit float mono.

For Use

  • Universal Windows Platform apps
  • Windows desktop apps
  • Windows 11
  • Windows 10
  • Windows 8.1
  • Xbox One
  • Xbox Series X|S
  • Windows Subsystem for Linux

Architecture

  • x86
  • x64
  • ARM64

For Development

  • Visual Studio 2022
  • Visual Studio 2019 (16.11)
  • clang/LLVM v12 - v18
  • GCC 10.5, 11.4, 12.3
  • MinGW 12.2, 13.2
  • Intel Classic Compiler
  • Intel oneAPI Compiler

Related Projects

DirectX Tool Kit for DirectX 11

DirectX Tool Kit for DirectX 12

DirectXMesh

DirectXTex

Tools

Test Suite

See also

DirectX Landing Page

Clone this wiki locally