7#include "errormacros.h"
11extern float absOffset[NBLOCK];
18#define FUNC_NAMEm "misrinv"
30 if (block < 1 || block > NBLOCK) {
31 snprintf(msg, STRLEN,
"block is out of range (0 < %d < %d)", block, nb);
34 if (line < -0.5 || line > nl - 0.5) {
35 snprintf(msg, STRLEN,
"line is out of range (0 < %e < %d)", line, nl);
38 if (sample < -0.5 || sample > ns - 0.5) {
39 snprintf(msg, STRLEN,
"sample is out of range (0 < %e < %d)", sample, ns);
44 n = (
int)((block - 1) * nl * sx);
45 *x = (double)(xc + n + (line * sx));
46 *y = (double)(yc + ((sample + absOffset[block-1]) * sy));