pub struct CarrierImageDecoder<C: FfmpegCarrier> { /* private fields */ }Expand description
mediadecode::ImageDecoder impl wrapping ffmpeg::decoder::Video.
Opened from the codec parameters of an
Attachment track —
see the module docs for the whole road.
Implementations§
Source§impl CarrierImageDecoder<View>
impl CarrierImageDecoder<View>
Sourcepub fn open(
parameters: Parameters,
limits: DecoderLimits,
) -> Result<Self, ImageDecodeError>
pub fn open( parameters: Parameters, limits: DecoderLimits, ) -> Result<Self, ImageDecodeError>
Opens a still-image decoder for parameters.
Sourcepub const fn limits(&self) -> DecoderLimits
pub const fn limits(&self) -> DecoderLimits
The budgets this decoder was opened with.
Source§impl CarrierImageDecoder<Owned>
impl CarrierImageDecoder<Owned>
Sourcepub fn open(
parameters: Parameters,
limits: DecoderLimits,
) -> Result<Self, ImageDecodeError>
pub fn open( parameters: Parameters, limits: DecoderLimits, ) -> Result<Self, ImageDecodeError>
Opens a still-image decoder for parameters.
Sourcepub const fn limits(&self) -> DecoderLimits
pub const fn limits(&self) -> DecoderLimits
The budgets this decoder was opened with.
Trait Implementations§
Source§impl ImageDecoder for CarrierImageDecoder<View>
impl ImageDecoder for CarrierImageDecoder<View>
Source§type Buffer = <View as FfmpegCarrier>::Buffer
type Buffer = <View as FfmpegCarrier>::Buffer
Buffer type held by the packet this decoder accepts and the frame
it produces. See the module docs for what may be bound here.
Source§type Error = ImageDecodeError
type Error = ImageDecodeError
Decoder-specific error type.
Source§fn decode(
&mut self,
packet: &AttachmentPacket<AttachmentPacketExtra, Self::Buffer>,
) -> Result<ImageFrame<PixelFormat, ImageFrameExtra, Self::Buffer>, Self::Error>
fn decode( &mut self, packet: &AttachmentPacket<AttachmentPacketExtra, Self::Buffer>, ) -> Result<ImageFrame<PixelFormat, ImageFrameExtra, Self::Buffer>, Self::Error>
Decodes one attachment payload — a whole image file — into a
still. Read more
Source§impl ImageDecoder for CarrierImageDecoder<Owned>
impl ImageDecoder for CarrierImageDecoder<Owned>
Source§type Buffer = <Owned as FfmpegCarrier>::Buffer
type Buffer = <Owned as FfmpegCarrier>::Buffer
Buffer type held by the packet this decoder accepts and the frame
it produces. See the module docs for what may be bound here.
Source§type Error = ImageDecodeError
type Error = ImageDecodeError
Decoder-specific error type.
Source§fn decode(
&mut self,
packet: &AttachmentPacket<AttachmentPacketExtra, Self::Buffer>,
) -> Result<ImageFrame<PixelFormat, ImageFrameExtra, Self::Buffer>, Self::Error>
fn decode( &mut self, packet: &AttachmentPacket<AttachmentPacketExtra, Self::Buffer>, ) -> Result<ImageFrame<PixelFormat, ImageFrameExtra, Self::Buffer>, Self::Error>
Decodes one attachment payload — a whole image file — into a
still. Read more
Auto Trait Implementations§
impl<C> !RefUnwindSafe for CarrierImageDecoder<C>
impl<C> !Sync for CarrierImageDecoder<C>
impl<C> !UnwindSafe for CarrierImageDecoder<C>
impl<C> Freeze for CarrierImageDecoder<C>where
PhantomData<C>: Freeze,
impl<C> Send for CarrierImageDecoder<C>where
PhantomData<C>: Send,
impl<C> Unpin for CarrierImageDecoder<C>where
PhantomData<C>: Unpin,
impl<C> UnsafeUnpin for CarrierImageDecoder<C>where
PhantomData<C>: UnsafeUnpin,
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