decodeJpegComponents
Decode the JPEG in data to its stored samples: every component after the inverse DCT and the upsampling, before any color conversion. Use it when the caller, not the decoder, knows what the samples mean, such as the CMYK or YCCK ink of a PDF image. JpegComponents says how the samples are laid out.
reduction works as in decodeReduced: 1, 2, 4 or 8, each side divided by it and rounded up, inside the inverse DCT. The decode and the upsampling are those of decodeReduced, so its color conversion of these samples gives its pixels exactly, and a file it refuses is refused here with the same exception. It costs about one decodeReduced. cancellationCheck runs as for decode, once a row of MCUs.
Throws
if reduction is not 1, 2, 4 or 8
on malformed or truncated input, or input that is not a JPEG
on a JPEG feature this decoder does not implement