Skip to content

Class dct_plan

class dct_plan<T> dft

template <typename T>
struct dct_plan : dft_plan<T> { … }

Plan for computing the Discrete Cosine Transform (DCT type 2, unscaled).

Note

No scaling is applied in either direction. Apply the conventional \(\frac{2}{N}\) (or orthonormal) factor yourself if a normalized DCT is required.

Template parameters
T Floating-point type ( float or double ).

constructor dct_plan<T>(size_t)

dct_plan(size_t size)

Constructs a DCT plan for the given size.

Parameters
size Number of real samples in the transform.

Fully qualified name: kfr::dct_plan<T>::dct_plan<T>(size_t)

Declared at dft/fft.hpp:1265

function execute(T *, const T *, u8 *, bool)

Executes the DCT.

Parameters
out Output real buffer (size elements).
in Input real buffer (size elements).
temp Scratch buffer of at least temp_size bytes (may be nullptr ).
inverse If true, computes the inverse (DCT-III); otherwise DCT-II.

Fully qualified name: kfr::dct_plan<T>::execute(T *, const T *, u8 *, bool)

Declared at dft/fft.hpp:1274

function execute(univector<T, Tag1> &, const univector<T, Tag2> &, univector<u8, Tag3> &, bool)

template <univector_tag Tag1, univector_tag Tag2, univector_tag Tag3>
KFR_MEM_INTRINSIC void execute(univector<T, Tag1>& out, const univector<T, Tag2>& in,
                               univector<u8, Tag3>& temp, bool inverse = false) const

Executes the DCT using univector buffers.

Parameters
out Output real univector (size elements).
in Input real univector (size elements).
temp Scratch buffer univector of at least temp_size bytes.
inverse If true, computes the inverse (DCT-III); otherwise DCT-II.

Fully qualified name: kfr::dct_plan<T>::execute(univector<T, Tag1> &, const univector<T, Tag2> &, univector<u8, Tag3> &, bool)

Declared at dft/fft.hpp:1322

Fully qualified name: kfr::dct_plan<T>

Declared at dft/fft.hpp:1261

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.