test: lh_open/pi_color.h File Reference

Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

# pi_color.h File Reference

Go to the source code of this file.

## Functions

CMError | LHColorWorldOpen (Ptr *storage)
CMError | LHColorWorldClose (Ptr storage)

## Function Documentation

CMError LHColorWorldClose | ( | Ptr | storage | ) |

Definition at line 88 of file lh_open/pi_color.c.

    00089 {
    00090     CMMModelPtr  modelData = (CMMModelPtr)storage;
    00091
    00092     if (storage)
    00093     {
    00094                 DISPOSE_IF_DATA((modelData)->lutParam.inputLut);
    00095                 DISPOSE_IF_DATA((modelData)->lutParam.outputLut);
    00096                 DISPOSE_IF_DATA((modelData)->lutParam.colorLut);
    00097
    00098                 DISPOSE_IF_DATA((modelData)->gamutLutParam.inputLut);
    00099                 DISPOSE_IF_DATA((modelData)->gamutLutParam.outputLut);
    00100                 DISPOSE_IF_DATA((modelData)->gamutLutParam.colorLut);
    00101
    00102                 DISPOSE_IF_DATA((modelData)->theNamedColorTagData);
    00103 #if     __IS_MAC
    00104                 DisposeIfHandle((modelData)->Monet);
    00105 #endif
    00106
    00107                 DisposeIfPtr(storage);
    00108     }
    00109     return( noErr );
    00110 }

CMError LHColorWorldOpen | ( | Ptr * | storage | ) |

Definition at line 55 of file lh_open/pi_color.c.

    00056 {
    00057     Ptr                             myStorage;
    00058     OSErr               err;
    00059
    00060     myStorage = (Ptr)SmartNewPtrClear( sizeof( CMMModelData ) , &err);
    00061     if (err)
    00062         goto CleanupAndExit;
    00063     else
    00064     {
    00065         *storage = myStorage;
    00066     }
    00067
    00068 CleanupAndExit:
    00069     return err;
    00070 }