pub struct DecodedVideoFrame {
pub pts: MediaTime,
pub dts: Option<MediaTime>,
pub duration: Option<MediaTime>,
pub visible_rect: Rect,
pub sample_aspect_ratio: SampleAspectRatio,
pub orientation: Orientation,
pub pixel_format: PixelFormat,
pub chroma_location: ChromaLocation,
pub color: Option<ColorMetadata>,
pub planes: Vec<Plane>,
}Expand description
Host-independent decoded video frame.
Fields§
§pts: MediaTimePresentation timestamp.
dts: Option<MediaTime>Optional decode timestamp.
duration: Option<MediaTime>Nominal frame duration when known.
visible_rect: RectThe visible crop within the coded picture, in coded pixels.
sample_aspect_ratio: SampleAspectRatioPixel aspect ratio.
orientation: OrientationHow the picture is shown upright.
pixel_format: PixelFormatPlane layout.
chroma_location: ChromaLocationChroma siting.
color: Option<ColorMetadata>Declared color metadata: the project’s declaration, else the frame’s
or stream’s tags. None when nothing declares one: the renderer then
applies crate::ColorMetadata::UNDECLARED and reports it.
planes: Vec<Plane>Image planes in the order Self::pixel_format stores them.
Trait Implementations§
Source§impl Clone for DecodedVideoFrame
impl Clone for DecodedVideoFrame
Source§impl Debug for DecodedVideoFrame
impl Debug for DecodedVideoFrame
Source§impl PartialEq for DecodedVideoFrame
impl PartialEq for DecodedVideoFrame
impl StructuralPartialEq for DecodedVideoFrame
Auto Trait Implementations§
impl Freeze for DecodedVideoFrame
impl RefUnwindSafe for DecodedVideoFrame
impl Send for DecodedVideoFrame
impl Sync for DecodedVideoFrame
impl Unpin for DecodedVideoFrame
impl UnsafeUnpin for DecodedVideoFrame
impl UnwindSafe for DecodedVideoFrame
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