~rsalveti/libjpeg-turbo/libjpeg-turbo-trunk

  • Committer: dcommander
  • Date: 2015-07-14 20:42:52 UTC
  • Revision ID: svn-v4:632fc199-4ca6-4c93-a231-07263d6284db:trunk:1595
Throw idiomatic unchecked exceptions from the Java classes and JNI wrapper if there is an unrecoverable error caused by incorrect API usage (such as illegal arguments, etc.), and throw Errors if there is an unrecoverable error at the C level (such as a failed malloc() call.)

Change the behavior of the bailif0() macro in the JNI wrapper so that it doesn't throw an exception for an unexpected NULL condition.  In fact, in all cases, the underlying JNI API function (such as GetFieldID(), etc.) will throw an Error on its own whenever it returns NULL, so our custom exceptions were never being thrown in that case anyhow.  All we need to do is just detect the error and bail out of the C code.

This also corrects a couple of formatting issues (semicolons aren't needed at the end of class definitions, and @Override should be specified for the methods we're overriding from super-classes, so the compiler can sanity-check that we're actually overriding a method and not declaring a new one.)
Filename Latest Rev Last Changed Committer Comment Size
..
cmakescripts 250 13 years ago dcommander First pass at a CMake build system Diff
doc 499 13 years ago dcommander Completely refactored the TurboJPEG C API so that Diff
java 319 13 years ago dcommander Add JNI wrapper for TurboJPEG/OSS Diff
md5 718 11 years ago dcommander Include a C version of md5cmp rather than dependin Diff
release 97 14 years ago dcommander Add mechanism for creating RPMs Diff
sharedlib 250 13 years ago dcommander First pass at a CMake build system Diff
simd 14 15 years ago ossman_ Implement x86 SIMD framework Add NASM support and Diff
testimages 617 12 years ago dcommander Move test images into their own subdirectory Diff
win 4 15 years ago astrand This should be the final modification to restore a Diff
acinclude.m4 959 9 years ago dcommander Properly detect the need for gas-preprocessor.pl w 5.7 KB Diff Download File
bmp.c 1054 9 years ago dcommander Add the ability to benchmark YCCK JPEG compression 9.6 KB Diff Download File
bmp.h 760 10 years ago dcommander Remove stray closing bracket that prevented the us 1.8 KB Diff Download File
BUILDING.txt 1085 9 years ago dcommander The Linux build machine has been upgraded to autoc 31 KB Diff Download File
cderror.h 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 5.2 KB Diff Download File
cdjpeg.c 928 10 years ago dcommander Remove MS-DOS code and information, and adjust cop 3.9 KB Diff Download File
cdjpeg.h 935 10 years ago dcommander Remove VMS-specific code 5 KB Diff Download File
change.log 681 11 years ago dcommander We now support the additional decompression scalin 11.6 KB Diff Download File
ChangeLog.txt 1098 8 years ago dcommander Throw idiomatic unchecked exceptions from the Java 34 KB Diff Download File
cjpeg.1 997 9 years ago dcommander Print the library version and exit whenever -versi 13.1 KB Diff Download File
cjpeg.c 998 9 years ago dcommander Fix whitespace issues introduced with previous com 21.2 KB Diff Download File
CMakeLists.txt 1091 8 years ago dcommander Add regression tests for jpeg_skip_scanlines(); ch 38.7 KB Diff Download File
coderules.txt 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 3.3 KB Diff Download File
configure.ac 1094 8 years ago dcommander Increment SO_AGE to reflect the addition of a new 18.2 KB Diff Download File
djpeg.1 1091 8 years ago dcommander Add regression tests for jpeg_skip_scanlines(); ch 9 KB Diff Download File
djpeg.c 1091 8 years ago dcommander Add regression tests for jpeg_skip_scanlines(); ch 24.5 KB Diff Download File
doxygen-extra.css 944 9 years ago dcommander Make the documentation more readable by displaying 27 bytes Diff Download File
doxygen.config 944 9 years ago dcommander Make the documentation more readable by displaying 401 bytes Diff Download File
example.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 16.8 KB Diff Download File
jaricom.c 292 13 years ago dcommander Support arithmetic encoding and decoding 4.9 KB Diff Download File
jcapimin.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 9.4 KB Diff Download File
jcapistd.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 5.7 KB Diff Download File
jcarith.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 28.8 KB Diff Download File
jccoefct.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 16.8 KB Diff Download File
jccolext.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 4.5 KB Diff Download File
jccolor.c 1061 9 years ago dcommander Introduce fast paths to speed up NULL color conver 23.3 KB Diff Download File
jcdctmgr.c 993 9 years ago dcommander Remove trailing spaces 21.2 KB Diff Download File
jchuff.c 1075 9 years ago dcommander __WORDSIZE doesn't seem to be available on platfor 32.5 KB Diff Download File
jchuff.h 928 10 years ago dcommander Remove MS-DOS code and information, and adjust cop 1.4 KB Diff Download File
jcinit.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 2.3 KB Diff Download File
jcmainct.c 1004 9 years ago dcommander Remove unused code 5 KB Diff Download File
jcmarker.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 17.1 KB Diff Download File
jcmaster.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 20.9 KB Diff Download File
jcomapi.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 3.1 KB Diff Download File
jconfig.h.in 1075 9 years ago dcommander __WORDSIZE doesn't seem to be available on platfor 2 KB Diff Download File
jconfig.txt 928 10 years ago dcommander Remove MS-DOS code and information, and adjust cop 4.7 KB Diff Download File
jconfigint.h.in 891 10 years ago dcommander This patch accomplishes the following: -- Auto-gen 216 bytes Diff Download File
jcparam.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 17.7 KB Diff Download File
jcphuff.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 25.3 KB Diff Download File
jcprepct.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 12.8 KB Diff Download File
jcsample.c 1003 9 years ago dcommander Fix build when INPUT_SMOOTHING_SUPPORTED is undefi 19.7 KB Diff Download File
jcstest.c 828 10 years ago dcommander Use C-style comments 3.7 KB Diff Download File
jctrans.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 14.5 KB Diff Download File
jdapimin.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 12.5 KB Diff Download File
jdapistd.c 1095 8 years ago dcommander Fix a memory leak in jpeg_skip_scanlines() 17.8 KB Diff Download File
jdarith.c 1087 8 years ago dcommander Add a new libjpeg API function (jpeg_skip_scanline 24.3 KB Diff Download File
jdatadst-tj.c 966 9 years ago dcommander Oops 6.3 KB Diff Download File
jdatadst.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 8.8 KB Diff Download File
jdatasrc-tj.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 6.4 KB Diff Download File
jdatasrc.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 9.5 KB Diff Download File
jdcoefct.c 1087 8 years ago dcommander Add a new libjpeg API function (jpeg_skip_scanline 24 KB Diff Download File
jdcoefct.h 1087 8 years ago dcommander Add a new libjpeg API function (jpeg_skip_scanline 2.6 KB Diff Download File
jdcol565.c 985 9 years ago dcommander Fix issues with RGB565 color conversion on big end 11.8 KB Diff Download File
jdcolext.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 4.3 KB Diff Download File
jdcolor.c 1061 9 years ago dcommander Introduce fast paths to speed up NULL color conver 28.4 KB Diff Download File
jdct.h 943 9 years ago dcommander 12-bit JPEG support 8.8 KB Diff Download File
jddctmgr.c 931 10 years ago dcommander SIMD-accelerated int upsample routine for MIPS DSP 11.1 KB Diff Download File
jdhuff.c 1087 8 years ago dcommander Add a new libjpeg API function (jpeg_skip_scanline 25.3 KB Diff Download File
jdhuff.h 1075 9 years ago dcommander __WORDSIZE doesn't seem to be available on platfor 9.1 KB Diff Download File
jdinput.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 13.9 KB Diff Download File
jdmainct.c 1087 8 years ago dcommander Add a new libjpeg API function (jpeg_skip_scanline 18.8 KB Diff Download File
jdmainct.h 1087 8 years ago dcommander Add a new libjpeg API function (jpeg_skip_scanline 2.3 KB Diff Download File
jdmarker.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 41.8 KB Diff Download File
jdmaster.c 1090 8 years ago dcommander Fix a couple of seg faults discovered when testing 27.1 KB Diff Download File
jdmerge.c 987 9 years ago dcommander When building libjpeg-turbo on Un*x systems, INT32 20.8 KB Diff Download File
jdmrg565.c 985 9 years ago dcommander Fix issues with RGB565 color conversion on big end 11.1 KB Diff Download File
jdmrgext.c 787 10 years ago dcommander Some of the IJG headers say "Modified by", so clar 5.8 KB Diff Download File
jdphuff.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 21.3 KB Diff Download File
jdpostct.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 10 KB Diff Download File
jdsample.c 1087 8 years ago dcommander Add a new libjpeg API function (jpeg_skip_scanline 15.9 KB Diff Download File
jdsample.h 1087 8 years ago dcommander Add a new libjpeg API function (jpeg_skip_scanline 1.7 KB Diff Download File
jdtrans.c 928 10 years ago dcommander Remove MS-DOS code and information, and adjust cop 5.3 KB Diff Download File
jerror.c 928 10 years ago dcommander Remove MS-DOS code and information, and adjust cop 7.7 KB Diff Download File
jerror.h 934 10 years ago dcommander Our copyright string is longer than JMSG_LENGTH_MA 14.7 KB Diff Download File
jfdctflt.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 5.4 KB Diff Download File
jfdctfst.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 7.4 KB Diff Download File
jfdctint.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 11.1 KB Diff Download File
jidctflt.c 911 10 years ago dcommander Port the more accurate (and slightly faster) float 8.4 KB Diff Download File
jidctfst.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 13.2 KB Diff Download File
jidctint.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 102 KB Diff Download File
jidctred.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 13.7 KB Diff Download File
jinclude.h 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 2.8 KB Diff Download File
jmemmgr.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 42.8 KB Diff Download File
jmemnobs.c 928 10 years ago dcommander Remove MS-DOS code and information, and adjust cop 2.6 KB Diff Download File
jmemsys.h 928 10 years ago dcommander Remove MS-DOS code and information, and adjust cop 7.6 KB Diff Download File
jmorecfg.h 1096 8 years ago dcommander Add additional protections against defining INT32 13.4 KB Diff Download File
jpeg_nbits_table.h 880 10 years ago dcommander Integrate a slightly modified version of Mozilla's 264 KB Diff Download File
jpegcomp.h 612 12 years ago dcommander Support additional scaling factors when decompress 1 KB Diff Download File
jpegint.h 1087 8 years ago dcommander Add a new libjpeg API function (jpeg_skip_scanline 14.9 KB Diff Download File
jpeglib.h 1087 8 years ago dcommander Add a new libjpeg API function (jpeg_skip_scanline 48.5 KB Diff Download File
jpegtran.1 997 9 years ago dcommander Print the library version and exit whenever -versi 8.4 KB Diff Download File
jpegtran.c 998 9 years ago dcommander Fix whitespace issues introduced with previous com 18.3 KB Diff Download File
jquant1.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 31.6 KB Diff Download File
jquant2.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 47.6 KB Diff Download File
jsimd.h 977 9 years ago dcommander ARM NEON SIMD support for YCC-to-RGB565 conversion 3.3 KB Diff Download File
jsimd_none.c 977 9 years ago dcommander ARM NEON SIMD support for YCC-to-RGB565 conversion 7 KB Diff Download File
jsimddct.h 925 10 years ago dcommander Get rid of the HAVE_PROTOTYPES configuration optio 3.1 KB Diff Download File
jstdhuff.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 5.1 KB Diff Download File
jutils.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 3.7 KB Diff Download File
jversion.h 1040 9 years ago dcommander Bump copyright year 1.1 KB Diff Download File
libjpeg.map.in 706 11 years ago dcommander Implement in-memory source/destination managers ev 164 bytes Diff Download File
libjpeg.txt 1087 8 years ago dcommander Add a new libjpeg API function (jpeg_skip_scanline 161 KB Diff Download File
Makefile.am 1091 8 years ago dcommander Add regression tests for jpeg_skip_scanlines(); ch 32.1 KB Diff Download File
rdbmp.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 15 KB Diff Download File
rdcolmap.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 6.8 KB Diff Download File
rdgif.c 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 1.2 KB Diff Download File
rdjpgcom.1 239 13 years ago dcommander Add -raw option to rdjpgcom for outputting non-pri 1.6 KB Diff Download File
rdjpgcom.c 935 10 years ago dcommander Remove VMS-specific code 14.7 KB Diff Download File
rdppm.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 13.6 KB Diff Download File
rdrle.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 11.4 KB Diff Download File
rdswitch.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 12.6 KB Diff Download File
rdtarga.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 14.9 KB Diff Download File
README 1012 9 years ago dcommander Remove reference to install.txt, which we do not i 13.5 KB Diff Download File
File README-turbo.txt 1060 9 years ago dcommander Some clarifications (actually MIPS doesn't impleme 17.9 KB Diff Download File
structure.txt 928 10 years ago dcommander Remove MS-DOS code and information, and adjust cop 48.7 KB Diff Download File
tjbench.c 1054 9 years ago dcommander Add the ability to benchmark YCCK JPEG compression 30.3 KB Diff Download File
File tjbenchtest.in 968 9 years ago dcommander Extend tjbenchtest so that it tests the dynamic JP 11.3 KB Diff Download File
File tjbenchtest.java.in 967 9 years ago dcommander Run the TurboJPEG conformance tests out of a direc 9.6 KB Diff Download File
File tjexampletest.in 664 11 years ago dcommander Add flags to the TurboJPEG API that allow the call 7.6 KB Diff Download File
tjunittest.c 976 9 years ago dcommander Ensure that tjFree() is used for any JPEG buffers 18.5 KB Diff Download File
tjutil.c 519 13 years ago dcommander Fix build on Windows 2.1 KB Diff Download File
tjutil.h 507 13 years ago dcommander Add max, min functions 1.9 KB Diff Download File
transupp.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 60.6 KB Diff Download File
transupp.h 928 10 years ago dcommander Remove MS-DOS code and information, and adjust cop 9.3 KB Diff Download File
turbojpeg-jni.c 1098 8 years ago dcommander Throw idiomatic unchecked exceptions from the Java 41.3 KB Diff Download File
File turbojpeg-mapfile 1000 9 years ago dcommander Oops. Include the tjPlane*() functions in the map 794 bytes Diff Download File
File turbojpeg-mapfile.jni 1000 9 years ago dcommander Oops. Include the tjPlane*() functions in the map 2.8 KB Diff Download File
turbojpeg.c 1081 9 years ago dcommander Now that the TurboJPEG API is reporting libjpeg wa 60.3 KB Diff Download File
turbojpeg.h 1082 9 years ago dcommander Clarify that the TurboJPEG API functions/methods d 63.5 KB Diff Download File
usage.txt 914 10 years ago dcommander Document -rgb option in djpeg man page; "gray-sca 34.8 KB Diff Download File
wizard.txt 905 10 years ago dcommander Convert tabs to spaces in the libjpeg code and the 10 KB Diff Download File
wrbmp.c 986 9 years ago dcommander Fix Windows build 15.2 KB Diff Download File
wrgif.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 12.9 KB Diff Download File
wrjpgcom.1 80 14 years ago dcommander Re-add relevant files and tests from libjpeg v6b 2.5 KB Diff Download File
wrjpgcom.c 936 9 years ago dcommander Prevent a buffer overrun if the comment begins wit 17.5 KB Diff Download File
wrppm.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 8 KB Diff Download File
wrrle.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 9.1 KB Diff Download File
wrtarga.c 929 10 years ago dcommander libjpeg-turbo has never supported non-ANSI compile 7.2 KB Diff Download File