#[non_exhaustive]pub struct PlanarReconstructionOptions {
pub upsample: ChromaUpsample,
pub unknown_siting_fallback: Option<ChromaSiting>,
}Expand description
Configuration for planar reconstruction (reconstruct_planar_to_buf,
reconstruct_planar_into).
Chroma resampling options apply only when a chroma axis is subsampled (> 1).
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.upsample: ChromaUpsampleChroma upsampling kernel (Nearest default; Bilinear for smooth siting-exact upsampling).
unknown_siting_fallback: Option<ChromaSiting>Optional fallback ChromaSiting used when upsample == ChromaUpsample::Bilinear,
a chroma axis is subsampled, and src.chroma_siting() == ChromaSiting::Unknown.
When None, Bilinear refuses subsampled views with ChromaSiting::Unknown rather
than silently guessing a siting.
Implementations§
Source§impl PlanarReconstructionOptions
impl PlanarReconstructionOptions
Sourcepub const fn bilinear() -> Self
pub const fn bilinear() -> Self
Siting-exact separable bilinear / triangle upsampling (ChromaUpsample::Bilinear).
Refuses subsampled views with ChromaSiting::Unknown unless
with_unknown_siting_fallback is set.
Sourcepub const fn with_upsample(self, upsample: ChromaUpsample) -> Self
pub const fn with_upsample(self, upsample: ChromaUpsample) -> Self
Select the chroma upsampling kernel.
Sourcepub const fn with_unknown_siting_fallback(self, siting: ChromaSiting) -> Self
pub const fn with_unknown_siting_fallback(self, siting: ChromaSiting) -> Self
Provide an explicit fallback ChromaSiting when the source declares ChromaSiting::Unknown.
Trait Implementations§
Source§impl Clone for PlanarReconstructionOptions
impl Clone for PlanarReconstructionOptions
Source§fn clone(&self) -> PlanarReconstructionOptions
fn clone(&self) -> PlanarReconstructionOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more