pub enum VideoFrame<'a> {
Hardware,
RawFrame(RawVideoFrame<'a>),
}
Variants§
Hardware
Represens a hardware video frame (stored in a NativeWindow, so it cannot be accessed)
Can’t do much with this, it’s just a marker. The underlying CodecOutputBuffer
will take care of it
RawFrame(RawVideoFrame<'a>)
Represents a raw video frame, with a specific pixel format and a buffer to read the data
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for VideoFrame<'a>
impl<'a> RefUnwindSafe for VideoFrame<'a>
impl<'a> Send for VideoFrame<'a>
impl<'a> Sync for VideoFrame<'a>
impl<'a> Unpin for VideoFrame<'a>
impl<'a> UnwindSafe for VideoFrame<'a>
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