summaryrefslogtreecommitdiff
path: root/trunk/turbojpeg-jni.c
diff options
context:
space:
mode:
authordcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2011-02-22 06:41:29 +0000
committerdcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2011-02-22 06:41:29 +0000
commit40010822a28d18880455ce15a1c344356282f9fa (patch)
tree3fd0e81bb805abc82c162bfcc67bd88a9fb93455 /trunk/turbojpeg-jni.c
parentba17ea224c9744a9c2eb065ee7de6307ed021ff8 (diff)
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
Diffstat (limited to 'trunk/turbojpeg-jni.c')
-rw-r--r--trunk/turbojpeg-jni.c6
1 files changed, 3 insertions, 3 deletions
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);