pub struct YuvFrame<'a> {
pub format: YuvFormat,
pub planes: [SourcePlane<'a>; 3],
pub alpha_plane: Option<SourcePlane<'a>>,
pub size: RenderSize,
pub alpha: f32,
pub color: Option<ColorMetadata>,
}Expand description
Borrowed planar or semi-planar YCbCr source of any subsampling and depth
YuvFormat::is_supported accepts.
Fields§
§format: YuvFormatHow the planes store their samples.
planes: [SourcePlane<'a>; 3]Luma, then U and V, or luma and the interleaved chroma plane, in which case the third plane is ignored.
alpha_plane: Option<SourcePlane<'a>>Straight, full-range alpha at the luma’s size and depth: present
exactly when YuvFormat::alpha is set.
size: RenderSizeCoded dimensions.
alpha: f32Straight source alpha.
color: Option<ColorMetadata>Optional stream color metadata.
Trait Implementations§
impl<'a> Copy for YuvFrame<'a>
Source§impl<'a> From<Yuv420Frame<'a>> for YuvFrame<'a>
impl<'a> From<Yuv420Frame<'a>> for YuvFrame<'a>
Source§fn from(frame: Yuv420Frame<'a>) -> Self
fn from(frame: Yuv420Frame<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for YuvFrame<'a>
impl<'a> RefUnwindSafe for YuvFrame<'a>
impl<'a> Send for YuvFrame<'a>
impl<'a> Sync for YuvFrame<'a>
impl<'a> Unpin for YuvFrame<'a>
impl<'a> UnsafeUnpin for YuvFrame<'a>
impl<'a> UnwindSafe for YuvFrame<'a>
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