#[non_exhaustive]pub struct PlanarCaptureSpec {
pub coded_extent: (u32, u32),
pub visible_rect: PixelRect,
pub planes: Box<[PlaneFormat]>,
pub chroma_siting: ChromaSiting,
pub signal: Cicp,
pub alpha: AlphaMode,
pub diffuse_white: Option<DiffuseWhite>,
}Expand description
Target planar geometry, plane layout, chroma siting, and true coded CICP signal
for PlanarCapturePlan.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.coded_extent: (u32, u32)Full coded frame dimensions (width, height) in luma pixels.
visible_rect: PixelRectVisible active rectangle within coded_extent; its (x, y) origin establishes
the subsampling phase against the coded grid, and (width, height) must match
the source PixelView and destination PlanarViewMut dimensions.
planes: Box<[PlaneFormat]>Target plane storage specifications (roles, sample types, bit packing, subsampling).
chroma_siting: ChromaSitingTarget chroma sample siting.
signal: CicpTrue coded destination CICP signal (primaries, transfer, matrix coefficients, full/narrow range).
alpha: AlphaModeTarget alpha association when planes includes PlaneRole::Alpha (default Straight).
diffuse_white: Option<DiffuseWhite>Optional relative-linear 1.0 diffuse-white anchor for the destination color space.
Implementations§
Source§impl PlanarCaptureSpec
impl PlanarCaptureSpec
Sourcepub fn new(
coded_extent: (u32, u32),
visible_rect: PixelRect,
planes: impl Into<Box<[PlaneFormat]>>,
chroma_siting: ChromaSiting,
signal: Cicp,
) -> Self
pub fn new( coded_extent: (u32, u32), visible_rect: PixelRect, planes: impl Into<Box<[PlaneFormat]>>, chroma_siting: ChromaSiting, signal: Cicp, ) -> Self
Construct a planar capture specification with explicit coded_extent and visible_rect.
Sourcepub fn full_frame(
width: u32,
height: u32,
planes: impl Into<Box<[PlaneFormat]>>,
chroma_siting: ChromaSiting,
signal: Cicp,
) -> Self
pub fn full_frame( width: u32, height: u32, planes: impl Into<Box<[PlaneFormat]>>, chroma_siting: ChromaSiting, signal: Cicp, ) -> Self
Construct a full-frame planar capture specification (visible_rect covers (0, 0, width, height)).
Sourcepub const fn with_alpha(self, alpha: AlphaMode) -> Self
pub const fn with_alpha(self, alpha: AlphaMode) -> Self
Set alpha association mode for an optional PlaneRole::Alpha plane.
Sourcepub const fn with_diffuse_white(self, white: DiffuseWhite) -> Self
pub const fn with_diffuse_white(self, white: DiffuseWhite) -> Self
Set explicit diffuse-white anchor for the destination color space.
Trait Implementations§
Source§impl Clone for PlanarCaptureSpec
impl Clone for PlanarCaptureSpec
Source§fn clone(&self) -> PlanarCaptureSpec
fn clone(&self) -> PlanarCaptureSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more