| synopsis || arguments || prev || next |

jp2_colour::init

Java: Jp2_colour::Init

Overload navigation: 1, 2, 3, 4, 5, 6

void init( kdu_byte * icc_profile)

Java: void Init( byte[] icc_profile)

[Declared in "../apps/compressed_io/jp2.h"]

Go to class description.


Synopsis

Same as the first form of the overloaded init function, except that the colour space is defined by an embedded ICC profile, supplied via the buffer pointed to by the icc_profile argument. The internal object makes a copy of this buffer.

The standard ICC header in this buffer identifies its length and other attributes, from which the object determines whether it conforms to the restricted ICC profile or not. It is best, if possible, to provide at least one colour space description which conforms to the simple ICC profile, or one of the enumerated colour spaces, JP2_sRGB_SPACE, JP2_sYCC_SPACE or JP2_sLUM_SPACE, since these are JP2-compatible.

To conform to the restricted ICC profile compatible with JP2, the profile must identify a matrixed 3-colour input space (not a monitor space, even though these are often functionally equivalent), defined with respect to the XYZ Profile Connection Space (PCS_XYZ).


Arguments

icc_profile [kdu_byte *]


| top || synopsis || arguments || prev || next |