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]

NO_CACHE: Flags<DisallowCache> = Flags(ffi::FLAGS_NOCACHE, DisallowCache)

Inhibit 1-pixel cache. This is required to make Transform implement Sync

NO_OPTIMIZE: Flags = Flags(ffi::FLAGS_NOOPTIMIZE, AllowCache)

Inhibit optimizations

NULL_TRANSFORM: Flags = Flags(ffi::FLAGS_NULLTRANSFORM, AllowCache)

Don't transform anyway

GAMUT_CHECK: Flags = Flags(ffi::FLAGS_GAMUTCHECK, AllowCache)

Proofing flags Out of Gamut alarm

SOFT_PROOFING: Flags = Flags(ffi::FLAGS_SOFTPROOFING, AllowCache)

Do softproofing

BLACKPOINT_COMPENSATION: Flags = Flags(ffi::FLAGS_BLACKPOINTCOMPENSATION, AllowCache)

NO_WHITE_ON_WHITE_FIXUP: Flags = Flags(ffi::FLAGS_NOWHITEONWHITEFIXUP, AllowCache)

Don't fix scum dot

HIGHRES_PRECALC: Flags = Flags(ffi::FLAGS_HIGHRESPRECALC, AllowCache)

Use more memory to give better accurancy

LOWRES_PRECALC: Flags = Flags(ffi::FLAGS_LOWRESPRECALC, AllowCache)

Use less memory to minimize resources

DEVICELINK_8BITS: Flags = Flags(ffi::FLAGS_8BITS_DEVICELINK, AllowCache)

For devicelink creation Create 8 bits devicelinks

GUESS_DEVICE_CLASS: Flags = Flags(ffi::FLAGS_GUESSDEVICECLASS, AllowCache)

Guess device class (for transform2devicelink)

KEEP_SEQUENCE: Flags = Flags(ffi::FLAGS_KEEP_SEQUENCE, AllowCache)

Keep profile sequence for devicelink creation

FORCE_CLUT: Flags = Flags(ffi::FLAGS_FORCE_CLUT, AllowCache)

Specific to a particular optimizations Force CLUT optimization

CLUT_POST_LINEARIZATION: Flags = Flags(ffi::FLAGS_CLUT_POST_LINEARIZATION, AllowCache)

create postlinearization tables if possible

CLUT_PRE_LINEARIZATION: Flags = Flags(ffi::FLAGS_CLUT_PRE_LINEARIZATION, AllowCache)

create prelinearization tables if possible

NO_NEGATIVES: Flags = Flags(ffi::FLAGS_NONEGATIVES, AllowCache)

Specific to unbounded mode Prevent negative numbers in floating point transforms

COPY_ALPHA: Flags = Flags(ffi::FLAGS_COPY_ALPHA, AllowCache)

Alpha channels are copied on cmsDoTransform()

NO_DEFAULT_RESOURCE_DEF: Flags = Flags(ffi::FLAGS_NODEFAULTRESOURCEDEF, AllowCache)

CRD special

impl<T: CacheFlag> Flags<T>
[src]

[src]

Trait Implementations

impl<T: Debug + CacheFlag> Debug for Flags<T>
[src]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: CacheFlag> BitOr<Flags<T>> for Flags<DisallowCache>
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl<T: CacheFlag> BitOr<Flags<T>> for Flags<AllowCache>
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl Default for Flags
[src]

[src]

Default flags

By default allows non-thread-safe cache, which improves performance, but limits transforms to use by one thread only.