pub struct StatelessDecoderFormatNegotiator<'a, H, FP, D, FH, F>where
H: DecodedHandle,
FP: FramePool<Descriptor = H::Descriptor>,
D: StatelessVideoDecoder<Handle = H, FramePool = FP>,
F: Fn(&mut D, &FH),{ /* private fields */ }
Expand description
Helper to implement DecoderFormatNegotiator
for stateless decoders.
Trait Implementations§
Source§impl<'a, H, FP, D, FH, F> DecoderFormatNegotiator for StatelessDecoderFormatNegotiator<'a, H, FP, D, FH, F>where
H: DecodedHandle,
FP: FramePool<Descriptor = H::Descriptor>,
D: StatelessVideoDecoder<Handle = H, FramePool = FP> + StatelessVideoDecoder,
F: Fn(&mut D, &FH),
impl<'a, H, FP, D, FH, F> DecoderFormatNegotiator for StatelessDecoderFormatNegotiator<'a, H, FP, D, FH, F>where
H: DecodedHandle,
FP: FramePool<Descriptor = H::Descriptor>,
D: StatelessVideoDecoder<Handle = H, FramePool = FP> + StatelessVideoDecoder,
F: Fn(&mut D, &FH),
type Descriptor = <H as DecodedHandle>::Descriptor
Source§fn try_format(&mut self, format: DecodedFormat) -> Result<()>
fn try_format(&mut self, format: DecodedFormat) -> Result<()>
Attempt to change the pixel format of output frames to
format
.Source§fn frame_pool(
&mut self,
layer: PoolLayer,
) -> Vec<&mut dyn FramePool<Descriptor = Self::Descriptor>>
fn frame_pool( &mut self, layer: PoolLayer, ) -> Vec<&mut dyn FramePool<Descriptor = Self::Descriptor>>
Returns the frame pool in use for the decoder for
layer
set up for the
new format.Source§fn stream_info(&self) -> &StreamInfo
fn stream_info(&self) -> &StreamInfo
Returns the current decoding parameters, as extracted from the stream.
Source§impl<'a, H, FP, D, FH, F> Drop for StatelessDecoderFormatNegotiator<'a, H, FP, D, FH, F>where
H: DecodedHandle,
FP: FramePool<Descriptor = H::Descriptor>,
D: StatelessVideoDecoder<Handle = H, FramePool = FP>,
F: Fn(&mut D, &FH),
impl<'a, H, FP, D, FH, F> Drop for StatelessDecoderFormatNegotiator<'a, H, FP, D, FH, F>where
H: DecodedHandle,
FP: FramePool<Descriptor = H::Descriptor>,
D: StatelessVideoDecoder<Handle = H, FramePool = FP>,
F: Fn(&mut D, &FH),
Auto Trait Implementations§
impl<'a, H, FP, D, FH, F> Freeze for StatelessDecoderFormatNegotiator<'a, H, FP, D, FH, F>
impl<'a, H, FP, D, FH, F> RefUnwindSafe for StatelessDecoderFormatNegotiator<'a, H, FP, D, FH, F>
impl<'a, H, FP, D, FH, F> Send for StatelessDecoderFormatNegotiator<'a, H, FP, D, FH, F>
impl<'a, H, FP, D, FH, F> Sync for StatelessDecoderFormatNegotiator<'a, H, FP, D, FH, F>
impl<'a, H, FP, D, FH, F> Unpin for StatelessDecoderFormatNegotiator<'a, H, FP, D, FH, F>
impl<'a, H, FP, D, FH, F> !UnwindSafe for StatelessDecoderFormatNegotiator<'a, H, FP, D, FH, F>
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