aboutsummaryrefslogtreecommitdiff
path: root/turbojpeg-jni.c
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-02-28 10:51:55 +0000
committerDRC <dcommander@users.sourceforge.net>2011-02-28 10:51:55 +0000
commit1a3dbe6fba2e05092d64615a1a2625b5a37456ec (patch)
tree3a9628f59b067042ccd8499b6ff422f6bb959392 /turbojpeg-jni.c
parent23f2bbaedacc503e8465897d2e0f123bab19f762 (diff)
downloadlibjpeg-turbo-1a3dbe6fba2e05092d64615a1a2625b5a37456ec.tar.gz
Unused variables
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@473 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'turbojpeg-jni.c')
-rw-r--r--turbojpeg-jni.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/turbojpeg-jni.c b/turbojpeg-jni.c
index dbf0449f..db1118cc 100644
--- a/turbojpeg-jni.c
+++ b/turbojpeg-jni.c
@@ -81,7 +81,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_init
jfieldID fid;
tjhandle handle;
- if((handle=tjInitCompress())==NULL)
+ if((handle=tjInitCompress())==NULL)
_throw(tjGetErrorStr());
bailif0(cls=(*env)->GetObjectClass(env, obj));
@@ -164,7 +164,6 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___
jint height, jint pf, jbyteArray dst, jint jpegsubsamp, jint flags)
{
tjhandle handle=0; int pixelsize;
- unsigned long size=0;
unsigned char *srcbuf=NULL, *dstbuf=NULL;
gethandle();
@@ -196,7 +195,6 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___
jint height, jint pf, jbyteArray dst, jint jpegsubsamp, jint flags)
{
tjhandle handle=0;
- unsigned long size=0;
unsigned char *srcbuf=NULL, *dstbuf=NULL;
gethandle();
@@ -245,7 +243,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_init
jfieldID fid;
tjhandle handle;
- if((handle=tjInitDecompress())==NULL) _throw(tjGetErrorStr());
+ if((handle=tjInitDecompress())==NULL) _throw(tjGetErrorStr());
bailif0(cls=(*env)->GetObjectClass(env, obj));
bailif0(fid=(*env)->GetFieldID(env, cls, "handle", "J"));
@@ -344,7 +342,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress
(JNIEnv *env, jobject obj, jbyteArray src, jint size, jintArray dst,
jint width, jint pitch, jint height, jint pf, jint flags)
{
- tjhandle handle=0; int ps;
+ tjhandle handle=0;
unsigned char *srcbuf=NULL, *dstbuf=NULL;
gethandle();
@@ -359,7 +357,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress
bailif0(dstbuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0));
if(tjDecompress(handle, srcbuf, (unsigned long)size, dstbuf, width,
- pitch*sizeof(jint), height, sizeof(jint), flags)==-1)
+ pitch*sizeof(jint), height, sizeof(jint), flags)==-1)
{
(*env)->ReleasePrimitiveArrayCritical(env, dst, dstbuf, 0);
(*env)->ReleasePrimitiveArrayCritical(env, src, srcbuf, 0);