Trait divans::interface::DivansCompressorFactory [−][src]
pub trait DivansCompressorFactory<AllocU8: Allocator<u8>, AllocU32: Allocator<u32>, AllocCDF16: Allocator<DefaultCDF16>> { type DefaultEncoder: ArithmeticEncoderOrDecoder + NewWithAllocator<AllocU8>; type ConstructedCompressor: Compressor; type AdditionalArgs; fn new(
m8: AllocU8,
m32: AllocU32,
mcdf16: AllocCDF16,
opts: DivansCompressorOptions,
additional_args: Self::AdditionalArgs
) -> Self::ConstructedCompressor; }
Associated Types
type DefaultEncoder: ArithmeticEncoderOrDecoder + NewWithAllocator<AllocU8>
type ConstructedCompressor: Compressor
type AdditionalArgs
Required Methods
fn new(
m8: AllocU8,
m32: AllocU32,
mcdf16: AllocCDF16,
opts: DivansCompressorOptions,
additional_args: Self::AdditionalArgs
) -> Self::ConstructedCompressor
m8: AllocU8,
m32: AllocU32,
mcdf16: AllocCDF16,
opts: DivansCompressorOptions,
additional_args: Self::AdditionalArgs
) -> Self::ConstructedCompressor
Implementors
impl<AllocU8: Allocator<u8>, AllocU16: Allocator<u16>, AllocI32: Allocator<i32>, AllocCommand: Allocator<Command>, AllocU32: Allocator<u32>, AllocU64: Allocator<u64>, AllocCDF16: Allocator<DefaultCDF16>, AllocF64: Allocator<floatX>, AllocFV: Allocator<Mem256f>, AllocPDF: Allocator<PDF>, AllocStaticCommand: Allocator<StaticCommand>, AllocHL: Allocator<HistogramLiteral>, AllocHC: Allocator<HistogramCommand>, AllocHD: Allocator<HistogramDistance>, AllocHP: Allocator<HistogramPair>, AllocCT: Allocator<ContextType>, AllocHT: Allocator<HuffmanTree>, AllocZN: Allocator<ZopfliNode>> DivansCompressorFactory<AllocU8, AllocU32, AllocCDF16> for BrotliDivansHybridCompressorFactory<AllocU8, AllocU16, AllocU32, AllocI32, AllocU64, AllocCommand, AllocCDF16, AllocF64, AllocFV, AllocPDF, AllocStaticCommand, AllocHL, AllocHC, AllocHD, AllocHP, AllocCT, AllocHT, AllocZN> type DefaultEncoder = ANSEncoder<AllocU8>; type ConstructedCompressor = BrotliDivansHybridCompressor<DefaultCDF16, Self::DefaultEncoder, AllocU8, AllocU16, AllocU32, AllocI32, AllocU64, AllocCommand, AllocCDF16, AllocF64, AllocFV, AllocPDF, AllocStaticCommand, AllocHL, AllocHC, AllocHD, AllocHP, AllocCT, AllocHT, AllocZN>; type AdditionalArgs = (AllocU8, AllocU16, AllocI32, AllocCommand, AllocU64, AllocF64, AllocFV, AllocHL, AllocHC, AllocHD, AllocHP, AllocCT, AllocHT, AllocZN, AllocPDF, AllocStaticCommand);
impl<AllocU8: Allocator<u8>, AllocU32: Allocator<u32>, AllocCDF16: Allocator<DefaultCDF16>> DivansCompressorFactory<AllocU8, AllocU32, AllocCDF16> for DivansCompressorFactoryStruct<AllocU8, AllocCDF16> type DefaultEncoder = ANSEncoder<AllocU8>; type ConstructedCompressor = DivansCompressor<Self::DefaultEncoder, AllocU8, AllocU32, AllocCDF16>; type AdditionalArgs = ();