| synopsis || arguments || prev |
kdu_byte * get_vendor_data( int * num_bytes=NULL)
[Declared in "../apps/compressed_io/jp2.h"]
If get_space returns JP2_vendor_SPACE, this function returns a pointer to the internal buffer used to represent the vendor colour space (everything after the 16-byte UUID in the colr box's METHDATA field). Otherwise, the function returns a NULL pointer.
The returned block of memory, if any, belongs to the internal object; no attempt should be made to delete it or to use it beyond the lifetime of the object which originally supplied this interface.
If not NULL, this argument is used to return the length of the buffer — written to * num_bytes.