pub struct OptimizationFlags(pub u32);Expand description
Optimization flags (bit field, see OptimizationFlags in OCIO).
Tuple Fields§
§0: u32Implementations§
Source§impl OptimizationFlags
impl OptimizationFlags
Sourcepub const IDENTITY_GAMMA: Self
pub const IDENTITY_GAMMA: Self
Remove identity gamma ops.
Sourcepub const PAIR_IDENTITY_CDL: Self
pub const PAIR_IDENTITY_CDL: Self
Remove pairs of inverse CDL ops.
Sourcepub const PAIR_IDENTITY_EXPOSURE_CONTRAST: Self
pub const PAIR_IDENTITY_EXPOSURE_CONTRAST: Self
Remove pairs of inverse exposure/contrast ops.
Sourcepub const PAIR_IDENTITY_FIXED_FUNCTION: Self
pub const PAIR_IDENTITY_FIXED_FUNCTION: Self
Remove pairs of inverse fixed function ops.
Sourcepub const PAIR_IDENTITY_GAMMA: Self
pub const PAIR_IDENTITY_GAMMA: Self
Remove pairs of inverse gamma ops.
Sourcepub const PAIR_IDENTITY_LUT1D: Self
pub const PAIR_IDENTITY_LUT1D: Self
Remove pairs of inverse 1D LUT ops.
Sourcepub const PAIR_IDENTITY_LUT3D: Self
pub const PAIR_IDENTITY_LUT3D: Self
Remove pairs of inverse 3D LUT ops.
Sourcepub const PAIR_IDENTITY_LOG: Self
pub const PAIR_IDENTITY_LOG: Self
Remove pairs of inverse log ops.
Sourcepub const PAIR_IDENTITY_GRADING: Self
pub const PAIR_IDENTITY_GRADING: Self
Remove pairs of inverse grading ops.
Sourcepub const COMP_EXPONENT: Self
pub const COMP_EXPONENT: Self
Compose adjacent exponent ops.
Sourcepub const COMP_GAMMA: Self
pub const COMP_GAMMA: Self
Compose adjacent gamma ops.
Sourcepub const COMP_MATRIX: Self
pub const COMP_MATRIX: Self
Compose adjacent matrix ops.
Sourcepub const COMP_LUT1D: Self
pub const COMP_LUT1D: Self
Compose adjacent 1D LUT ops.
Sourcepub const COMP_LUT3D: Self
pub const COMP_LUT3D: Self
Compose adjacent 3D LUT ops.
Sourcepub const COMP_RANGE: Self
pub const COMP_RANGE: Self
Compose adjacent range ops.
Sourcepub const COMP_SEPARABLE_PREFIX: Self
pub const COMP_SEPARABLE_PREFIX: Self
Replace a separable prefix of ops with a 1D LUT.
Sourcepub const LUT_INV_FAST: Self
pub const LUT_INV_FAST: Self
Use a fast approximation for inverse LUTs.
Sourcepub const FAST_LOG_EXP_POW: Self
pub const FAST_LOG_EXP_POW: Self
Use fast approximations of log, exp and pow.
Sourcepub const SIMPLIFY_OPS: Self
pub const SIMPLIFY_OPS: Self
Simplify ops (e.g. replace complex ops by simpler equivalents).
Sourcepub const NO_DYNAMIC_PROPERTIES: Self
pub const NO_DYNAMIC_PROPERTIES: Self
Bake dynamic properties as static values.
Sourcepub fn contains(&self, other: OptimizationFlags) -> bool
pub fn contains(&self, other: OptimizationFlags) -> bool
True if every bit of other is set in self.
Sourcepub fn intersects(&self, other: OptimizationFlags) -> bool
pub fn intersects(&self, other: OptimizationFlags) -> bool
True if any bit of other is set in self.
Trait Implementations§
Source§impl BitAnd for OptimizationFlags
impl BitAnd for OptimizationFlags
Source§impl BitOr for OptimizationFlags
impl BitOr for OptimizationFlags
Source§impl Clone for OptimizationFlags
impl Clone for OptimizationFlags
impl Copy for OptimizationFlags
Source§impl Debug for OptimizationFlags
impl Debug for OptimizationFlags
Source§impl Default for OptimizationFlags
impl Default for OptimizationFlags
impl Eq for OptimizationFlags
Source§impl Hash for OptimizationFlags
impl Hash for OptimizationFlags
Source§impl Not for OptimizationFlags
impl Not for OptimizationFlags
Source§impl PartialEq for OptimizationFlags
impl PartialEq for OptimizationFlags
impl StructuralPartialEq for OptimizationFlags
Auto Trait Implementations§
impl Forget for OptimizationFlags
impl Freeze for OptimizationFlags
impl Move for OptimizationFlags
impl RefUnwindSafe for OptimizationFlags
impl Send for OptimizationFlags
impl Sync for OptimizationFlags
impl Unpin for OptimizationFlags
impl UnsafeUnpin for OptimizationFlags
impl UnwindSafe for OptimizationFlags
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.