decodeJpxComponents
Decode the JPEG 2000 image in data to its stored components: every component after the inverse wavelet, the multiple component transform and the DC level shift, sampled onto the image grid, before the JP2 palette, channel definitions and colour space. Use it when the caller, not the file, says what the components mean, as a PDF's ColorSpace does for a JPXDecode image (ISO 32000-1, 8.9.5.2). JpxComponents says how the samples are laid out, and reports the file's own colour specification.
reduction works as in decodeReduced: 1, 2, 4 or 8, each side divided by it and rounded up, by dropping the finest wavelet levels. The reconstruction is the one decode runs, so its colour stage applied to 8-bit components gives its pixels exactly. A codestream decode refuses is refused here with the same exception; a colour box decode cannot apply is reported, not refused. cancellationCheck runs as for decode.
Throws
if reduction is not 1, 2, 4 or 8
on malformed or truncated input, or input that is not JPEG 2000
on a codestream feature this decoder does not implement