Skip to main content

OptimizationFlags

Struct OptimizationFlags 

Source
pub struct OptimizationFlags(pub u32);
Expand description

Optimization flags (bit field, see OptimizationFlags in OCIO).

Tuple Fields§

§0: u32

Implementations§

Source§

impl OptimizationFlags

Source

pub const NONE: Self

No optimization.

Source

pub const IDENTITY: Self

Remove identity ops.

Source

pub const IDENTITY_GAMMA: Self

Remove identity gamma ops.

Source

pub const PAIR_IDENTITY_CDL: Self

Remove pairs of inverse CDL ops.

Source

pub const PAIR_IDENTITY_EXPOSURE_CONTRAST: Self

Remove pairs of inverse exposure/contrast ops.

Source

pub const PAIR_IDENTITY_FIXED_FUNCTION: Self

Remove pairs of inverse fixed function ops.

Source

pub const PAIR_IDENTITY_GAMMA: Self

Remove pairs of inverse gamma ops.

Source

pub const PAIR_IDENTITY_LUT1D: Self

Remove pairs of inverse 1D LUT ops.

Source

pub const PAIR_IDENTITY_LUT3D: Self

Remove pairs of inverse 3D LUT ops.

Source

pub const PAIR_IDENTITY_LOG: Self

Remove pairs of inverse log ops.

Source

pub const PAIR_IDENTITY_GRADING: Self

Remove pairs of inverse grading ops.

Source

pub const COMP_EXPONENT: Self

Compose adjacent exponent ops.

Source

pub const COMP_GAMMA: Self

Compose adjacent gamma ops.

Source

pub const COMP_MATRIX: Self

Compose adjacent matrix ops.

Source

pub const COMP_LUT1D: Self

Compose adjacent 1D LUT ops.

Source

pub const COMP_LUT3D: Self

Compose adjacent 3D LUT ops.

Source

pub const COMP_RANGE: Self

Compose adjacent range ops.

Source

pub const COMP_SEPARABLE_PREFIX: Self

Replace a separable prefix of ops with a 1D LUT.

Source

pub const LUT_INV_FAST: Self

Use a fast approximation for inverse LUTs.

Source

pub const FAST_LOG_EXP_POW: Self

Use fast approximations of log, exp and pow.

Source

pub const SIMPLIFY_OPS: Self

Simplify ops (e.g. replace complex ops by simpler equivalents).

Source

pub const NO_DYNAMIC_PROPERTIES: Self

Bake dynamic properties as static values.

Source

pub const ALL: Self

All optimizations.

Source

pub const LOSSLESS: Self

Optimizations that do not change the result.

Source

pub const VERY_GOOD: Self

Lossless plus near-lossless approximations (the default).

Source

pub const GOOD: Self

VERY_GOOD plus 3D LUT composition.

Source

pub const DRAFT: Self = Self::ALL

All optimizations.

Source

pub const DEFAULT: Self = Self::VERY_GOOD

Default optimization level (VERY_GOOD).

Source

pub fn contains(&self, other: OptimizationFlags) -> bool

True if every bit of other is set in self.

Source

pub fn intersects(&self, other: OptimizationFlags) -> bool

True if any bit of other is set in self.

Trait Implementations§

Source§

impl BitAnd for OptimizationFlags

Source§

type Output = OptimizationFlags

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self

Performs the & operation. Read more
Source§

impl BitOr for OptimizationFlags

Source§

type Output = OptimizationFlags

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl Clone for OptimizationFlags

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for OptimizationFlags

Source§

impl Debug for OptimizationFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OptimizationFlags

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for OptimizationFlags

Source§

impl Hash for OptimizationFlags

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Not for OptimizationFlags

Source§

type Output = OptimizationFlags

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self

Performs the unary ! operation using logical or bitwise negation. Read more
Source§

impl PartialEq for OptimizationFlags

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for OptimizationFlags

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.