H5IM_find_palette

fnherr_t H5IM_find_palette(hid_t loc_id, const char * dset_name, const char * pal_name, int * pal_number)

Finds a palette dataset by name.

Searches for a palette dataset with the specified name at the given location. This function is used internally by the image API.

Parameters

loc_idLocation identifier (file or group)
dset_nameName of the dataset to search for palette
pal_nameName of the palette to find
pal_numberPointer to receive the palette index if found

Returns

1 if palette found, 0 if not found, negative on error.