#include <mi32/mg2cms.h>
Public Member Functions | |
| TRANSFORM (const TRANSFORM &rhs) | |
| TRANSFORM (const PROFILE &InputProfile, COLORSPACE InputColorSpace, const PROFILE &OutputProfile, COLORSPACE OutputColorSpace, PROFILE::INTENT RenderingIntent=PROFILE::INTENT_Perceptual, UINT32 flags=0) | |
| TRANSFORM () | |
| ~TRANSFORM () | |
| ERRVALUE | Create (const PROFILE &InputProfile, COLORSPACE InputColorSpace, const PROFILEPARMS_PRINTER &ProofParms, const PROFILE &OutputProfile, COLORSPACE OutputColorSpace, PROFILE::INTENT RenderingIntent=PROFILE::INTENT_Perceptual, UINT32 flags=0) |
| ERRVALUE | Create (const PROFILE &InputProfile, COLORSPACE InputColorSpace, const PROFILE &OutputProfile, COLORSPACE OutputColorSpace, PROFILE::INTENT RenderingIntent=PROFILE::INTENT_Perceptual, UINT32 flags=0) |
| void | DoTransform (const COLOR &src, COLOR &dest) const |
| void | DoTransform (const void *src, void *dest, int size) const |
| void | Free () |
| const PROFILE & | GetInputProfile () const |
| COLORSPACE | GetOutputColorSpace () const |
| const PROFILE & | GetOutputProfile () const |
| bool | IsEmpty () const |
| TRANSFORM & | operator= (const TRANSFORM &rhs) |
Static Public Member Functions | |
| static void | SetOutOfGamutAlarmColor (const COLOR &color) |
| MGD::TRANSFORM::TRANSFORM | ( | ) | [inline] |
Default constructor Empty transform until Open or something else is called.
| MGD::TRANSFORM::TRANSFORM | ( | const PROFILE & | InputProfile, | |
| COLORSPACE | InputColorSpace, | |||
| const PROFILE & | OutputProfile, | |||
| COLORSPACE | OutputColorSpace, | |||
| PROFILE::INTENT | RenderingIntent = PROFILE::INTENT_Perceptual, |
|||
| UINT32 | flags = 0 | |||
| ) |
Shortcut construct simple transform.
| MGD::TRANSFORM::TRANSFORM | ( | const TRANSFORM & | rhs | ) |
cmsCreateProofingTransform ( input, inputformat, output, outputformat proofprofile, intent, proofingintent = INTENT_ABSOLUTE_COLORIMETRIC dwFlags = cmsFLAGS_SOFTPROOFING cmsFLAGS_GAMUTCHECK cmsFLAGS_SOFTPROOFING
cmsCreateMultiprofileTransform ( profile_array, num_profiles, inputformat, outputformat, intent, flags ) Copy constructor Copy is "cheap" as the actual data is refcounted
| MGD::TRANSFORM::~TRANSFORM | ( | ) |
Destructor (note: not virtual.
No derived classes)
| ERRVALUE MGD::TRANSFORM::Create | ( | const PROFILE & | InputProfile, | |
| COLORSPACE | InputColorSpace, | |||
| const PROFILEPARMS_PRINTER & | ProofParms, | |||
| const PROFILE & | OutputProfile, | |||
| COLORSPACE | OutputColorSpace, | |||
| PROFILE::INTENT | RenderingIntent = PROFILE::INTENT_Perceptual, |
|||
| UINT32 | flags = 0 | |||
| ) |
| ERRVALUE MGD::TRANSFORM::Create | ( | const PROFILE & | InputProfile, | |
| COLORSPACE | InputColorSpace, | |||
| const PROFILE & | OutputProfile, | |||
| COLORSPACE | OutputColorSpace, | |||
| PROFILE::INTENT | RenderingIntent = PROFILE::INTENT_Perceptual, |
|||
| UINT32 | flags = 0 | |||
| ) |
| void MGD::TRANSFORM::DoTransform | ( | const void * | src, | |
| void * | dest, | |||
| int | size | |||
| ) | const |
Transform an input buffer to an output buffer.
The buffers are expected to match InputFormat and OutputFormat passed to CreateTransform() or CreateProofingTransform() It is safe for src to == dest as long as they're both the same number of bytes per pixel.
| size | Size in pixels |
| void MGD::TRANSFORM::Free | ( | ) |
| const PROFILE& MGD::TRANSFORM::GetInputProfile | ( | ) | const |
Returns a const reference to the input profile used to create this transform.
| COLORSPACE MGD::TRANSFORM::GetOutputColorSpace | ( | ) | const [inline] |
| const PROFILE& MGD::TRANSFORM::GetOutputProfile | ( | ) | const |
Returns a const reference to the output profile used to create this transform.
| bool MGD::TRANSFORM::IsEmpty | ( | ) | const [inline] |
Returns true if the transform does nothing.
NOTE: An empty transform will _really_ do nothing. DoTransform won't even copy the source to the destination because it doesn't know how many bytes per pixel there are
Assignment operator.
Assignment is "cheap" as the actual data is refcounted
| static void MGD::TRANSFORM::SetOutOfGamutAlarmColor | ( | const COLOR & | color | ) | [static] |
Set the color to use if OutOfGamutAlarm is enabled.
Due to the way it's implemented in the lcms library, this is a global setting, not per-transform.
1.6.1