Struct chd::codecs::RawFlacCodec
source · pub struct RawFlacCodec { /* private fields */ }
Available on
codec_api
only.Expand description
Raw FLAC (flac) decompression codec.
§Format details
Raw FLAC expects the first byte as either ‘L’ (0x4C) or ‘B’ (0x42) to indicate the endianness of the output data, followed by the compressed FLAC data.
FLAC compressed audio data is assumed to be 2-channel 16-bit signed integer PCM. The audio data is decompressed in interleaved format, with the left channel first, then the right channel for each sample, for 32 bits each sample.
§Buffer Restrictions
Each compressed FLAC hunk decompresses to a hunk-sized chunk. The input buffer must contain enough samples to fill the hunk-sized output buffer.
Trait Implementations§
source§impl CodecImplementation for RawFlacCodec
impl CodecImplementation for RawFlacCodec
source§impl CompressionCodecType for RawFlacCodec
impl CompressionCodecType for RawFlacCodec
impl CompressionCodec for RawFlacCodec
Auto Trait Implementations§
impl RefUnwindSafe for RawFlacCodec
impl Send for RawFlacCodec
impl Sync for RawFlacCodec
impl Unpin for RawFlacCodec
impl UnwindSafe for RawFlacCodec
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more