pub enum SourceFrame {
Cpu(Arc<DecodedVideoFrame>),
Surface(SurfaceFrame),
}Expand description
A decoded source frame: planes in memory, or a platform surface the GPU renderer imports.
Variants§
Cpu(Arc<DecodedVideoFrame>)
Planes in memory, for either renderer.
Surface(SurfaceFrame)
A decoder surface, for the GPU renderer only.
Trait Implementations§
Source§impl Clone for SourceFrame
impl Clone for SourceFrame
Auto Trait Implementations§
impl !RefUnwindSafe for SourceFrame
impl !UnwindSafe for SourceFrame
impl Forget for SourceFrame
impl Freeze for SourceFramewhere
*const ArcInner<DecodedVideoFrame> is !null: Freeze,
PhantomData<ArcInner<DecodedVideoFrame>>: Freeze,
*const ArcInner<dyn SurfaceLease> is !null: Freeze,
PhantomData<ArcInner<dyn SurfaceLease>>: Freeze,
*const ArcInner<dyn SurfaceImport> is !null: Freeze,
PhantomData<ArcInner<dyn SurfaceImport>>: Freeze,
impl Move for SourceFrame
impl Send for SourceFrame
impl Sync for SourceFrame
impl Unpin for SourceFrame
impl UnsafeUnpin for SourceFramewhere
*const ArcInner<DecodedVideoFrame> is !null: UnsafeUnpin,
PhantomData<ArcInner<DecodedVideoFrame>>: UnsafeUnpin,
*const ArcInner<dyn SurfaceLease> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SurfaceLease>>: UnsafeUnpin,
*const ArcInner<dyn SurfaceImport> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SurfaceImport>>: 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