pub struct Decoder {
pub internal: *mut storage_t,
pub current_image: Option<Image>,
pub size: (u32, u32),
/* private fields */
}
Fields§
§internal: *mut storage_t
§current_image: Option<Image>
§size: (u32, u32)
Implementations§
Trait Implementations§
source§impl Decoder for Decoder
impl Decoder for Decoder
source§fn set_extradata(&mut self, _: &[u8])
fn set_extradata(&mut self, _: &[u8])
Saves the extra data contained in a codec.
source§fn send_packet(&mut self, pkt: &Packet) -> Result<()>
fn send_packet(&mut self, pkt: &Packet) -> Result<()>
Sends to the decoder a packet to be decoded.
source§fn receive_frame(&mut self) -> Result<ArcFrame>
fn receive_frame(&mut self) -> Result<ArcFrame>
Returns a decoded frame.
impl Send for Decoder
impl Sync for Decoder
Auto Trait Implementations§
impl Freeze for Decoder
impl RefUnwindSafe 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