pub struct BackendFrame {
pub pts: i64,
pub image: BackendImage,
pub coded: (u32, u32),
pub visible: Option<Rect>,
pub sample_aspect_ratio: Option<SampleAspectRatio>,
pub color: Option<ColorMetadata>,
pub chroma_location: Option<ChromaLocation>,
}Expand description
One picture a session produced, with what the session knows about it.
Fields§
§pts: i64The presentation time of the packet it came from, in the track’s timescale.
image: BackendImageIts pixels.
coded: (u32, u32)The width and height of the image’s buffer.
visible: Option<Rect>The visible area, when the session applied or reported the crop.
sample_aspect_ratio: Option<SampleAspectRatio>The pixel aspect ratio the bitstream signals, when the session reports it.
color: Option<ColorMetadata>The color the bitstream signals, when the session reports it.
chroma_location: Option<ChromaLocation>The chroma siting the bitstream signals; None when it signals none.
Trait Implementations§
Source§impl Clone for BackendFrame
impl Clone for BackendFrame
Auto Trait Implementations§
impl !RefUnwindSafe for BackendFrame
impl !UnwindSafe for BackendFrame
impl Forget for BackendFrame
impl Freeze for BackendFramewhere
*const u8 is !null: Freeze,
PhantomData<Plane>: Freeze,
*const ArcInner<dyn SurfaceLease> is !null: Freeze,
PhantomData<ArcInner<dyn SurfaceLease>>: Freeze,
impl Move for BackendFrame
impl Send for BackendFrame
impl Sync for BackendFrame
impl Unpin for BackendFrame
impl UnsafeUnpin for BackendFramewhere
*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