pub struct Context(/* private fields */);Trait Implementations§
Source§impl Encoder for Context
impl Encoder for Context
type Cfg = Cfg
fn set_cfg(&mut self, cfg: Self::Cfg) -> Result<(), Error>
Source§fn encode(
&mut self,
image: &Image<'_>,
pts: vpx_codec_pts_t,
duration: u64,
flags: FrameFlags,
deadline: u64,
) -> Result<(), Error>
fn encode( &mut self, image: &Image<'_>, pts: vpx_codec_pts_t, duration: u64, flags: FrameFlags, deadline: u64, ) -> Result<(), Error>
duration must be non-zero.Source§fn flush(
&mut self,
pts: vpx_codec_pts_t,
duration: u64,
flags: vpx_enc_frame_flags_t,
deadline: u64,
) -> Result<(), Error>
fn flush( &mut self, pts: vpx_codec_pts_t, duration: u64, flags: vpx_enc_frame_flags_t, deadline: u64, ) -> Result<(), Error>
Call once there are no more frames to encode.
fn packets<T: PacketWriter>(&mut self, dest: &mut T) -> Result<(), Error>
impl Send for Context
Auto Trait Implementations§
impl !Sync for Context
impl Freeze for Context
impl RefUnwindSafe for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more