< prev index next >

src/java.desktop/share/native/libmlib_image/mlib_ImageConv_u16nw.c

Print this page

        

*** 482,502 **** k[i] = kernel[i]*fscale; } if (m == 1) { status = mlib_ImageConv1xN(dst, src, k, n, dn, cmask); ! FREE_AND_RETURN_STATUS; } bsize = (n + 3)*wid; 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*wid; --- 482,502 ---- k[i] = kernel[i]*fscale; } if (m == 1) { status = mlib_ImageConv1xN(dst, src, k, n, dn, cmask); ! FREE_AND_RETURN_STATUS } bsize = (n + 3)*wid; 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*wid;
*** 847,857 **** if (buff_ind >= n + 1) buff_ind = 0; } } ! FREE_AND_RETURN_STATUS; } /***************************************************************/ #ifndef __sparc /* for x86, using integer multiplies is faster */ --- 847,857 ---- if (buff_ind >= n + 1) buff_ind = 0; } } ! FREE_AND_RETURN_STATUS } /***************************************************************/ #ifndef __sparc /* for x86, using integer multiplies is faster */
< prev index next >