[][src]Enum flac_bound::FlacEncoderInitError

#[repr(u32)]
pub enum FlacEncoderInitError {
    EncoderError,
    UnsupportedContainer,
    InvalidCallbacks,
    InvalidNumberOfChannels,
    InvalidBitsPerSample,
    InvalidSampleRate,
    InvalidBlockSize,
    InvalidMaxLpcOrder,
    InvalidQlpCoeffPrecision,
    BlockSizeTooSmallForLpcOrder,
    NotStreamable,
    InvalidMetadata,
    AlreadyInitialized,
}

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

impl Into<u32> for FlacEncoderInitError[src]

impl Clone for FlacEncoderInitError[src]

impl Copy for FlacEncoderInitError[src]

impl Eq for FlacEncoderInitError[src]

impl Ord for FlacEncoderInitError[src]

impl PartialEq<FlacEncoderInitError> for FlacEncoderInitError[src]

impl PartialOrd<FlacEncoderInitError> for FlacEncoderInitError[src]

impl Debug for FlacEncoderInitError[src]

impl TryFrom<u32> for FlacEncoderInitError[src]

type Error = ()

The type returned in the event of a conversion error.

impl Hash for FlacEncoderInitError[src]

impl StructuralPartialEq for FlacEncoderInitError[src]

impl StructuralEq for FlacEncoderInitError[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]