Struct lcms2::Flags
[−]
[src]
pub struct Flags<T: CacheFlag = AllowCache>(pub u32, _);
Flags for creating Transform
. Can be OR-ed together with |
.
There's a special NO_CACHE
flag that enables sharing transform between threads.
Methods
impl Flags
[src]
pub const NO_CACHE: Flags<DisallowCache>
NO_CACHE: Flags<DisallowCache> = Flags(ffi::FLAGS_NOCACHE, DisallowCache)
Inhibit 1-pixel cache. This is required to make Transform
implement Sync
pub const NO_OPTIMIZE: Flags
NO_OPTIMIZE: Flags = Flags(ffi::FLAGS_NOOPTIMIZE, AllowCache)
Inhibit optimizations
pub const NULL_TRANSFORM: Flags
NULL_TRANSFORM: Flags = Flags(ffi::FLAGS_NULLTRANSFORM, AllowCache)
Don't transform anyway
pub const GAMUT_CHECK: Flags
GAMUT_CHECK: Flags = Flags(ffi::FLAGS_GAMUTCHECK, AllowCache)
Proofing flags Out of Gamut alarm
pub const SOFT_PROOFING: Flags
SOFT_PROOFING: Flags = Flags(ffi::FLAGS_SOFTPROOFING, AllowCache)
Do softproofing
pub const BLACKPOINT_COMPENSATION: Flags
BLACKPOINT_COMPENSATION: Flags = Flags(ffi::FLAGS_BLACKPOINTCOMPENSATION, AllowCache)
pub const NO_WHITE_ON_WHITE_FIXUP: Flags
NO_WHITE_ON_WHITE_FIXUP: Flags = Flags(ffi::FLAGS_NOWHITEONWHITEFIXUP, AllowCache)
Don't fix scum dot
pub const HIGHRES_PRECALC: Flags
HIGHRES_PRECALC: Flags = Flags(ffi::FLAGS_HIGHRESPRECALC, AllowCache)
Use more memory to give better accurancy
pub const LOWRES_PRECALC: Flags
LOWRES_PRECALC: Flags = Flags(ffi::FLAGS_LOWRESPRECALC, AllowCache)
Use less memory to minimize resources
pub const DEVICELINK_8BITS: Flags
DEVICELINK_8BITS: Flags = Flags(ffi::FLAGS_8BITS_DEVICELINK, AllowCache)
For devicelink creation Create 8 bits devicelinks
pub const GUESS_DEVICE_CLASS: Flags
GUESS_DEVICE_CLASS: Flags = Flags(ffi::FLAGS_GUESSDEVICECLASS, AllowCache)
Guess device class (for transform2devicelink)
pub const KEEP_SEQUENCE: Flags
KEEP_SEQUENCE: Flags = Flags(ffi::FLAGS_KEEP_SEQUENCE, AllowCache)
Keep profile sequence for devicelink creation
pub const FORCE_CLUT: Flags
FORCE_CLUT: Flags = Flags(ffi::FLAGS_FORCE_CLUT, AllowCache)
Specific to a particular optimizations Force CLUT optimization
pub const CLUT_POST_LINEARIZATION: Flags
CLUT_POST_LINEARIZATION: Flags = Flags(ffi::FLAGS_CLUT_POST_LINEARIZATION, AllowCache)
create postlinearization tables if possible
pub const CLUT_PRE_LINEARIZATION: Flags
CLUT_PRE_LINEARIZATION: Flags = Flags(ffi::FLAGS_CLUT_PRE_LINEARIZATION, AllowCache)
create prelinearization tables if possible
pub const NO_NEGATIVES: Flags
NO_NEGATIVES: Flags = Flags(ffi::FLAGS_NONEGATIVES, AllowCache)
Specific to unbounded mode Prevent negative numbers in floating point transforms
pub const COPY_ALPHA: Flags
COPY_ALPHA: Flags = Flags(ffi::FLAGS_COPY_ALPHA, AllowCache)
Alpha channels are copied on cmsDoTransform()
pub const NO_DEFAULT_RESOURCE_DEF: Flags
NO_DEFAULT_RESOURCE_DEF: Flags = Flags(ffi::FLAGS_NODEFAULTRESOURCEDEF, AllowCache)
CRD special
impl<T: CacheFlag> Flags<T>
[src]
Trait Implementations
impl<T: Debug + CacheFlag> Debug for Flags<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Copy + CacheFlag> Copy for Flags<T>
[src]
impl<T: Clone + CacheFlag> Clone for Flags<T>
[src]
fn clone(&self) -> Flags<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: CacheFlag> BitOr<Flags<T>> for Flags<DisallowCache>
[src]
type Output = Flags<DisallowCache>
The resulting type after applying the |
operator.
fn bitor(self, other: Flags<T>) -> Flags<DisallowCache>
[src]
Performs the |
operation.
impl<T: CacheFlag> BitOr<Flags<T>> for Flags<AllowCache>
[src]
type Output = Flags<T>
The resulting type after applying the |
operator.
fn bitor(self, other: Flags<T>) -> Flags<T>
[src]
Performs the |
operation.