pub trait Encoder: Send {
    fn get_extradata(&self) -> Option<Vec<u8>>;
    fn send_frame(&mut self, pkt: &ArcFrame) -> Result<()>;
    fn receive_packet(&mut self) -> Result<Packet>;
    fn flush(&mut self) -> Result<()>;
    fn configure(&mut self) -> Result<()>;
    fn set_option<'a>(&mut self, key: &str, val: Value<'a>) -> Result<()>;
    fn set_params(&mut self, params: &CodecParams) -> Result<()>;
    fn get_params(&self) -> Result<CodecParams>;
}
Expand description

Used to interact with an encoder.

Required Methods

Returns the extra data added by an encoder to a codec.

Sends to the encoder a frame to be encoded.

Returns an encoded packet.

Tells encoder to clear its internal state.

Configures the encoder.

Sets an encoder option.

Sets the parameters associated to a determined codec.

Gets the parameters associated to a determined codec.

Implementors