#[non_exhaustive]pub enum GainMapDownsample {
Box,
Bilinear,
Point,
}Expand description
Downsampling filter used during gain-map extraction when scale_factor > 1.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Box
Area-averaging box filter over each scale × scale block in linear light (default).
Prevents aliasing and single-pixel highlight sparkle on subsampled gain maps.
Bilinear
Separable center-sited triangle/bilinear filter in linear light.
Point
Center-pixel point sampling (gx * scale + scale / 2).min(w - 1), matching legacy
ultrahdr-core / zenjpeg subsampling.
Trait Implementations§
Source§impl Clone for GainMapDownsample
impl Clone for GainMapDownsample
Source§fn clone(&self) -> GainMapDownsample
fn clone(&self) -> GainMapDownsample
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 GainMapDownsample
Source§impl Debug for GainMapDownsample
impl Debug for GainMapDownsample
Source§impl Default for GainMapDownsample
impl Default for GainMapDownsample
Source§fn default() -> GainMapDownsample
fn default() -> GainMapDownsample
Returns the “default value” for a type. Read more
impl Eq for GainMapDownsample
Source§impl Hash for GainMapDownsample
impl Hash for GainMapDownsample
Source§impl PartialEq for GainMapDownsample
impl PartialEq for GainMapDownsample
impl StructuralPartialEq for GainMapDownsample
Auto Trait Implementations§
impl Freeze for GainMapDownsample
impl RefUnwindSafe for GainMapDownsample
impl Send for GainMapDownsample
impl Sync for GainMapDownsample
impl Unpin for GainMapDownsample
impl UnsafeUnpin for GainMapDownsample
impl UnwindSafe for GainMapDownsample
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