Unused variables
This commit is contained in:
@@ -81,7 +81,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_init
|
|||||||
jfieldID fid;
|
jfieldID fid;
|
||||||
tjhandle handle;
|
tjhandle handle;
|
||||||
|
|
||||||
if((handle=tjInitCompress())==NULL)
|
if((handle=tjInitCompress())==NULL)
|
||||||
_throw(tjGetErrorStr());
|
_throw(tjGetErrorStr());
|
||||||
|
|
||||||
bailif0(cls=(*env)->GetObjectClass(env, obj));
|
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)
|
jint height, jint pf, jbyteArray dst, jint jpegsubsamp, jint flags)
|
||||||
{
|
{
|
||||||
tjhandle handle=0; int pixelsize;
|
tjhandle handle=0; int pixelsize;
|
||||||
unsigned long size=0;
|
|
||||||
unsigned char *srcbuf=NULL, *dstbuf=NULL;
|
unsigned char *srcbuf=NULL, *dstbuf=NULL;
|
||||||
|
|
||||||
gethandle();
|
gethandle();
|
||||||
@@ -196,7 +195,6 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___
|
|||||||
jint height, jint pf, jbyteArray dst, jint jpegsubsamp, jint flags)
|
jint height, jint pf, jbyteArray dst, jint jpegsubsamp, jint flags)
|
||||||
{
|
{
|
||||||
tjhandle handle=0;
|
tjhandle handle=0;
|
||||||
unsigned long size=0;
|
|
||||||
unsigned char *srcbuf=NULL, *dstbuf=NULL;
|
unsigned char *srcbuf=NULL, *dstbuf=NULL;
|
||||||
|
|
||||||
gethandle();
|
gethandle();
|
||||||
@@ -245,7 +243,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_init
|
|||||||
jfieldID fid;
|
jfieldID fid;
|
||||||
tjhandle handle;
|
tjhandle handle;
|
||||||
|
|
||||||
if((handle=tjInitDecompress())==NULL) _throw(tjGetErrorStr());
|
if((handle=tjInitDecompress())==NULL) _throw(tjGetErrorStr());
|
||||||
|
|
||||||
bailif0(cls=(*env)->GetObjectClass(env, obj));
|
bailif0(cls=(*env)->GetObjectClass(env, obj));
|
||||||
bailif0(fid=(*env)->GetFieldID(env, cls, "handle", "J"));
|
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,
|
(JNIEnv *env, jobject obj, jbyteArray src, jint size, jintArray dst,
|
||||||
jint width, jint pitch, jint height, jint pf, jint flags)
|
jint width, jint pitch, jint height, jint pf, jint flags)
|
||||||
{
|
{
|
||||||
tjhandle handle=0; int ps;
|
tjhandle handle=0;
|
||||||
unsigned char *srcbuf=NULL, *dstbuf=NULL;
|
unsigned char *srcbuf=NULL, *dstbuf=NULL;
|
||||||
|
|
||||||
gethandle();
|
gethandle();
|
||||||
@@ -359,7 +357,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress
|
|||||||
bailif0(dstbuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0));
|
bailif0(dstbuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0));
|
||||||
|
|
||||||
if(tjDecompress(handle, srcbuf, (unsigned long)size, dstbuf, width,
|
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, dst, dstbuf, 0);
|
||||||
(*env)->ReleasePrimitiveArrayCritical(env, src, srcbuf, 0);
|
(*env)->ReleasePrimitiveArrayCritical(env, src, srcbuf, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user