pub struct Encoder { /* private fields */ }
Expand description

An Opus encoder with associated state.

Implementations

Create and initialize an encoder.

Encode an Opus frame.

Encode an Opus frame from floating point input.

Encode an Opus frame to a new buffer.

Encode an Opus frame from floating point input to a new buffer.

Reset the codec state to be equivalent to a freshly initialized state.

Get the final range of the codec’s entropy coder.

Get the encoder’s configured bandpass.

Get the samping rate the encoder was intialized with.

Set the encoder’s bitrate.

Get the encoder’s bitrate.

Enable or disable variable bitrate.

Determine if variable bitrate is enabled.

Enable or disable constrained VBR.

Determine if constrained VBR is enabled.

Configures the encoder’s use of inband forward error correction (FEC).

Gets encoder’s configured use of inband forward error correction.

Sets the encoder’s expected packet loss percentage.

Gets the encoder’s expected packet loss percentage.

Gets the total samples of delay added by the entire codec.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.