[−][src]Trait av_codec::encoder::Encoder
Used to interact with an encoder.
Required methods
pub fn get_extradata(&self) -> Option<Vec<u8>>[src]
Returns the extra data added by an encoder to a codec.
pub fn send_frame(&mut self, pkt: &ArcFrame) -> Result<()>[src]
Sends to the encoder a frame to be encoded.
pub fn receive_packet(&mut self) -> Result<Packet>[src]
Returns an encoded packet.
pub fn flush(&mut self) -> Result<()>[src]
Tells encoder to clear its internal state.
pub fn configure(&mut self) -> Result<()>[src]
Configures the encoder.
pub fn set_option<'a>(&mut self, key: &str, val: Value<'a>) -> Result<()>[src]
Sets an encoder option.
pub fn set_params(&mut self, params: &CodecParams) -> Result<()>[src]
Sets the parameters associated to a determined codec.
pub fn get_params(&self) -> Result<CodecParams>[src]
Gets the parameters associated to a determined codec.