pub struct NativeVideoFrameMetadata {Show 13 fields
pub pts: MediaTime,
pub dts: Option<MediaTime>,
pub duration: Option<MediaTime>,
pub visible_rect: Rect,
pub orientation: Orientation,
pub sample_aspect_ratio: SampleAspectRatio,
pub color: Option<ColorMetadata>,
pub chroma_location: ChromaLocation,
pub bit_depth: u8,
pub plane_layout: NativePlaneLayout,
pub device_identity: u64,
pub decoder_generation: u64,
pub picture_identity: u64,
}Expand description
Platform-neutral metadata carried identically by CPU and hardware frames.
It says nothing of the memory behind the picture: a hardware surface may be larger than its frame (a 1080p H.264 surface is 1088 rows), by an amount each platform decides, and an importer reports the extent it samples itself.
Fields§
§pts: MediaTimePresentation timestamp.
dts: Option<MediaTime>Decode timestamp when available.
duration: Option<MediaTime>Nominal duration when available.
visible_rect: RectVisible crop.
orientation: OrientationHow the picture is shown upright.
sample_aspect_ratio: SampleAspectRatioPixel aspect ratio.
color: Option<ColorMetadata>Color declaration.
chroma_location: ChromaLocationChroma sample position.
bit_depth: u8Significant component bits.
plane_layout: NativePlaneLayoutMemory plane organization.
device_identity: u64GPU device identity, zero for CPU frames.
decoder_generation: u64Decoder or surface-pool generation.
picture_identity: u64Physical picture identity within the generation.
Trait Implementations§
Source§impl Clone for NativeVideoFrameMetadata
impl Clone for NativeVideoFrameMetadata
Source§impl Debug for NativeVideoFrameMetadata
impl Debug for NativeVideoFrameMetadata
Source§impl PartialEq for NativeVideoFrameMetadata
impl PartialEq for NativeVideoFrameMetadata
impl StructuralPartialEq for NativeVideoFrameMetadata
Auto Trait Implementations§
impl Freeze for NativeVideoFrameMetadata
impl RefUnwindSafe for NativeVideoFrameMetadata
impl Send for NativeVideoFrameMetadata
impl Sync for NativeVideoFrameMetadata
impl Unpin for NativeVideoFrameMetadata
impl UnsafeUnpin for NativeVideoFrameMetadata
impl UnwindSafe for NativeVideoFrameMetadata
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