DL Logo

JPXColorSpace Enumerations

JPXColorSpaceType

Header: PEExpT.h:2409

Description

JPX Color Space types.

Enum Constants

kJPXCSUnknown=0x0000
kJPXCSEnumerated=0x0001
kJPXCSRestrictedICC=0x0002
kJPXCSAnyICC=0x0003
kJPXCSVenderColor=0x0004

Returned From

JPXColorSpace Typedefs

JPXColorSpace

Header: PEExpT.h:423

Description

A reference to a JPXColorSpace.

Syntax

typedef struct _t_JPXColorSpace *JPXColorSpace;

Returned From

Used By

JPXColorSpace Structures

_t_JPXCSEnumAttrs

Header: PEExpT.h:2420

Description

Attributes of a JPXCSEnumerated JPXColorSpace.

Syntax

struct _t_JPXCSEnumAttrs {
ASUns32 enumNumber;
The enumerated color space number.
ASBool stdIlluminant;
The standard illuminant is used.
ASUns32 illuminant;
A 4-byte illuminant value.
ASUns32 labRange [3];
L, A, and B range values.
ASUns32 labOffset [3];
L, A, and B offset values.
} JPXCSEnumAttrs, *JPXCSEnumAttrsP;

Used By

JPXColorSpace Functions

JPXColorSpaceAcquireNext

Header: PERProcs.h:2937

Description

Acquires the next JPX color space defined with the JPX encoded image in the link list, if one exists. This object is acquired and must be released using PDERelease() when it is no longer in use.

Syntax

JPXColorSpace JPXColorSpaceAcquireNext(IN JPXColorSpace jpxColorSpace);

Parameters

jpxColorSpace
IN/OUT A JPX color space object.

Returns

The next JPX color space associated with the JPX encoded image.

Exceptions

JPXColorSpaceGetEnumAttrs

Header: PERProcs.h:2971

Description

Gets the attributes of an enumerated color space. It returns false if the color space is not kJPXCSEnumerated.

Syntax

ASBool JPXColorSpaceGetEnumAttrs(IN JPXColorSpace jpxColorSpace, OUT JPXCSEnumAttrsP jpxCSEnumAttrsP);

Parameters

jpxColorSpace
IN/OUT A JPX color space object.
jpxCSEnumAttrsP
IN/OUT (filled in by the method) Attributes of a JPX enumerated color space.

Returns

true if the JPX color space is kJPXCSEnumerated

Exceptions

JPXColorSpaceGetProfile

Header: PERProcs.h:2988

Description

Gets the color profile of an ICC-based JPX color space. If profile is 0, it returns the length of the profile in bytes; otherwise it returns the number of bytes copied to profile.

Syntax

ASInt32 JPXColorSpaceGetProfile(IN JPXColorSpace jpxColorSpace, OUT ASUns8 *profile, IN ASInt32 profileLength);

Parameters

jpxColorSpace
IN/OUT A JPX color space object.
profile
IN/OUT (Filled by the method) The profile of the JPX color space.
profileLength
IN/OUT The byte length of the user-supplied profile buffer.

Returns

The byte length of the profile, if profile is 0; otherwise returns the byte length copied to profile.

Exceptions

JPXColorSpaceGetType

Header: PERProcs.h:2956

Description

Syntax

JPXColorSpaceType JPXColorSpaceGetType(IN JPXColorSpace jpxColorSpace);

Parameters

jpxColorSpace
IN/OUT A JPX color space object.

Returns

The JPX color space type, JPXColorSpaceType.

Exceptions