pxdct 0.3.4

Discrete cosine transform
Documentation
/*
 * // Copyright (c) Radzivon Bartoshyk 12/2025. All rights reserved.
 * //
 * // Redistribution and use in source and binary forms, with or without modification,
 * // are permitted provided that the following conditions are met:
 * //
 * // 1.  Redistributions of source code must retain the above copyright notice, this
 * // list of conditions and the following disclaimer.
 * //
 * // 2.  Redistributions in binary form must reproduce the above copyright notice,
 * // this list of conditions and the following disclaimer in the documentation
 * // and/or other materials provided with the distribution.
 * //
 * // 3.  Neither the name of the copyright holder nor the names of its
 * // contributors may be used to endorse or promote products derived from
 * // this software without specific prior written permission.
 * //
 * // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 * // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 * // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
mod bf25;
mod bf49;
mod coprime;
mod dct_fft;
mod dst_butterflies;
pub mod dst_fft;
mod dst_radix3;
mod mixed_radix11;
mod mixed_radix13;
mod mixed_radix2;
mod mixed_radix3q;
mod mixed_radix5;
mod mixed_radix6;
mod mixed_radix7;
mod mixed_radix9;
pub mod power2_butterflies;
pub mod prime_butterflies;
mod scaled_butterflies;
mod split_radix;
mod util;

#[allow(unused)]
pub(crate) use bf25::{Dct2Butterfly25, Dct2Butterfly25Twiddles};
pub(crate) use bf49::Dct2Butterfly49;
#[allow(unused)]
pub(crate) use coprime::{Dct2Coprime, Dct2OutputRemapper};
pub(crate) use dct_fft::Dct2Fft;
pub(crate) use dst_butterflies::{
    Dst2Butterfly3, Dst2Butterfly5, Dst2Butterfly6, Dst2Butterfly7, Dst2Butterfly8, Dst2Butterfly9,
    Dst2Butterfly16,
};
pub(crate) use dst_radix3::Dst2Radix3;
#[allow(unused)]
pub(crate) use mixed_radix2::Dct2MixedRadix2;
#[allow(unused)]
pub(crate) use mixed_radix3q::{Dct2MixedRadix3q, MixedRadix3Sample};
#[allow(unused)]
pub(crate) use mixed_radix5::{Dct2MixedRadix5, MixedRadix5Sample};
#[allow(unused)]
pub(crate) use mixed_radix6::Dct2MixedRadix6;
#[allow(unused)]
pub(crate) use mixed_radix7::{Dct2MixedRadix7, MixedRadix7Sample};
#[allow(unused)]
pub(crate) use mixed_radix9::Dct2MixedRadix9;
pub(crate) use mixed_radix11::Dct2MixedRadix11;
pub(crate) use mixed_radix13::Dct2MixedRadix13;
pub(crate) use power2_butterflies::{
    ScaledDct2Butterfly32, ScaledDct2Butterfly64, ScaledDct2Butterfly128, ScaledDct2Butterfly256,
    ScaledDct2Butterfly512,
};
pub(crate) use scaled_butterflies::{
    ScaledDct2Butterfly4, ScaledDct2Butterfly8, ScaledDct2Butterfly16,
};
#[allow(unused)]
pub(crate) use split_radix::{ScaledSplitRadixDct2, SplitRadixDct2, SplitRadixDst2};
#[allow(unused)]
pub(crate) use util::{
    radixq_cos_twiddle, radixq_even_twiddle, radixq_odd_twiddlej, radixq_rotation_twiddle,
};