#[non_exhaustive]pub struct PlanarCaptureOptions {
pub downsample: ChromaDownsample,
pub unknown_siting_fallback: Option<ChromaSiting>,
}Expand description
Configuration for forward planar capture (PlanarCapturePlan).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.downsample: ChromaDownsampleChroma downsampling kernel (SitingAware default).
unknown_siting_fallback: Option<ChromaSiting>Optional fallback ChromaSiting used when a siting-dependent downsample
(SitingAware or Nearest) runs on a subsampled target whose
spec.chroma_siting == ChromaSiting::Unknown.
Implementations§
Source§impl PlanarCaptureOptions
impl PlanarCaptureOptions
Sourcepub const fn siting_aware() -> Self
pub const fn siting_aware() -> Self
Phase-exact siting-aware chroma downsampling (ChromaDownsample::SitingAware).
Sourcepub const fn box_average() -> Self
pub const fn box_average() -> Self
Cell box-average chroma downsampling (ChromaDownsample::BoxAverage).
Sourcepub const fn with_downsample(self, downsample: ChromaDownsample) -> Self
pub const fn with_downsample(self, downsample: ChromaDownsample) -> Self
Select the chroma downsampling 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 target declares ChromaSiting::Unknown.
Trait Implementations§
Source§impl Clone for PlanarCaptureOptions
impl Clone for PlanarCaptureOptions
Source§fn clone(&self) -> PlanarCaptureOptions
fn clone(&self) -> PlanarCaptureOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlanarCaptureOptions
Source§impl Debug for PlanarCaptureOptions
impl Debug for PlanarCaptureOptions
Source§impl Default for PlanarCaptureOptions
impl Default for PlanarCaptureOptions
Source§fn default() -> PlanarCaptureOptions
fn default() -> PlanarCaptureOptions
Returns the “default value” for a type. Read more
impl Eq for PlanarCaptureOptions
Source§impl Hash for PlanarCaptureOptions
impl Hash for PlanarCaptureOptions
Source§impl PartialEq for PlanarCaptureOptions
impl PartialEq for PlanarCaptureOptions
impl StructuralPartialEq for PlanarCaptureOptions
Auto Trait Implementations§
impl Freeze for PlanarCaptureOptions
impl RefUnwindSafe for PlanarCaptureOptions
impl Send for PlanarCaptureOptions
impl Sync for PlanarCaptureOptions
impl Unpin for PlanarCaptureOptions
impl UnsafeUnpin for PlanarCaptureOptions
impl UnwindSafe for PlanarCaptureOptions
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