< prev index next >
src/java.desktop/share/native/libmlib_image/mlib_ImageConv_16ext.c
Print this page
*** 527,537 ****
k[i] = kernel[i]*fscale;
}
if (m == 1) {
status = mlib_ImageConv1xN_ext(dst, src, k, n, dy_t, dy_b, cmask);
! FREE_AND_RETURN_STATUS;
}
swid = wid + (m - 1);
bsize = (n + 3)*swid;
--- 527,537 ----
k[i] = kernel[i]*fscale;
}
if (m == 1) {
status = mlib_ImageConv1xN_ext(dst, src, k, n, dy_t, dy_b, cmask);
! FREE_AND_RETURN_STATUS
}
swid = wid + (m - 1);
bsize = (n + 3)*swid;
*** 539,549 ****
if ((bsize > BUFF_SIZE) || (n > MAX_N)) {
pbuff = mlib_malloc(sizeof(FTYPE)*bsize + sizeof(FTYPE *)*2*(n + 1));
if (pbuff == NULL) {
status = MLIB_FAILURE;
! FREE_AND_RETURN_STATUS;
}
buffs = (FTYPE **)(pbuff + bsize);
}
for (l = 0; l < (n + 1); l++) buffs[l] = pbuff + l*swid;
--- 539,549 ----
if ((bsize > BUFF_SIZE) || (n > MAX_N)) {
pbuff = mlib_malloc(sizeof(FTYPE)*bsize + sizeof(FTYPE *)*2*(n + 1));
if (pbuff == NULL) {
status = MLIB_FAILURE;
! FREE_AND_RETURN_STATUS
}
buffs = (FTYPE **)(pbuff + bsize);
}
for (l = 0; l < (n + 1); l++) buffs[l] = pbuff + l*swid;
*** 944,954 ****
if (buff_ind >= n + 1) buff_ind = 0;
}
}
! FREE_AND_RETURN_STATUS;
}
/***************************************************************/
#ifndef __sparc /* for x86, using integer multiplies is faster */
--- 944,954 ----
if (buff_ind >= n + 1) buff_ind = 0;
}
}
! FREE_AND_RETURN_STATUS
}
/***************************************************************/
#ifndef __sparc /* for x86, using integer multiplies is faster */
< prev index next >