pub enum MediaFrame {
Video(VideoFrame),
Audio(AudioFrame),
}Expand description
A typed decoded item. MediaDecoder selects exactly one stream kind.
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for MediaFrame
impl Debug for MediaFrame
Source§impl MemoryFootprint for MediaFrame
impl MemoryFootprint for MediaFrame
Source§fn resident_bytes(&self) -> usize
fn resident_bytes(&self) -> usize
Returns the conservative logical payload size in bytes.
Source§impl PinMemory for MediaFrame
impl PinMemory for MediaFrame
Source§fn pin_memory(self, d: Device) -> Result<Self>
fn pin_memory(self, d: Device) -> Result<Self>
Pins this value for the requested accelerator.
Auto Trait Implementations§
impl !Sync for MediaFrame
impl Forget for MediaFrame
impl Freeze for MediaFrame
impl RefUnwindSafe for MediaFrame
impl Send for MediaFrame
impl Unpin for MediaFrame
impl UnsafeUnpin for MediaFrame
impl UnwindSafe for MediaFrame
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