Enum flac_bound::FlacEncoderInitError
source · [−]#[repr(u32)]
pub enum FlacEncoderInitError {
Show 13 variants
EncoderError,
UnsupportedContainer,
InvalidCallbacks,
InvalidNumberOfChannels,
InvalidBitsPerSample,
InvalidSampleRate,
InvalidBlockSize,
InvalidMaxLpcOrder,
InvalidQlpCoeffPrecision,
BlockSizeTooSmallForLpcOrder,
NotStreamable,
InvalidMetadata,
AlreadyInitialized,
}
Expand description
Possible erroneous return values for the FlacEncoderConfig::init_*()
functions.
Variants
EncoderError
General failure to set up encoder; call FlacEncoder::state()
for cause.
UnsupportedContainer
The library was not compiled with support for the given container format.
InvalidCallbacks
A required callback was not supplied.
InvalidNumberOfChannels
The encoder has an invalid setting for number of channels.
InvalidBitsPerSample
The encoder has an invalid setting for bits-per-sample.
FLAC supports 4-32 bps but the reference encoder currently supports only up to 24 bps.
InvalidSampleRate
The encoder has an invalid setting for the input sample rate.
InvalidBlockSize
The encoder has an invalid setting for the block size.
InvalidMaxLpcOrder
The encoder has an invalid setting for the maximum LPC order.
InvalidQlpCoeffPrecision
The encoder has an invalid setting for the precision of the quantized linear predictor coefficients.
BlockSizeTooSmallForLpcOrder
The specified block size is less than the maximum LPC order.
NotStreamable
The encoder is bound to the Subset but other settings violate it.
InvalidMetadata
The metadata input to the encoder is invalid, in one of the following ways:
- One of the metadata blocks contains an undefined type
- It contains an illegal CUESHEET as checked by
FLAC__format_cuesheet_is_legal()
- It contains an illegal SEEKTABLE as checked by
FLAC__format_seektable_is_legal()
- It contains more than one SEEKTABLE block or more than one VORBIS_COMMENT block
AlreadyInitialized
FlacEncoderConfig::init_*()
was called when the encoder was already initialized, usually because
FLAC__stream_encoder_finish() was not called.
Trait Implementations
sourceimpl Clone for FlacEncoderInitError
impl Clone for FlacEncoderInitError
sourcefn clone(&self) -> FlacEncoderInitError
fn clone(&self) -> FlacEncoderInitError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FlacEncoderInitError
impl Debug for FlacEncoderInitError
sourceimpl Hash for FlacEncoderInitError
impl Hash for FlacEncoderInitError
sourceimpl Into<u32> for FlacEncoderInitError
impl Into<u32> for FlacEncoderInitError
sourcefn into(self) -> FLAC__StreamEncoderInitStatus
fn into(self) -> FLAC__StreamEncoderInitStatus
Converts this type into the (usually inferred) input type.
sourceimpl Ord for FlacEncoderInitError
impl Ord for FlacEncoderInitError
sourceimpl PartialOrd<FlacEncoderInitError> for FlacEncoderInitError
impl PartialOrd<FlacEncoderInitError> for FlacEncoderInitError
sourcefn partial_cmp(&self, other: &FlacEncoderInitError) -> Option<Ordering>
fn partial_cmp(&self, other: &FlacEncoderInitError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl TryFrom<u32> for FlacEncoderInitError
impl TryFrom<u32> for FlacEncoderInitError
sourcefn try_from(
raw: FLAC__StreamEncoderInitStatus
) -> Result<FlacEncoderInitError, ()>
fn try_from(
raw: FLAC__StreamEncoderInitStatus
) -> Result<FlacEncoderInitError, ()>
Performs the conversion.
impl Copy for FlacEncoderInitError
impl Eq for FlacEncoderInitError
impl StructuralEq for FlacEncoderInitError
impl StructuralPartialEq for FlacEncoderInitError
Auto Trait Implementations
impl RefUnwindSafe for FlacEncoderInitError
impl Send for FlacEncoderInitError
impl Sync for FlacEncoderInitError
impl Unpin for FlacEncoderInitError
impl UnwindSafe for FlacEncoderInitError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more