A utility method that may be used by readers to compute the
region of the source image that should be read, taking into
account any source region and subsampling offset settings in
the supplied ImageReadParam.

Computes the source region of interest and the destination
region of interest, taking the width and height of the source
image, an optional destination image, and an optional
ImageReadParam into account.