pub struct VideoDecoderShim<D>(pub D);Expand description
Erases a decoder’s error type.
Tuple Fields§
§0: DTrait Implementations§
Source§impl<D: VideoDecoder> VideoDecoder for VideoDecoderShim<D>
impl<D: VideoDecoder> VideoDecoder for VideoDecoderShim<D>
Source§type Error = ErasedError
type Error = ErasedError
The implementation’s error.
Source§fn configure(
&mut self,
config: &CodecConfig,
pulse: Option<&dyn Pulse>,
) -> Result<(), SessionError<ErasedError>>
fn configure( &mut self, config: &CodecConfig, pulse: Option<&dyn Pulse>, ) -> Result<(), SessionError<ErasedError>>
Start a configuration epoch. Called before the first
send and on
every epoch change (new sequence header, new stsd entry).Source§fn send(
&mut self,
packet: &mut Packet,
pulse: Option<&dyn Pulse>,
) -> Result<SendStatus, SessionError<ErasedError>>
fn send( &mut self, packet: &mut Packet, pulse: Option<&dyn Pulse>, ) -> Result<SendStatus, SessionError<ErasedError>>
Offer one packet.
Accepted takes its payload; ReceivePending
leaves it intact for retry after receive.Source§fn receive(
&mut self,
pulse: Option<&dyn Pulse>,
) -> Result<Receive<Frame>, SessionError<ErasedError>>
fn receive( &mut self, pulse: Option<&dyn Pulse>, ) -> Result<Receive<Frame>, SessionError<ErasedError>>
One frame at a time, in presentation order.
Source§fn end_input(&mut self) -> Result<(), SessionError<ErasedError>>
fn end_input(&mut self) -> Result<(), SessionError<ErasedError>>
Declare end of input; idempotent. Then
receive until EndOfStream.Source§fn reset(&mut self) -> Result<(), SessionError<ErasedError>>
fn reset(&mut self) -> Result<(), SessionError<ErasedError>>
Discard queued input, output and references; keep configuration.
Frames already returned stay valid.
Source§fn stream_info(&self) -> Option<&VideoStreamInfo>
fn stream_info(&self) -> Option<&VideoStreamInfo>
Facts about the stream seen so far.
Auto Trait Implementations§
impl<D> Freeze for VideoDecoderShim<D>where
D: Freeze,
impl<D> RefUnwindSafe for VideoDecoderShim<D>where
D: RefUnwindSafe,
impl<D> Send for VideoDecoderShim<D>where
D: Send,
impl<D> Sync for VideoDecoderShim<D>where
D: Sync,
impl<D> Unpin for VideoDecoderShim<D>where
D: Unpin,
impl<D> UnsafeUnpin for VideoDecoderShim<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for VideoDecoderShim<D>where
D: UnwindSafe,
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