Remove trailing spaces (+ one additional tab in TJUnitTest.java that was missed in the previous commit)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1279 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
2
bmp.c
2
bmp.c
@@ -98,7 +98,7 @@ static void pixelconvert(unsigned char *srcbuf, int srcpf, int srcbottomup,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int loadbmp(char *filename, unsigned char **buf, int *w, int *h,
|
int loadbmp(char *filename, unsigned char **buf, int *w, int *h,
|
||||||
int dstpf, int bottomup)
|
int dstpf, int bottomup)
|
||||||
{
|
{
|
||||||
int retval=0, dstps, srcpf, tempc;
|
int retval=0, dstps, srcpf, tempc;
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ public class TJUnitTest {
|
|||||||
index = row * w + col;
|
index = row * w + col;
|
||||||
byte c = buf[index * ps];
|
byte c = buf[index * ps];
|
||||||
byte m = buf[index * ps + 1];
|
byte m = buf[index * ps + 1];
|
||||||
byte y = buf[index * ps + 2];
|
byte y = buf[index * ps + 2];
|
||||||
byte k = buf[index * ps + 3];
|
byte k = buf[index * ps + 3];
|
||||||
checkVal255(row, col, c, "C");
|
checkVal255(row, col, c, "C");
|
||||||
if (((row / blockSize) + (col / blockSize)) % 2 == 0) {
|
if (((row / blockSize) + (col / blockSize)) % 2 == 0) {
|
||||||
@@ -673,7 +673,7 @@ public class TJUnitTest {
|
|||||||
tjc.setSubsamp(subsamp);
|
tjc.setSubsamp(subsamp);
|
||||||
tjc.setJPEGQuality(jpegQual);
|
tjc.setJPEGQuality(jpegQual);
|
||||||
if (doYUV) {
|
if (doYUV) {
|
||||||
System.out.format("%s %s -> YUV %s ... ", pfStrLong, buStrLong,
|
System.out.format("%s %s -> YUV %s ... ", pfStrLong, buStrLong,
|
||||||
subNameLong[subsamp]);
|
subNameLong[subsamp]);
|
||||||
YUVImage yuvImage = tjc.encodeYUV(pad, flags);
|
YUVImage yuvImage = tjc.encodeYUV(pad, flags);
|
||||||
if (checkBufYUV(yuvImage.getBuf(), yuvImage.getSize(), w, h, subsamp,
|
if (checkBufYUV(yuvImage.getBuf(), yuvImage.getSize(), w, h, subsamp,
|
||||||
|
|||||||
2
jsimd.h
2
jsimd.h
@@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
||||||
* Copyright 2011 D. R. Commander
|
* Copyright 2011 D. R. Commander
|
||||||
*
|
*
|
||||||
* Based on the x86 SIMD extension for IJG JPEG library,
|
* Based on the x86 SIMD extension for IJG JPEG library,
|
||||||
* Copyright (C) 1999-2006, MIYASAKA Masaru.
|
* Copyright (C) 1999-2006, MIYASAKA Masaru.
|
||||||
* For conditions of distribution and use, see copyright notice in jsimdext.inc
|
* For conditions of distribution and use, see copyright notice in jsimdext.inc
|
||||||
|
|||||||
10
jsimd_none.c
10
jsimd_none.c
@@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
||||||
* Copyright 2009-2011 D. R. Commander
|
* Copyright 2009-2011 D. R. Commander
|
||||||
*
|
*
|
||||||
* Based on the x86 SIMD extension for IJG JPEG library,
|
* Based on the x86 SIMD extension for IJG JPEG library,
|
||||||
* Copyright (C) 1999-2006, MIYASAKA Masaru.
|
* Copyright (C) 1999-2006, MIYASAKA Masaru.
|
||||||
* For conditions of distribution and use, see copyright notice in jsimdext.inc
|
* For conditions of distribution and use, see copyright notice in jsimdext.inc
|
||||||
@@ -95,7 +95,7 @@ jsimd_can_h2v1_upsample (void)
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -103,7 +103,7 @@ jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v1_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v1_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -123,7 +123,7 @@ jsimd_can_h2v1_fancy_upsample (void)
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -131,7 +131,7 @@ jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* jsimddct.h
|
* jsimddct.h
|
||||||
*
|
*
|
||||||
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
||||||
*
|
*
|
||||||
* Based on the x86 SIMD extension for IJG JPEG library,
|
* Based on the x86 SIMD extension for IJG JPEG library,
|
||||||
* Copyright (C) 1999-2006, MIYASAKA Masaru.
|
* Copyright (C) 1999-2006, MIYASAKA Masaru.
|
||||||
* For conditions of distribution and use, see copyright notice in jsimdext.inc
|
* For conditions of distribution and use, see copyright notice in jsimdext.inc
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ libsimd_la_SOURCES = jsimd_mips.c jsimd_mips_dspr2_asm.h jsimd_mips_dspr2.S
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
AM_CPPFLAGS = -I$(top_srcdir)
|
AM_CPPFLAGS = -I$(top_srcdir)
|
||||||
|
|
||||||
.asm.lo:
|
.asm.lo:
|
||||||
$(LIBTOOL) --mode=compile --tag NASM $(srcdir)/nasm_lt.sh $(NASM) $(NAFLAGS) -I$(srcdir) -I. $< -o $@
|
$(LIBTOOL) --mode=compile --tag NASM $(srcdir)/nasm_lt.sh $(NASM) $(NAFLAGS) -I$(srcdir) -I. $< -o $@
|
||||||
|
|||||||
@@ -311,7 +311,7 @@ jsimd_can_h2v1_upsample (void)
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -319,7 +319,7 @@ jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v1_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v1_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -352,7 +352,7 @@ jsimd_can_h2v1_fancy_upsample (void)
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -360,7 +360,7 @@ jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ jsimd_can_h2v1_upsample (void)
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -274,7 +274,7 @@ jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v1_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v1_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -298,7 +298,7 @@ jsimd_can_h2v1_fancy_upsample (void)
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -306,7 +306,7 @@ jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
||||||
* Copyright 2009-2011, 2013 D. R. Commander
|
* Copyright 2009-2011, 2013 D. R. Commander
|
||||||
*
|
*
|
||||||
* Based on the x86 SIMD extension for IJG JPEG library,
|
* Based on the x86 SIMD extension for IJG JPEG library,
|
||||||
* Copyright (C) 1999-2006, MIYASAKA Masaru.
|
* Copyright (C) 1999-2006, MIYASAKA Masaru.
|
||||||
* For conditions of distribution and use, see copyright notice in jsimdext.inc
|
* For conditions of distribution and use, see copyright notice in jsimdext.inc
|
||||||
@@ -395,7 +395,7 @@ jsimd_can_h2v1_upsample (void)
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -409,7 +409,7 @@ jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v1_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v1_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -463,7 +463,7 @@ jsimd_can_h2v1_fancy_upsample (void)
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -478,7 +478,7 @@ jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
||||||
* Copyright 2009-2011 D. R. Commander
|
* Copyright 2009-2011 D. R. Commander
|
||||||
*
|
*
|
||||||
* Based on the x86 SIMD extension for IJG JPEG library,
|
* Based on the x86 SIMD extension for IJG JPEG library,
|
||||||
* Copyright (C) 1999-2006, MIYASAKA Masaru.
|
* Copyright (C) 1999-2006, MIYASAKA Masaru.
|
||||||
* For conditions of distribution and use, see copyright notice in jsimdext.inc
|
* For conditions of distribution and use, see copyright notice in jsimdext.inc
|
||||||
@@ -269,7 +269,7 @@ jsimd_can_h2v1_upsample (void)
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -280,7 +280,7 @@ jsimd_h2v2_upsample (j_decompress_ptr cinfo,
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v1_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v1_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -321,7 +321,7 @@ jsimd_can_h2v1_fancy_upsample (void)
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
@@ -332,7 +332,7 @@ jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
|
|||||||
|
|
||||||
GLOBAL(void)
|
GLOBAL(void)
|
||||||
jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
|
jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
|
||||||
jpeg_component_info * compptr,
|
jpeg_component_info * compptr,
|
||||||
JSAMPARRAY input_data,
|
JSAMPARRAY input_data,
|
||||||
JSAMPARRAY * output_data_ptr)
|
JSAMPARRAY * output_data_ptr)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ int decomp(unsigned char *srcbuf, unsigned char **jpegbuf,
|
|||||||
dstbuf[bindex]=abs(dstbuf[bindex]-y);
|
dstbuf[bindex]=abs(dstbuf[bindex]-y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for(row=0; row<h; row++)
|
for(row=0; row<h; row++)
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ for image in $IMAGES; do
|
|||||||
|
|
||||||
cp $IMGDIR/$image $OUTDIR
|
cp $IMGDIR/$image $OUTDIR
|
||||||
basename=`basename $image .bmp`
|
basename=`basename $image .bmp`
|
||||||
runme $EXEDIR/cjpeg -quality 95 -dct fast -grayscale -outfile $OUTDIR/${basename}_GRAY_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
|
runme $EXEDIR/cjpeg -quality 95 -dct fast -grayscale -outfile $OUTDIR/${basename}_GRAY_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
|
||||||
runme $EXEDIR/cjpeg -quality 95 -dct fast -sample 2x2 -outfile $OUTDIR/${basename}_420_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
|
runme $EXEDIR/cjpeg -quality 95 -dct fast -sample 2x2 -outfile $OUTDIR/${basename}_420_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
|
||||||
runme $EXEDIR/cjpeg -quality 95 -dct fast -sample 2x1 -outfile $OUTDIR/${basename}_422_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
|
runme $EXEDIR/cjpeg -quality 95 -dct fast -sample 2x1 -outfile $OUTDIR/${basename}_422_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
|
||||||
runme $EXEDIR/cjpeg -quality 95 -dct fast -sample 1x1 -outfile $OUTDIR/${basename}_444_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
|
runme $EXEDIR/cjpeg -quality 95 -dct fast -sample 1x1 -outfile $OUTDIR/${basename}_444_fast_cjpeg.jpg $IMGDIR/${basename}.bmp
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress
|
|||||||
|
|
||||||
bailif0(jpegBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));
|
bailif0(jpegBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));
|
||||||
|
|
||||||
if(tjDecompressHeader3(handle, jpegBuf, (unsigned long)jpegSize,
|
if(tjDecompressHeader3(handle, jpegBuf, (unsigned long)jpegSize,
|
||||||
&width, &height, &jpegSubsamp, &jpegColorspace)==-1)
|
&width, &height, &jpegSubsamp, &jpegColorspace)==-1)
|
||||||
{
|
{
|
||||||
(*env)->ReleasePrimitiveArrayCritical(env, src, jpegBuf, 0);
|
(*env)->ReleasePrimitiveArrayCritical(env, src, jpegBuf, 0);
|
||||||
@@ -550,7 +550,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress
|
|||||||
{
|
{
|
||||||
Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIIIII
|
Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIIIII
|
||||||
(env, obj, src, jpegSize, dst, 0, 0, width, stride, height, pf, flags);
|
(env, obj, src, jpegSize, dst, 0, 0, width, stride, height, pf, flags);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BIIII
|
JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BIIII
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ TURBOJPEG_1.2
|
|||||||
Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIII;
|
Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIII;
|
||||||
Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIII;
|
Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIII;
|
||||||
Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI;
|
Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI;
|
||||||
Java_org_libjpegturbo_turbojpeg_TJDecompressor_destroy;
|
Java_org_libjpegturbo_turbojpeg_TJDecompressor_destroy;
|
||||||
Java_org_libjpegturbo_turbojpeg_TJTransformer_init;
|
Java_org_libjpegturbo_turbojpeg_TJTransformer_init;
|
||||||
Java_org_libjpegturbo_turbojpeg_TJTransformer_transform;
|
Java_org_libjpegturbo_turbojpeg_TJTransformer_transform;
|
||||||
} TURBOJPEG_1.1;
|
} TURBOJPEG_1.1;
|
||||||
|
|||||||
@@ -563,7 +563,7 @@ typedef void* tjhandle;
|
|||||||
/**
|
/**
|
||||||
* Compute the scaled value of <tt>dimension</tt> using the given scaling
|
* Compute the scaled value of <tt>dimension</tt> using the given scaling
|
||||||
* factor. This macro performs the integer equivalent of <tt>ceil(dimension *
|
* factor. This macro performs the integer equivalent of <tt>ceil(dimension *
|
||||||
* scalingFactor)</tt>.
|
* scalingFactor)</tt>.
|
||||||
*/
|
*/
|
||||||
#define TJSCALED(dimension, scalingFactor) ((dimension * scalingFactor.num \
|
#define TJSCALED(dimension, scalingFactor) ((dimension * scalingFactor.num \
|
||||||
+ scalingFactor.denom - 1) / scalingFactor.denom)
|
+ scalingFactor.denom - 1) / scalingFactor.denom)
|
||||||
@@ -1063,7 +1063,7 @@ DLLEXPORT int DLLCALL tjDestroy(tjhandle handle);
|
|||||||
* (re)allocation (by setting #TJFLAG_NOREALLOC.)
|
* (re)allocation (by setting #TJFLAG_NOREALLOC.)
|
||||||
*
|
*
|
||||||
* @param bytes the number of bytes to allocate
|
* @param bytes the number of bytes to allocate
|
||||||
*
|
*
|
||||||
* @return a pointer to a newly-allocated buffer with the specified number of
|
* @return a pointer to a newly-allocated buffer with the specified number of
|
||||||
* bytes
|
* bytes
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user