DRC [Tue, 15 Apr 2014 03:41:31 +0000 (03:41 +0000)]
wordsmithing
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1234
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 15 Apr 2014 03:07:44 +0000 (03:07 +0000)]
wordsmithing
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1233
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 28 Mar 2014 18:50:30 +0000 (18:50 +0000)]
Integrate a slightly modified version of Mozilla's patch for precomputing the bit-counting LUT. This is useful if the table needs to be shared among multiple processes, although the primary reason for doing that is reduced footprint on mobile devices, which are probably already covered by the clz intrinsic code.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1221
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 28 Mar 2014 18:33:25 +0000 (18:33 +0000)]
Use clz/bsr instructions on ARM for bit counting rather than the lookup table (reduces memory footprint and can improve performance in some cases.)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1220
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 27 Mar 2014 20:43:57 +0000 (20:43 +0000)]
Modify svn:ignore so that it lists only files generated in-tree by autoreconf -fiv. It's pretty much impossible to maintain an up-to-date list of files generated by the actual build, so we'll just assume that the user will do an out-of-tree build if they want to avoid cluttering up their 'svn status' display.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1218
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 27 Mar 2014 20:47:39 +0000 (20:47 +0000)]
Modify svn:ignore so that it lists only files generated in-tree by autoreconf -fiv. It's pretty much impossible to maintain an up-to-date list of files generated by the actual build, so we'll just assume that the user will do an out-of-tree build if they want to avoid cluttering up their 'svn status' display.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1219
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 27 Mar 2014 03:36:04 +0000 (03:36 +0000)]
Make iOS build instructions more generic and applicable to all versions of Xcode; modify iOS build procedure for Xcode 5.0 and later to fix a build issue with Xcode 5.1.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1217
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 27 Mar 2014 03:35:21 +0000 (03:35 +0000)]
Make iOS build instructions more generic and applicable to all versions of Xcode; modify iOS build procedure for Xcode 5.0 and later to fix a build issue with Xcode 5.1.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1216
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 25 Mar 2014 05:27:16 +0000 (05:27 +0000)]
Update build instructions to reflect the use of pkgbuild/productbuild
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1215
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sun, 23 Mar 2014 18:06:11 +0000 (18:06 +0000)]
Remove any claims of support for OS X 10.4 "Tiger" (the packaging system overhaul produces packages that require Leopard or later, and I haven't been able to test Tiger for years anyhow.) Update TurboJPEG shared library version.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1213
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sun, 23 Mar 2014 17:53:07 +0000 (17:53 +0000)]
Migrate Mac packaging system to pkgbuild, since PackageMaker is no longer supported.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1212
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sun, 23 Mar 2014 15:21:20 +0000 (15:21 +0000)]
Remove the sections about replacing libjpeg at run time and compile time. These were written before O/S distributions started shipping libjpeg-turbo, and they are either pedantic or no longer relevant. Also remove any text that assumes the use of our official project binaries. Notes specific to the official binaries have been moved into the project wiki.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1210
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sat, 22 Mar 2014 23:03:03 +0000 (23:03 +0000)]
Fix Windows build
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1206
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sat, 22 Mar 2014 20:51:38 +0000 (20:51 +0000)]
Since we're now maintaining our own Cygwin pseudo-repository directories instead of recommending that users install these packages from a local source, it makes more sense to name the packages according to Cygwin specs, so they can be copied as-is into the pseudo-repository.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1204
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sat, 22 Mar 2014 20:43:03 +0000 (20:43 +0000)]
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1203
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sat, 22 Mar 2014 20:42:01 +0000 (20:42 +0000)]
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1202
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sat, 22 Mar 2014 20:22:52 +0000 (20:22 +0000)]
Fix 'make dist'
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1201
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 21 Mar 2014 23:34:53 +0000 (23:34 +0000)]
Since we're now maintaining our own Cygwin pseudo-repository directories instead of recommending that users install these packages from a local source, it makes more sense to name the packages according to Cygwin specs, so they can be copied as-is into the pseudo-repository.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1195
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 21 Mar 2014 11:01:00 +0000 (11:01 +0000)]
RHEL 6 (and probably other platforms as well) sets _defaultdocdir=%{_datadir}/doc, which screws things up, since we're overriding _datadir. Since we intend _defaultdocdir to be /usr/share/doc, just be explicit about it.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1194
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 21 Mar 2014 11:00:00 +0000 (11:00 +0000)]
RHEL 6 (and probably other platforms as well) sets _defaultdocdir=%{_datadir}/doc, which screws things up, since we're overriding _datadir. Since we intend _defaultdocdir to be /usr/share/doc, just be explicit about it.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1193
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 21 Mar 2014 09:35:53 +0000 (09:35 +0000)]
Prevent svn:mergeinfo from being modified on Makefile.am and simd/jsimd*.c every time a merge is done.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1192
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 21 Mar 2014 09:35:02 +0000 (09:35 +0000)]
Fix compiler warning about unused function when building with the libjpeg v6b API/ABI
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1191
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 21 Mar 2014 09:33:49 +0000 (09:33 +0000)]
Prevent svn:mergeinfo from being modified on Makefile.am and simd/jsimd*.c every time a merge is done.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1190
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 21 Mar 2014 09:29:28 +0000 (09:29 +0000)]
Fix compiler warning about unused function when building with the libjpeg v6b API/ABI
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1189
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 21 Mar 2014 09:23:41 +0000 (09:23 +0000)]
Fix compiler warning ("always_inline function might not be inlinable") when building with recent versions of GCC
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1188
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 21 Mar 2014 09:22:21 +0000 (09:22 +0000)]
Fix compiler warning ("always_inline function might not be inlinable") when building with recent versions of GCC
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1187
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 21 Mar 2014 08:36:58 +0000 (08:36 +0000)]
Enable silent build (can be overridden with 'make V=1') if the version of autotools being used is new enough.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1186
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 21 Mar 2014 08:36:06 +0000 (08:36 +0000)]
Enable silent build (can be overridden with 'make V=1') if the version of autotools being used is new enough.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1185
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Mon, 17 Mar 2014 11:14:52 +0000 (11:14 +0000)]
Extend YUVImage class to allow reuse of the same buffer with different metadata; port TJBench changes that treat YUV encoding/decoding as an intermediate step of the JPEG compression/decompression pipeline rather than a separate test case; add YUV encode/decode tests to the Java version of tjbenchtest
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1184
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Mon, 17 Mar 2014 10:40:10 +0000 (10:40 +0000)]
formatting tweaks
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1183
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Mon, 17 Mar 2014 10:19:42 +0000 (10:19 +0000)]
Fix an error that occurred when trying to use the lossless transform feature without specifying -quiet; formatting tweak
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1182
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Mon, 17 Mar 2014 10:14:18 +0000 (10:14 +0000)]
Fix an error that occurred when trying to use the lossless transform feature without specifying -quiet; formatting tweak
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1181
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Mon, 17 Mar 2014 10:13:17 +0000 (10:13 +0000)]
Move the garbage collection of the JPEG tiles into the decompression function to increase the chances that tiled decompression of large images will succeed without an OutOfMemoryError.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1180
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Mon, 17 Mar 2014 10:12:11 +0000 (10:12 +0000)]
Move the garbage collection of the JPEG tiles into the decompression function to increase the chances that tiled decompression of large images will succeed without an OutOfMemoryError.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1179
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sun, 16 Mar 2014 23:12:25 +0000 (23:12 +0000)]
Generate the Java documentation using javadoc 7, to improve readability.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1178
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sun, 16 Mar 2014 22:59:51 +0000 (22:59 +0000)]
This should have been checked in with the previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1177
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sun, 16 Mar 2014 22:56:26 +0000 (22:56 +0000)]
Extend the YUV decode functionality to the TurboJPEG Java API, and port the TJUnitTest modifications that treat YUV encoding/decoding as an intermediate step of the JPEG compression/decompression pipeline rather than a separate test case; Add the ability to encode YUV images from an arbitrary position in a large image buffer; Significantly refactor the handling of YUV images; numerous doc tweaks; other Java API cleanup and usability improvements
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1176
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sun, 16 Mar 2014 19:33:23 +0000 (19:33 +0000)]
Update (C) year
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1175
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sun, 16 Mar 2014 19:33:07 +0000 (19:33 +0000)]
Don't use deprecated constructor
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1174
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sun, 16 Mar 2014 18:43:42 +0000 (18:43 +0000)]
Doc tweaks
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1173
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sun, 16 Mar 2014 18:00:59 +0000 (18:00 +0000)]
Go ahead and deprecate the old constructor in 1.3.1 instead of in 1.4, since it uses a deprecated method
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1172
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sat, 15 Mar 2014 13:25:11 +0000 (13:25 +0000)]
Add @Deprecated to the deprecated Java methods, so javac will actually print deprecation warnings, as opposed to just listing the methods as deprecated in javadoc; remove the use of the deprecated methods by our own test programs.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1171
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sat, 15 Mar 2014 08:48:53 +0000 (08:48 +0000)]
As with tjDecompressToYUV*(), tjCompressFromYUV() also conditionally uses an intermediate buffer if the source image dimensions do not fall on MCU boundaries.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1170
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 14 Mar 2014 08:59:27 +0000 (08:59 +0000)]
Remove unneeded/unused code
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1169
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 14 Mar 2014 08:53:33 +0000 (08:53 +0000)]
Streamline the BufferedImage functionality in the compressor so that it works the same way as compressing a "normal" image, and deprecate the old BufferedImage methods and other redundant methods. Eliminate the use of deprecated features in the test programs.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1168
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 14 Mar 2014 04:32:03 +0000 (04:32 +0000)]
Remove benchmarks. They were originally intended as a way of measuring overhead for small compress/decompress operations, but using TJBench with a small image is a better way to accomplish that.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1167
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 14 Mar 2014 04:27:03 +0000 (04:27 +0000)]
Formatting tweak
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1166
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 14 Mar 2014 04:15:43 +0000 (04:15 +0000)]
Oops. This code should not have been removed. It is necessary for generating the error images.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1165
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 13 Mar 2014 21:19:12 +0000 (21:19 +0000)]
Actually, the issue with nightshot_iso_100 is unrelated to the image size. Reducing the size to 128x95, the same size as vgl_6548_0026, does not eliminate the problem. The issue seems to always occur when decompression scaling is enabled. It is unclear at this point whether this is a bug or expected behavior, but the pixels generated by the split decompression functions appear correct. They are just slightly different (but not visibly so) from the pixels generated by the monolithic decompression function.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1164
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 13 Mar 2014 20:48:38 +0000 (20:48 +0000)]
Add a mode to tjbenchtest for testing the YUV encoding/decoding functions
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1163
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 13 Mar 2014 20:33:43 +0000 (20:33 +0000)]
If we have transformed a 4:2:2 or 4:4:0 image in any way that transposes the horizontal and vertical dimensions, then we need to inform the decompression function that the subsampling type has changed. Otherwise, tjDecodeYUV() will not produce correct results.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1162
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 13 Mar 2014 08:32:20 +0000 (08:32 +0000)]
Whitespace tweaks
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1161
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 13 Mar 2014 08:32:11 +0000 (08:32 +0000)]
Whitespace tweaks
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1160
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Wed, 12 Mar 2014 07:17:23 +0000 (07:17 +0000)]
Execute warmup runs with tjTransform() as well
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1159
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Wed, 12 Mar 2014 07:16:17 +0000 (07:16 +0000)]
Fix a couple of output formatting issues
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1158
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Wed, 12 Mar 2014 06:51:39 +0000 (06:51 +0000)]
Since we now have a complete set of YUV functions, TJBench can be greatly simplified. It now tests YUV encoding/decoding as an intermediate step of JPEG compression/decompression, which eliminates the need for a separate YUV mode. Several other things have been streamlined in the process.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1157
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Wed, 12 Mar 2014 06:17:12 +0000 (06:17 +0000)]
Fix a segfault that would occur in decompress-only mode if -alloc was specified without -tile.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1156
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Wed, 12 Mar 2014 06:15:51 +0000 (06:15 +0000)]
Fix a segfault that would occur in decompress-only mode if -alloc was specified without -tile.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1155
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 11 Mar 2014 09:46:50 +0000 (09:46 +0000)]
Wordsmithing & formatting tweaks
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1154
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 11 Mar 2014 08:28:47 +0000 (08:28 +0000)]
Back-port the -subsamp option from 1.4 rather than use the hackish approach of replacing 4:2:2 with 4:4:0. This has the added advantage of allowing the user to test only a specific level of subsampling.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1153
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 11 Mar 2014 08:25:59 +0000 (08:25 +0000)]
Oops. This was apparently the victim of an overly aggressive search/replace.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1152
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 11 Mar 2014 06:31:09 +0000 (06:31 +0000)]
Silence warning in CMake 2.8.12 and later
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1151
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 11 Mar 2014 06:30:21 +0000 (06:30 +0000)]
Silence warning in CMake 2.8.12 and later
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1150
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 11 Mar 2014 06:24:46 +0000 (06:24 +0000)]
Fix the build of the Java classes when using MSVC 2010 and later. Something in the recesses of my brain is telling me that I tried this before and it failed under some circumstances, but it must have been a bug in an older CMake implementation. CMake 2.8.8 and later seem to work fine with this patch. This patch also updates the minimum required version to 2.8.8, because 2.8.8 fixed another issue that was preventing the SIMD code from building under MSVC 2010 and later.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1149
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 11 Mar 2014 06:21:46 +0000 (06:21 +0000)]
Fix the build of the Java classes when using MSVC 2010 and later. Something in the recesses of my brain is telling me that I tried this before and it failed under some circumstances, but it must have been a bug in an older CMake implementation. CMake 2.8.8 and later seem to work fine with this patch. This patch also updates the minimum required version to 2.8.8, because 2.8.8 fixed another issue that was preventing the SIMD code from building under MSVC 2010 and later.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1148
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Mon, 10 Mar 2014 21:38:11 +0000 (21:38 +0000)]
Fix Windows build
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1147
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Mon, 10 Mar 2014 21:37:54 +0000 (21:37 +0000)]
Formatting tweaks
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1146
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Mon, 10 Mar 2014 20:14:53 +0000 (20:14 +0000)]
For now, punt on trying to support fancy upsampling in tjDecodeYUV(). Fancy upsampling requires context rows and other refinements, which are difficult to implement correctly with the algorithm we're using. Longer-term, supporting fancy upsampling would probably require using the main buffer that libjpeg allocates.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1145
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Mon, 10 Mar 2014 20:11:56 +0000 (20:11 +0000)]
Fix additional uninitialized values reported by valgrind
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1144
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Mon, 10 Mar 2014 09:34:04 +0000 (09:34 +0000)]
When tjDecodeYUV() is used with a "fresh" decompressor instance (one that hasn't been previously used to decompress a JPEG image), then it needs comps_in_scan, data_precision, and the quantization tables to be defined. This patch also extends TJUnitTest to check for this error.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1143
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sat, 8 Mar 2014 20:50:35 +0000 (20:50 +0000)]
Silence valgrind false positives about uninitialized values. Even with this patch, valgrind still complains about uninitialized values when decompressing or decoding to a buffer with an alpha-enabled colorspace. Not sure why this happens, but it occurs in libjpeg-turbo 1.3 as well, and only when the x86/x86-64 SIMD code is being used. It is my belief that these remaining warnings are also false positives, because if the output buffer is memset to all 0's prior to invoking tjDecodeYUV()/tjDecompress(), no errors are reported. If any of the alpha channel bits were in fact not being initialized, then they would still be 0 after invoking tjDecodeYUV()/tjDecompress(), and TJUnitTest would report an error.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1142
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sat, 8 Mar 2014 20:32:37 +0000 (20:32 +0000)]
Add a blank line before the alpha-enabled colorspace tests in order to improve readability
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1141
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sat, 8 Mar 2014 20:31:31 +0000 (20:31 +0000)]
Add a blank line before the alpha-enabled colorspace tests in order to improve readability
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1140
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 7 Mar 2014 03:52:57 +0000 (03:52 +0000)]
Go ahead and call jinit_master_decompress() rather than trying to reproduce its functionality. That function does a few things that we were missing, including allocating the range limit table used by the plain C color conversion code.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1139
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 6 Mar 2014 20:07:03 +0000 (20:07 +0000)]
Oops. We need to call start_pass() on the color converter in order to allocate the conversion tables used by the plain C code.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1138
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 6 Mar 2014 19:51:29 +0000 (19:51 +0000)]
Oops. We need to call start_pass() on the color converter in order to allocate the conversion tables used by the plain C code.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1136
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 6 Mar 2014 20:03:37 +0000 (20:03 +0000)]
Oops. We need to call start_pass() on the color converter in order to allocate the conversion tables used by the plain C code.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.2.x@1137
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 6 Mar 2014 09:29:25 +0000 (09:29 +0000)]
Fix regression introduced in r1128 that caused SIMD detection to malfunction for ARM platforms (and probably ARM64 and MIPS as well.)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1135
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 6 Mar 2014 09:26:49 +0000 (09:26 +0000)]
Fix regression introduced in r1122 that caused SIMD detection to malfunction for ARM platforms (and probably ARM64 and MIPS as well.)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1134
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 28 Feb 2014 09:35:34 +0000 (09:35 +0000)]
Fix unitialized value reported by valgrind (the upsampling routine used by 4:4:0 and 4:1:1 reads the value of component_index.)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1133
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 28 Feb 2014 09:17:14 +0000 (09:17 +0000)]
Implement a YUV decode function in the TurboJPEG API, to be symmetric with tjEncodeYUV().
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1132
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 28 Feb 2014 09:06:42 +0000 (09:06 +0000)]
Remove benchmarks. They were originally intended as a way of measuring overhead for small compress/decompress operations, but using TJBench with a small image is a better way to accomplish that.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1131
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 28 Feb 2014 05:34:02 +0000 (05:34 +0000)]
Remove unused code (the destination manager is not used during YUV encoding, there are no virtual arrays to realize, and jinit_c_prep_controller() is unnecessary because we are not using smoothing.)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1130
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 28 Feb 2014 05:27:55 +0000 (05:27 +0000)]
Remove unused code (the destination manager is not used during YUV encoding, there are no virtual arrays to realize, and jinit_c_prep_controller() is unnecessary because we are not using smoothing.)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.2.x@1129
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 28 Feb 2014 05:26:24 +0000 (05:26 +0000)]
Fix autoconf warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1128
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 28 Feb 2014 05:23:26 +0000 (05:23 +0000)]
Use C-style comments
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1127
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 28 Feb 2014 05:19:43 +0000 (05:19 +0000)]
Remove unused code (the destination manager is not used during YUV encoding, there are no virtual arrays to realize, and jinit_c_prep_controller() is unnecessary because we are not using smoothing.)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1126
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 27 Feb 2014 21:22:54 +0000 (21:22 +0000)]
Use C-style comments
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1125
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 20 Feb 2014 19:33:44 +0000 (19:33 +0000)]
Oops
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1124
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sat, 15 Feb 2014 07:14:58 +0000 (07:14 +0000)]
Older versions of automake don't support AM_PROG_AR, so only execute that macro if it exists.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1123
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sat, 15 Feb 2014 07:02:04 +0000 (07:02 +0000)]
Fix autoconf warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1122
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 11 Feb 2014 10:16:42 +0000 (10:16 +0000)]
Fix an issue that prevented tjEncodeYUV2() and TJCompressor.encodeYUV() from working properly if the source image was very tiny. Basically, jpeg_start_compress() was attempting to write the JPEG headers, which was overrunning the YUV buffer. This patch removes the call to jpeg_start_compress() in tjEncodeYUV2() and replaces it with calls to the individual routines that are necessary to initialize the color converter and downsampler. TJUnitTest has also been modified to test for this condition (the buffer size regression test now works in YUV mode.)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.2.x@1121
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 11 Feb 2014 09:56:12 +0000 (09:56 +0000)]
Fix an issue that prevented tjEncodeYUV2() and TJCompressor.encodeYUV() from working properly if the source image was very tiny. Basically, jpeg_start_compress() was attempting to write the JPEG headers, which was overrunning the YUV buffer. This patch removes the call to jpeg_start_compress() in tjEncodeYUV2() and replaces it with calls to the individual routines that are necessary to initialize the color converter and downsampler. TJUnitTest has also been modified to test for this condition (the buffer size regression test now works in YUV mode.)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1120
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 11 Feb 2014 09:55:32 +0000 (09:55 +0000)]
Update copyright year in file header as well
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1119
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Tue, 11 Feb 2014 09:45:18 +0000 (09:45 +0000)]
Fix an issue that prevented tjEncodeYUV3() and TJCompressor.encodeYUV() from working properly if the source image was very tiny. Basically, jpeg_start_compress() was attempting to write the JPEG headers, which was overrunning the YUV buffer. This patch removes the call to jpeg_start_compress() in tjEncodeYUV3() and replaces it with calls to the individual routines that are necessary to initialize the color converter and downsampler. TJUnitTest has also been modified to test for this condition (the buffer size regression test now works in YUV mode.)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1118
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Sun, 9 Feb 2014 14:12:12 +0000 (14:12 +0000)]
Update copyright notice to reflect recent SIMD contributions
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1117
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 7 Feb 2014 19:06:03 +0000 (19:06 +0000)]
Further examination of the code reveals that this change is unnecessary. The histogram stores a count of each color in the image, so it will always contain at least one non-zero element, and thus the total can never be zero. Since the histogram is generated from the image data and not read from the header, there is no chance that header corruption would affect it.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1116
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Fri, 7 Feb 2014 19:05:07 +0000 (19:05 +0000)]
Further examination of the code reveals that this change is unnecessary. The histogram stores a count of each color in the image, so it will always contain at least one non-zero element, and thus the total can never be zero. Since the histogram is generated from the image data and not read from the header, there is no chance that header corruption would affect it.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1115
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 6 Feb 2014 19:31:50 +0000 (19:31 +0000)]
Fix several potential overflow issues identified by the community.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1114
632fc199-4ca6-4c93-a231-
07263d6284db
DRC [Thu, 6 Feb 2014 19:31:23 +0000 (19:31 +0000)]
Formatting tweak
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1113
632fc199-4ca6-4c93-a231-
07263d6284db