jint flags)
{
tjhandle handle=0; int pixelsize;
- unsigned long size=0, arraysize=0;
+ unsigned long size=0; jsize arraysize=0;
unsigned char *srcbuf=NULL, *dstbuf=NULL;
gethandle();
arraysize=(pitch==0)? width*pixelsize*height:pitch*height;
if((*env)->GetArrayLength(env, src)<arraysize)
_throw("Source buffer is not large enough");
- if((*env)->GetArrayLength(env, dst)<TJBUFSIZE(width, height))
+ if((*env)->GetArrayLength(env, dst)<(jsize)TJBUFSIZE(width, height))
_throw("Destination buffer is not large enough");
bailif0(srcbuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));
jint flags)
{
tjhandle handle=0;
- unsigned long size=0, arraysize=0;
+ unsigned long size=0; jsize arraysize=0;
unsigned char *srcbuf=NULL, *dstbuf=NULL;
gethandle();
arraysize=(pitch==0)? width*height:pitch*height;
if((*env)->GetArrayLength(env, src)<arraysize)
_throw("Source buffer is not large enough");
- if((*env)->GetArrayLength(env, dst)<TJBUFSIZE(width, height))
+ if((*env)->GetArrayLength(env, dst)<(jsize)TJBUFSIZE(width, height))
_throw("Destination buffer is not large enough");
bailif0(srcbuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));
jint height, jint pf, jbyteArray dst, jint subsamp, jint flags)
{
tjhandle handle=0; int pixelsize;
- unsigned long arraysize=0;
+ jsize arraysize=0;
unsigned char *srcbuf=NULL, *dstbuf=NULL;
gethandle();
arraysize=(pitch==0)? width*pixelsize*height:pitch*height;
if((*env)->GetArrayLength(env, src)<arraysize)
_throw("Source buffer is not large enough");
- if((*env)->GetArrayLength(env, dst)<TJBUFSIZEYUV(width, height, subsamp))
+ if((*env)->GetArrayLength(env, dst)
+ <(jsize)TJBUFSIZEYUV(width, height, subsamp))
_throw("Destination buffer is not large enough");
bailif0(srcbuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));
jint height, jint pf, jbyteArray dst, jint subsamp, jint flags)
{
tjhandle handle=0;
- unsigned long arraysize=0;
+ jsize arraysize=0;
unsigned char *srcbuf=NULL, *dstbuf=NULL;
gethandle();
arraysize=(pitch==0)? width*height:pitch*height;
if((*env)->GetArrayLength(env, src)<arraysize)
_throw("Source buffer is not large enough");
- if((*env)->GetArrayLength(env, dst)<TJBUFSIZEYUV(width, height, subsamp))
+ if((*env)->GetArrayLength(env, dst)
+ <(jsize)TJBUFSIZEYUV(width, height, subsamp))
_throw("Destination buffer is not large enough");
bailif0(srcbuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));
jint width, jint pitch, jint height, jint pf, jint flags)
{
tjhandle handle=0; int pixelsize;
- unsigned long arraysize=0;
+ jsize arraysize=0;
unsigned char *srcbuf=NULL, *dstbuf=NULL;
gethandle();
jint width, jint pitch, jint height, jint pf, jint flags)
{
tjhandle handle=0;
- unsigned long arraysize=0;
+ jsize arraysize=0;
unsigned char *srcbuf=NULL, *dstbuf=NULL;
gethandle();
bailif0(_fid=(*env)->GetFieldID(env, _cls, "jpegHeight", "I"));
jpegHeight=(int)(*env)->GetIntField(env, obj, _fid);
if((*env)->GetArrayLength(env, dst)
- <TJBUFSIZEYUV(jpegWidth, jpegHeight, jpegSubsamp))
+ <(jsize)TJBUFSIZEYUV(jpegWidth, jpegHeight, jpegSubsamp))
_throw("Destination buffer is not large enough");
bailif0(srcbuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));