pub struct StreamFrame {
pub facts: FrameFacts,
pub image: BackendImage,
}Expand description
A decoded frame of a VideoStream.
Fields§
§facts: FrameFactsIts facts.
image: BackendImageIts pixels.
Implementations§
Source§impl StreamFrame
impl StreamFrame
Sourcepub fn retained_bytes(&self) -> u64
pub fn retained_bytes(&self) -> u64
Bytes the frame holds: its planes, or what its surface retains.
Sourcepub fn to_cpu(&self) -> Option<DecodedVideoFrame>
pub fn to_cpu(&self) -> Option<DecodedVideoFrame>
The frame as a CPU frame; None for a surface.
Trait Implementations§
Source§impl Clone for StreamFrame
impl Clone for StreamFrame
Auto Trait Implementations§
impl !RefUnwindSafe for StreamFrame
impl !UnwindSafe for StreamFrame
impl Forget for StreamFrame
impl Freeze for StreamFramewhere
*const u8 is !null: Freeze,
PhantomData<Plane>: Freeze,
*const ArcInner<dyn SurfaceLease> is !null: Freeze,
PhantomData<ArcInner<dyn SurfaceLease>>: Freeze,
impl Move for StreamFrame
impl Send for StreamFrame
impl Sync for StreamFrame
impl Unpin for StreamFrame
impl UnsafeUnpin for StreamFramewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Plane>: UnsafeUnpin,
*const ArcInner<dyn SurfaceLease> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SurfaceLease>>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more