From 40010822a28d18880455ce15a1c344356282f9fa Mon Sep 17 00:00:00 2001 From: dcommander Date: Tue, 22 Feb 2011 06:41:29 +0000 Subject: Make the scaling API a bit more friendly git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@422 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- trunk/turbojpeg-jni.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'trunk/turbojpeg-jni.c') diff --git a/trunk/turbojpeg-jni.c b/trunk/turbojpeg-jni.c index 1ab5e28..892e51b 100644 --- a/trunk/turbojpeg-jni.c +++ b/trunk/turbojpeg-jni.c @@ -169,7 +169,7 @@ JNIEXPORT jobject JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompr JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress (JNIEnv *env, jobject obj, jbyteArray src, jlong size, jbyteArray dst, - jint pitch, jint pixelsize, jint scale_num, jint scale_denom, jint flags) + jint width, jint pitch, jint height, jint pixelsize, jint flags) { tjhandle handle=0; unsigned char *srcbuf=NULL, *dstbuf=NULL; @@ -179,8 +179,8 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress bailif0(srcbuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); bailif0(dstbuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0)); - if(tjDecompress2(handle, srcbuf, (unsigned long)size, dstbuf, pitch, - pixelsize, scale_num, scale_denom, flags)==-1) + if(tjDecompress(handle, srcbuf, (unsigned long)size, dstbuf, width, pitch, + height, pixelsize, flags)==-1) { (*env)->ReleasePrimitiveArrayCritical(env, dst, dstbuf, 0); (*env)->ReleasePrimitiveArrayCritical(env, src, srcbuf, 0); -- cgit v1.2.3