pub struct Decoder { /* private fields */ }Implementations§
Source§impl Decoder
impl Decoder
pub fn create(input_codec: DecoderInputCodec, fps: c_int) -> Result<Self, Error>
pub fn width(&self) -> Result<i32, Error>
pub fn height(&self) -> Result<i32, Error>
pub fn crop(&self) -> Result<VSLRect, Error>
pub fn decode_frame( &self, data: &[u8], ) -> Result<(DecodeReturnCode, usize, Option<Frame>), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decoder
impl RefUnwindSafe for Decoder
impl !Send for Decoder
impl !Sync for Decoder
impl Unpin for Decoder
impl UnwindSafe for Decoder
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