decodeAuxiliaryImage
Decode auxiliary image index of auxiliaryImages as one channel of 16-bit samples: the item's luma or gray plane as its codec gives it, at AuxiliaryImage.width by AuxiliaryImage.height, before the item's clean aperture, rotation and mirror. A coded sample v of n bits becomes v * 65535 / (2^n - 1), rounded to the nearest, so an 8-bit v is v * 257 and AuxiliaryImage.bitDepth gives v back. Nothing else changes it: a limited range is not stretched and chroma planes are left out, as alpha and depth are carried in luma alone. What a depth sample measures is in AuxiliaryImage.subtype or the file's XMP. cancellationCheck works as for decode.
Throws
on a malformed file or item
when the item needs a codec this build lacks
if index is not an index of auxiliaryImages