[−][src]Struct av_codec::encoder::Context
Auxiliary structure to encapsulate an encoder object and its additional data.
Implementations
impl Context[src]
pub fn by_name(codecs: &Codecs, name: &str) -> Option<Context>[src]
Retrieves a codec descriptor from a codec list through its name,
creates the relative encoder, and encapsulates it into a new Context.
pub fn configure(&mut self) -> Result<()>[src]
Configures the encoder.
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.
pub fn set_option<'a, V>(&mut self, key: &str, val: V) -> Result<()> where
V: Into<Value<'a>>, [src]
V: Into<Value<'a>>,
Sets an encoder option.
pub fn get_extradata(&mut self) -> Option<Vec<u8>>[src]
Returns the extra data added by an encoder to a codec.
pub fn send_frame(&mut self, frame: &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.
Auto Trait Implementations
impl !RefUnwindSafe for Context[src]
impl Send for Context[src]
impl !Sync for Context[src]
impl Unpin for Context[src]
impl !UnwindSafe for Context[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,