pub struct Description {
pub width: u32,
pub height: u32,
pub descriptor: PixelDescriptor,
pub color_context: Option<Arc<ColorContext>>,
pub exact_depth: Option<ExactDepth>,
}Expand description
Fixed sample declaration for this operation. Color conversion is not implicit.
Fields§
§width: u32Width in samples.
height: u32Total rows.
descriptor: PixelDescriptorComplete sample descriptor accepted by the configured encoder.
color_context: Option<Arc<ColorContext>>Original color context carried on every source and encoder row view.
exact_depth: Option<ExactDepth>Optional assertion about current canonical samples, checked before push.
Some is strict: unsupported layouts refuse before startup, including
full-storage CMYK claims. None does not restrict sample depth.
It does not prove the encoder preserves samples or bound native memory.
Implementations§
Source§impl Description
impl Description
Sourcepub const fn new(width: u32, height: u32, descriptor: PixelDescriptor) -> Self
pub const fn new(width: u32, height: u32, descriptor: PixelDescriptor) -> Self
Construct a declaration; execution checks dimensions and size arithmetic.
Sourcepub fn with_color_context(self, context: Arc<ColorContext>) -> Self
pub fn with_color_context(self, context: Arc<ColorContext>) -> Self
Attach the actual sample context without changing the descriptor.
Sourcepub const fn with_exact_depth(self, exact: ExactDepth) -> Self
pub const fn with_exact_depth(self, exact: ExactDepth) -> Self
State a sample-grid claim; execution verifies each active row before push.
Supported layouts follow EncodeDeclaration::exact_depth. A claim
changes admission: it must be verifiable even if the encoder ignores it.
Trait Implementations§
Source§impl Clone for Description
impl Clone for Description
Source§fn clone(&self) -> Description
fn clone(&self) -> Description
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more