]> granicus.if.org Git - libjpeg-turbo/log
libjpeg-turbo
9 years agoFix compiler warnings in jpeg_skip_scanlines() when building under Visual Studio.
DRC [Sat, 27 Jun 2015 08:10:32 +0000 (08:10 +0000)]
Fix compiler warnings in jpeg_skip_scanlines() when building under Visual Studio.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1588 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAdd regression tests for jpeg_skip_scanlines(); change "stripe" to "strip" in djpeg...
DRC [Sat, 27 Jun 2015 08:10:31 +0000 (08:10 +0000)]
Add regression tests for jpeg_skip_scanlines(); change "stripe" to "strip" in djpeg; document -strip and -skip parameters in djpeg

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1587 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoFix a couple of seg faults discovered when testing the new jpeg_skip_scanlines()...
DRC [Sat, 27 Jun 2015 08:10:30 +0000 (08:10 +0000)]
Fix a couple of seg faults discovered when testing the new jpeg_skip_scanlines() function + remove comment that is no longer relevant.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1586 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoMake sure that Java is disabled when 12-bit is enabled (Java requires TurboJPEG,...
DRC [Sat, 27 Jun 2015 07:57:44 +0000 (07:57 +0000)]
Make sure that Java is disabled when 12-bit is enabled (Java requires TurboJPEG, which currently only supports 8-bit samples), and tabs-->spaces

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1585 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoMake sure that Java is disabled when 12-bit is enabled (Java requires TurboJPEG,...
DRC [Sat, 27 Jun 2015 07:56:29 +0000 (07:56 +0000)]
Make sure that Java is disabled when 12-bit is enabled (Java requires TurboJPEG, which currently only supports 8-bit samples), and tabs-->spaces

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1584 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAdd a -skip option to djpeg, which opens up further regression testing options.
DRC [Thu, 25 Jun 2015 03:44:37 +0000 (03:44 +0000)]
Add a -skip option to djpeg, which opens up further regression testing options.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1583 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAdd a new libjpeg API function (jpeg_skip_scanlines()) to allow for partially decodin...
DRC [Thu, 25 Jun 2015 03:44:36 +0000 (03:44 +0000)]
Add a new libjpeg API function (jpeg_skip_scanlines()) to allow for partially decoding a JPEG image.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1582 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoFix 'make dist'
DRC [Sat, 20 Jun 2015 16:36:32 +0000 (16:36 +0000)]
Fix 'make dist'

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1574 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoThe Linux build machine has been upgraded to autoconf 2.69, automake 1.15, m4 1.4...
DRC [Sat, 20 Jun 2015 16:27:51 +0000 (16:27 +0000)]
The Linux build machine has been upgraded to autoconf 2.69, automake 1.15, m4 1.4.17, and libtool 2.4.6, so it is no longer necessary to recommend running autoreconf prior to building the source.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1573 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoStudies show that GCC v5.1.0 performs as well as or better than v4.2, but v4.7.x...
DRC [Sat, 20 Jun 2015 16:21:33 +0000 (16:21 +0000)]
Studies show that GCC v5.1.0 performs as well as or better than v4.2, but v4.7.x-v4.9.x do not perform as well as v4.2.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1572 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoStudies show that GCC v5.1.0 performs as well as or better than v4.2, but v4.7.x...
DRC [Sat, 20 Jun 2015 16:20:53 +0000 (16:20 +0000)]
Studies show that GCC v5.1.0 performs as well as or better than v4.2, but v4.7.x-v4.9.x do not perform as well as v4.2.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1571 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoTypo
DRC [Sat, 20 Jun 2015 15:51:34 +0000 (15:51 +0000)]
Typo

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1570 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoClarify that the TurboJPEG API functions/methods do not modify the source buffer.
DRC [Fri, 19 Jun 2015 16:07:14 +0000 (16:07 +0000)]
Clarify that the TurboJPEG API functions/methods do not modify the source buffer.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1567 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoNow that the TurboJPEG API is reporting libjpeg warnings as errors, an "Invalid SOS... 1.4.1
DRC [Mon, 8 Jun 2015 18:31:34 +0000 (18:31 +0000)]
Now that the TurboJPEG API is reporting libjpeg warnings as errors, an "Invalid SOS parameters for sequential JPEG" warning surfaced in tjDecodeYUV*().  This was caused by the Se member of jpeg_decompress_struct being set to 0 (it is normally set to a non-zero value when the start-of-scan markers are read, but there are no SOS markers in this case, because we're not actually decompressing a JPEG file.)

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1564 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoFix a segfault that occured in the MIPS DSPr2 fancy upsampling routine when downsampl...
DRC [Mon, 8 Jun 2015 17:41:34 +0000 (17:41 +0000)]
Fix a segfault that occured in the MIPS DSPr2 fancy upsampling routine when downsampled_width==3.  Because the DSPr2 code unrolls the loop for the middle columns (refer to jdsample.c), it has the effect of performing two column iterations, and that only works properly if the number of columns (minus the first and last) is >= 2.  For the specific case of downsampled_width==3, this patch skips to the second iteration of the unrolled column loop.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1562 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoIf a warning (such as "Premature end of JPEG file") is triggered in the underlying...
DRC [Mon, 1 Jun 2015 19:22:41 +0000 (19:22 +0000)]
If a warning (such as "Premature end of JPEG file") is triggered in the underlying libjpeg API, make sure that the TurboJPEG API function returns -1.  Unlike errors, however, libjpeg warnings do not make the TurboJPEG functions abort.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1561 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoBack out r1555 and r1548. Using setenv() didn't fix the iOS simulator issue. It...
DRC [Sun, 17 May 2015 15:56:18 +0000 (15:56 +0000)]
Back out r1555 and r1548.  Using setenv() didn't fix the iOS simulator issue.  It just replaced an undefined _putenv$UNIX2003 symbol with an undefined _setenv$UNIX2003 symbol.  The correct solution seems to be to use -D_NONSTD_SOURCE when generating our official builds.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1557 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoFix the Windows build. I remember now why I used putenv() originally-- because Windo...
DRC [Sat, 16 May 2015 04:18:21 +0000 (04:18 +0000)]
Fix the Windows build.  I remember now why I used putenv() originally-- because Windows doesn't have setenv().  We could use _putenv_s(), but older versions of MinGW don't have that either.  Fortunately, since all of the environment values we're setting in turbojpeg.c are static, we can just map setenv() to putenv() using a macro.  NOTE: we still have to use _putenv_s() in turbojpeg-jni.c, but at least people who may need to build with an older version of MinGW can still do so by disabling the Java build.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1555 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAllow building only static or only shared libraries on Windows
DRC [Fri, 15 May 2015 22:08:21 +0000 (22:08 +0000)]
Allow building only static or only shared libraries on Windows

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1553 632fc199-4ca6-4c93-a231-07263d6284db

9 years ago__WORDSIZE doesn't seem to be available on platforms other than Mac or Linux, and...
DRC [Fri, 15 May 2015 19:09:44 +0000 (19:09 +0000)]
__WORDSIZE doesn't seem to be available on platforms other than Mac or Linux, and best practices are for user-level code not to rely on it anyhow, since it's meant to be an internal macro.  Fortunately, autoconf already has a way of determining the word size at configure time, so it can be passed into the compiler.  This should work on any platform and has been tested on all of the Un*x platforms we support (Linux, Mac, FreeBSD, Solaris.)

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1550 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoUnless you define _ANSI_SOURCE, then putenv() on Mac is renamed to putenv$UNIX2003...
DRC [Fri, 15 May 2015 18:23:59 +0000 (18:23 +0000)]
Unless you define _ANSI_SOURCE, then putenv() on Mac is renamed to putenv$UNIX2003(), and this causes problems when trying to link an i386 iOS application (for the simulator) against the TurboJPEG static library.  It's easiest to just use setenv() instead.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1548 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoFix a bug in the 64-bit Huffman encoder that Google discovered when encoding some...
DRC [Wed, 6 May 2015 22:41:12 +0000 (22:41 +0000)]
Fix a bug in the 64-bit Huffman encoder that Google discovered when encoding some very specific (and proprietary) aerial images using quality=98, an optimized Huffman table, and the ISLOW DCT.  These images were causing the Huffman bit buffer to overflow, because the code for encoding the DC coefficient was using the equivalent of the 32-bit version of EMIT_BITS().  Thus, when 64-bit code was used, the DC coefficient code was not properly checking how many bits were in the buffer before attempting to add more bits to it.  This issue appears to have existed in all versions of libjpeg-turbo.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1547 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoRestore backward compatibility with MSVC < 2010 (broken by r1541)
DRC [Thu, 30 Apr 2015 09:05:53 +0000 (09:05 +0000)]
Restore backward compatibility with MSVC < 2010 (broken by r1541)

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1543 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoOops. OS X doesn't define __WORDSIZE unless you include stdint.h, so apparently...
DRC [Wed, 22 Apr 2015 08:43:04 +0000 (08:43 +0000)]
Oops.  OS X doesn't define __WORDSIZE unless you include stdint.h, so apparently the Huffman codec hasn't ever been fully accelerated on 64-bit OS X.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1541 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAllow the executables and libraries outside of the sharedlib/ directory to be linked...
DRC [Thu, 19 Mar 2015 19:27:40 +0000 (19:27 +0000)]
Allow the executables and libraries outside of the sharedlib/ directory to be linked against msvcr*.dll instead of libcmt*.lib.  This is reported to be necessary when building libjpeg-turbo for use with C#.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1539 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoSurround the usage of getenv() in the TurboJPEG API with #ifndef NO_GETENV so that...
DRC [Mon, 23 Feb 2015 19:19:40 +0000 (19:19 +0000)]
Surround the usage of getenv() in the TurboJPEG API with #ifndef NO_GETENV so that developers can add -DNO_GETENV to the C flags when building for platforms that don't have getenv().  Currently this is known to be necessary when building for Windows Phone.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1537 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoIf libjpeg-turbo is configured with a non-default prefix, such as /usr, then use...
DRC [Mon, 23 Feb 2015 19:06:44 +0000 (19:06 +0000)]
If libjpeg-turbo is configured with a non-default prefix, such as /usr, then use the docdir variable defined by autoconf 2.60 and later, if available.  This will, for instance, install the documentation under /usr/share/doc/libjpeg-turbo by default if prefix=/usr, unless docdir is overridden.  When using earlier versions of autoconf, docdir is set to ${datadir}/doc, as it always has been.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1535 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoEnable silent build rules for the NASM objects, if the source is configured with...
DRC [Mon, 23 Feb 2015 19:03:29 +0000 (19:03 +0000)]
Enable silent build rules for the NASM objects, if the source is configured with automake 1.11 or later.  NOTE: the build still spits out "error: ignoring unknown tag NASM" for each object, but unfortunately, if we remove "--tag NASM" from the command line, the build breaks under older versions of automake (it aborts with "unable to infer tagged configuration.")

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1534 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoSet the RPM and deb architecture properly on non-x86 platforms.
DRC [Fri, 20 Feb 2015 20:12:15 +0000 (20:12 +0000)]
Set the RPM and deb architecture properly on non-x86 platforms.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1531 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoExtend the AltiVec VMX SIMD routines to support little endian PowerPC platforms.
DRC [Fri, 20 Feb 2015 19:57:21 +0000 (19:57 +0000)]
Extend the AltiVec VMX SIMD routines to support little endian PowerPC platforms.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1529 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoCome on, Cohaagen, you got what you want. Give these people air!
DRC [Wed, 28 Jan 2015 00:26:28 +0000 (00:26 +0000)]
Come on, Cohaagen, you got what you want.  Give these people air!

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1528 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoCome on, Cohaagen, you got what you want. Give these people air!
DRC [Wed, 28 Jan 2015 00:25:43 +0000 (00:25 +0000)]
Come on, Cohaagen, you got what you want.  Give these people air!

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1527 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoOops. Need to set the alpha channel when using TYPE_4BYTE_ABGR*. This has no bearin...
DRC [Tue, 27 Jan 2015 20:59:16 +0000 (20:59 +0000)]
Oops.  Need to set the alpha channel when using TYPE_4BYTE_ABGR*.  This has no bearing on the actual tests, but it prevents the PNG pre-encode reference images for those tests from being blank.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1525 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoOops. The MIPS SIMD implementations of h2v1 and h2v2 upsampling were not checking...
DRC [Wed, 21 Jan 2015 17:42:28 +0000 (17:42 +0000)]
Oops.  The MIPS SIMD implementations of h2v1 and h2v2 upsampling were not checking for DSPr2 support, so running 'djpeg -nosmooth' on a non-DSPr2-enabled platform caused an "illegal instruction" error.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1523 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoIntroduce fast paths to speed up NULL color conversion somewhat, particularly when...
DRC [Tue, 20 Jan 2015 10:33:32 +0000 (10:33 +0000)]
Introduce fast paths to speed up NULL color conversion somewhat, particularly when using 64-bit code;  on the decompression side, the "slow path" also now use an approach similar to that of the compression side (with the component loop outside of the column loop rather than inside.)  This is faster when using 32-bit code.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1521 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoSome clarifications (actually MIPS doesn't implement the float DCT/IDCT using SIMD...
DRC [Fri, 16 Jan 2015 07:16:53 +0000 (07:16 +0000)]
Some clarifications (actually MIPS doesn't implement the float DCT/IDCT using SIMD instructions)

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1517 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoMake the floating point regression tests optional. It has been known for quite some...
DRC [Fri, 16 Jan 2015 06:53:36 +0000 (06:53 +0000)]
Make the floating point regression tests optional.  It has been known for quite some time that these tests do not always generate the same results unless there is full SIMD coverage of the floating point algorithms in libjpeg-turbo.  Further research reveals that there are basically three expected results:  the results from our SSE SIMD extensions (which are slightly more accurate than the C code), results from the C code when running on a 32-bit FPU (or when using SSE instructions on an x86-64 CPU, which is the default with GCC), and results from the C code when running on a 64-bit FPU (which presumably uses double-precision arithmetic by default.)  There is basically no way to determine which type of math will be used prior to run time, so it's best to just let the developers specify which result they expect on their particular system.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1515 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoIn the process of developing the AltiVec extensions, it was discovered that the norma...
DRC [Fri, 16 Jan 2015 06:45:54 +0000 (06:45 +0000)]
In the process of developing the AltiVec extensions, it was discovered that the normal regression tests aren't sufficient to test the behavior of the library with very small image sizes and when compressing from/decompressing to a subregion of a larger image buffer.  Thus, an additional regression test was added that takes advantage of the tiled compression/decompression feature in tjbench.  This is being back-ported to the 1.4.x branch primarily to verify that there are no lingering issues in the existing SIMD extensions.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1514 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAdd separate pseudo-targets for the TurboJPEG and libjpeg regression tests, for those...
DRC [Fri, 16 Jan 2015 06:37:03 +0000 (06:37 +0000)]
Add separate pseudo-targets for the TurboJPEG and libjpeg regression tests, for those times when you just don't want to sit through 11 iterations of TJUnitTest to find out that your algorithm is broken.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1513 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoBump copyright year
DRC [Fri, 16 Jan 2015 06:34:08 +0000 (06:34 +0000)]
Bump copyright year

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1512 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAdd the ability to benchmark YCCK JPEG compression/decompression. This is particular...
DRC [Fri, 16 Jan 2015 06:29:52 +0000 (06:29 +0000)]
Add the ability to benchmark YCCK JPEG compression/decompression.  This is particularly useful since that is the only way to test the performance of the "plain" upsampling routines, which are accelerated on some platforms.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1511 632fc199-4ca6-4c93-a231-07263d6284db

9 years ago1.4.1
DRC [Fri, 16 Jan 2015 06:17:05 +0000 (06:17 +0000)]
1.4.1

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1510 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoDocument AltiVec extensions
DRC [Fri, 16 Jan 2015 03:21:05 +0000 (03:21 +0000)]
Document AltiVec extensions

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1508 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoRevert r1506 (we actually are generating columns with the IDCT, so the naming makes...
DRC [Fri, 16 Jan 2015 03:13:16 +0000 (03:13 +0000)]
Revert r1506 (we actually are generating columns with the IDCT, so the naming makes sense in retrospect);  further de-confusification in the forward DCT

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1507 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoDe-confusify the variable names a bit -- "out" represents the output of the IDCT...
DRC [Thu, 15 Jan 2015 08:51:31 +0000 (08:51 +0000)]
De-confusify the variable names a bit -- "out" represents the output of the IDCT kernel, so use "final" to represent the packed data that will be stored to memory.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1506 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAdd the ability to benchmark YCCK JPEG compression/decompression. This is particular...
DRC [Wed, 14 Jan 2015 19:39:01 +0000 (19:39 +0000)]
Add the ability to benchmark YCCK JPEG compression/decompression.  This is particularly useful since that is the only way to test the performance of the "plain" upsampling routines, which are accelerated on some platforms.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1505 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAltiVec SIMD implementation of H2V1 and H2V2 plain upsampling (used only when decompr...
DRC [Wed, 14 Jan 2015 15:41:11 +0000 (15:41 +0000)]
AltiVec SIMD implementation of H2V1 and H2V2 plain upsampling (used only when decompressing YCCK images with fast upsampling enabled.)

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1504 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAltiVec SIMD implementation of H2V1 and H2V2 merged upsampling
DRC [Wed, 14 Jan 2015 13:27:32 +0000 (13:27 +0000)]
AltiVec SIMD implementation of H2V1 and H2V2 merged upsampling

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1503 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoFix an overread detected by valgrind
DRC [Wed, 14 Jan 2015 13:07:06 +0000 (13:07 +0000)]
Fix an overread detected by valgrind

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1502 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoFix bugs in the AltiVec fancy upsampling routines uncovered during additional testing...
DRC [Wed, 14 Jan 2015 10:45:31 +0000 (10:45 +0000)]
Fix bugs in the AltiVec fancy upsampling routines uncovered during additional testing with small image sizes.  Since the input width is half the output width, the upsampler should only write a second 16-byte chuck if there are more than 8 input columns left.  Additionally, if the width is < 16, then we need to insert a dummy sample (the SSE2 code does this as well, but I neglected to port that portion of the code for some reason.)

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1501 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoIn the process of developing the AltiVec extensions, it was discovered that the norma...
DRC [Wed, 14 Jan 2015 08:42:29 +0000 (08:42 +0000)]
In the process of developing the AltiVec extensions, it was discovered that the normal regression tests aren't sufficient to test the behavior of the library with very small image sizes and when compressing from/decompressing to a subregion of a larger image buffer.  Thus, an additional regression test was added that takes advantage of the tiled compression/decompression feature in tjbench.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1500 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoFix a bug in the AltiVec downsampling routines uncovered during additional testing...
DRC [Wed, 14 Jan 2015 08:31:54 +0000 (08:31 +0000)]
Fix a bug in the AltiVec downsampling routines uncovered during additional testing with small image sizes.  Since the output width is half the input width, the downsampler should only read a second 16-byte chunk if there are more than 8 output columns left.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1499 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoMake the formatting and naming of variables and constants more consistent
DRC [Tue, 13 Jan 2015 11:49:15 +0000 (11:49 +0000)]
Make the formatting and naming of variables and constants more consistent

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1498 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoMake the formatting and naming of variables and constants more consistent
DRC [Tue, 13 Jan 2015 11:47:20 +0000 (11:47 +0000)]
Make the formatting and naming of variables and constants more consistent

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1497 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoMake the formatting and naming of variables and constants more consistent
DRC [Tue, 13 Jan 2015 10:00:12 +0000 (10:00 +0000)]
Make the formatting and naming of variables and constants more consistent

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1496 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAltiVec SIMD implementation of H2V1 and H2V2 fancy upsampling
DRC [Tue, 13 Jan 2015 09:02:29 +0000 (09:02 +0000)]
AltiVec SIMD implementation of H2V1 and H2V2 fancy upsampling

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1495 632fc199-4ca6-4c93-a231-07263d6284db

9 years agogit-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1494 632fc1...
DRC [Mon, 12 Jan 2015 08:36:37 +0000 (08:36 +0000)]
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1494 632fc199-4ca6-4c93-a231-07263d6284db

9 years agogit-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1493 632fc199-4ca6...
DRC [Mon, 12 Jan 2015 08:36:25 +0000 (08:36 +0000)]
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1493 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoMinor code readability tweak
DRC [Sun, 11 Jan 2015 07:38:35 +0000 (07:38 +0000)]
Minor code readability tweak

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1492 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoUse intrinsics for loading aligned data in the IDCT functions. This has no effect...
DRC [Sun, 11 Jan 2015 06:34:47 +0000 (06:34 +0000)]
Use intrinsics for loading aligned data in the IDCT functions.  This has no effect on performance, but it makes it more obvious what that code is doing.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1491 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoBump copyright year
DRC [Sun, 11 Jan 2015 00:58:44 +0000 (00:58 +0000)]
Bump copyright year

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1490 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAltiVec SIMD implementation of YCC-to-RGB color conversion
DRC [Sat, 10 Jan 2015 22:56:26 +0000 (22:56 +0000)]
AltiVec SIMD implementation of YCC-to-RGB color conversion

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1489 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoFix minor issue in code comments
DRC [Sat, 10 Jan 2015 12:25:42 +0000 (12:25 +0000)]
Fix minor issue in code comments

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1488 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoFix minor issue in code comments
DRC [Sat, 10 Jan 2015 12:10:08 +0000 (12:10 +0000)]
Fix minor issue in code comments

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1487 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoSimplify the code somewhat. It actually wasn't necessary to have a "fast path" and...
DRC [Sat, 10 Jan 2015 12:09:11 +0000 (12:09 +0000)]
Simplify the code somewhat.  It actually wasn't necessary to have a "fast path" and a "medium path"-- they perform the same.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1486 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoOverhaul the AltiVec vector loading code in the compression-side colorspace conversio...
DRC [Sat, 10 Jan 2015 11:32:36 +0000 (11:32 +0000)]
Overhaul the AltiVec vector loading code in the compression-side colorspace conversion routines.  The existing code was sometimes overreading the source buffer (at least according to valgrind), and it was necessary to increase the complexity of the code in order to prevent this without significantly compromising performance.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1485 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoFix minor issue in code comments
DRC [Thu, 8 Jan 2015 10:42:54 +0000 (10:42 +0000)]
Fix minor issue in code comments

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1484 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoAltiVec SIMD implementation of 2x1 and 2x2 downsampling
DRC [Thu, 8 Jan 2015 06:18:33 +0000 (06:18 +0000)]
AltiVec SIMD implementation of 2x1 and 2x2 downsampling

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1483 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoOops. Delete the duplicate copy of [lib]turbojpeg.dll in the binary directory when...
DRC [Wed, 7 Jan 2015 05:47:08 +0000 (05:47 +0000)]
Oops.  Delete the duplicate copy of [lib]turbojpeg.dll in the binary directory when uninstalling the package.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1482 632fc199-4ca6-4c93-a231-07263d6284db

9 years agoOops. Delete the duplicate copy of [lib]turbojpeg.dll in the binary directory when... 1.4.0
DRC [Wed, 7 Jan 2015 01:19:49 +0000 (01:19 +0000)]
Oops.  Delete the duplicate copy of [lib]turbojpeg.dll in the binary directory when uninstalling the package.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1477 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoAltiVec SIMD implementation of sample conversion and integer quantization
DRC [Tue, 23 Dec 2014 04:14:54 +0000 (04:14 +0000)]
AltiVec SIMD implementation of sample conversion and integer quantization

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1474 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoDocument the fact that the AltiVec implementation uses the same modified algorithms...
DRC [Tue, 23 Dec 2014 02:42:59 +0000 (02:42 +0000)]
Document the fact that the AltiVec implementation uses the same modified algorithms as the SSE2 implementation

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1473 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoUse intrinsics for loading/storing data in the DCT/IDCT functions. This has no effec...
DRC [Mon, 22 Dec 2014 16:04:17 +0000 (16:04 +0000)]
Use intrinsics for loading/storing data in the DCT/IDCT functions.  This has no effect on the performance of the aligned loads/stores, but it makes it more obvious what that code is doing.  Using intrinsics for the unaligned stores in the inverse DCT functions increases overall decompression performance by 1-2%.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1472 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoAltiVec SIMD implementation of RGB-to-Grayscale color conversion
DRC [Mon, 22 Dec 2014 14:10:33 +0000 (14:10 +0000)]
AltiVec SIMD implementation of RGB-to-Grayscale color conversion

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1471 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoRemove unneeded code; Make sure jccolor-altivec.o will be rebuilt if jccolext-altive...
DRC [Mon, 22 Dec 2014 13:57:30 +0000 (13:57 +0000)]
Remove unneeded code;  Make sure jccolor-altivec.o will be rebuilt if jccolext-altivec.c changes.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1470 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoAltiVec SIMD implementation of RGB-to-YCC color conversion
DRC [Mon, 22 Dec 2014 13:42:26 +0000 (13:42 +0000)]
AltiVec SIMD implementation of RGB-to-YCC color conversion

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1469 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoMake test a phony target so things don't go haywire if there is a file named test...
DRC [Mon, 22 Dec 2014 13:41:18 +0000 (13:41 +0000)]
Make test a phony target so things don't go haywire if there is a file named test.c in the current directory.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1468 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoMaintain the traditional order of the regression tests while allowing the TurboJPEG...
DRC [Mon, 22 Dec 2014 13:15:08 +0000 (13:15 +0000)]
Maintain the traditional order of the regression tests while allowing the TurboJPEG and libjpeg portions to be executed separately

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1467 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoMake comments more consistent
DRC [Mon, 22 Dec 2014 01:38:01 +0000 (01:38 +0000)]
Make comments more consistent

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1466 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoAdd a "quicktest" pseudo-target, for those times when you just don't want to sit...
DRC [Mon, 22 Dec 2014 01:32:51 +0000 (01:32 +0000)]
Add a "quicktest" pseudo-target, for those times when you just don't want to sit through 11 iterations of TJUnitTest.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1465 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoCosmetic tweaks to the PowerPC SIMD stubs
DRC [Mon, 22 Dec 2014 01:10:11 +0000 (01:10 +0000)]
Cosmetic tweaks to the PowerPC SIMD stubs

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1464 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoSplit AltiVec algorithms into separate files for ease of maintenance; Rename constan...
DRC [Mon, 22 Dec 2014 01:00:42 +0000 (01:00 +0000)]
Split AltiVec algorithms into separate files for ease of maintenance;  Rename constants using lowercase so they are not confused with macros

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1463 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoOptimizations to the AltiVec DCT algorithms (pre-compute constants and combine multip...
DRC [Sat, 20 Dec 2014 03:32:59 +0000 (03:32 +0000)]
Optimizations to the AltiVec DCT algorithms (pre-compute constants and combine multiply/add operations)

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1462 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoAltiVec SIMD implementation of slow integer inverse DCT
DRC [Sat, 20 Dec 2014 01:17:39 +0000 (01:17 +0000)]
AltiVec SIMD implementation of slow integer inverse DCT

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1461 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoUse macros to allocate constants statically, rather than reading them from a table...
DRC [Sat, 20 Dec 2014 01:16:26 +0000 (01:16 +0000)]
Use macros to allocate constants statically, rather than reading them from a table using vec_splat*().  This improves code readability and probably improves performance a bit as well.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1460 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoSwap the order of the IFAST and ISLOW FDCT functions so that it matches the order...
DRC [Sat, 20 Dec 2014 01:14:38 +0000 (01:14 +0000)]
Swap the order of the IFAST and ISLOW FDCT functions so that it matches the order of the prototypes in jsimd.h and the stubs in jsimd_powerpc.c.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1459 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoInclude ARMv8 binaries when generating a combined OS X/iOS package using 'make iosdmg'
DRC [Fri, 19 Dec 2014 18:28:00 +0000 (18:28 +0000)]
Include ARMv8 binaries when generating a combined OS X/iOS package using 'make iosdmg'

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1458 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoDocument that the ARMv8/iOS issues are now fixed
DRC [Fri, 19 Dec 2014 18:18:46 +0000 (18:18 +0000)]
Document that the ARMv8/iOS issues are now fixed

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1454 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoRemove reference to install.txt, which we do not include from the IJG distribution
DRC [Fri, 19 Dec 2014 18:07:04 +0000 (18:07 +0000)]
Remove reference to install.txt, which we do not include from the IJG distribution

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1453 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoInclude ARMv8 binaries when generating a combined OS X/iOS package using 'make iosdmg'
DRC [Fri, 19 Dec 2014 17:34:30 +0000 (17:34 +0000)]
Include ARMv8 binaries when generating a combined OS X/iOS package using 'make iosdmg'

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1452 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoIn the output of the configure script, indicate whether gas-preprocessor.pl is being...
DRC [Fri, 19 Dec 2014 15:40:21 +0000 (15:40 +0000)]
In the output of the configure script, indicate whether gas-preprocessor.pl is being used along with the assembler.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1451 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoModify the ARM64 assembly file so that it uses only syntax that the clang assembler...
DRC [Fri, 19 Dec 2014 15:36:39 +0000 (15:36 +0000)]
Modify the ARM64 assembly file so that it uses only syntax that the clang assembler in XCode 5.x can understand.  These changes should all be cosmetic in nature-- they do not change the meaning or readability of the code nor the ability to build it for Linux.  Actually, the code is now more in compliance with the ARM64 programming manual.  In addition to these changes, there were a couple of instructions that clang simply doesn't support, so gas-preprocessor.pl was modified so that it now converts those into equivalent instructions that clang can handle.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1450 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoAdd iOS architectures to the shared libraries generated by the Mac/iOS packaging...
DRC [Fri, 19 Dec 2014 10:44:09 +0000 (10:44 +0000)]
Add iOS architectures to the shared libraries generated by the Mac/iOS packaging system.  I have no idea how useful this is for "standard" iOS application development, but it is useful in a jailbreak environment, and iOS 8 supposedly allows shared libs in "official" apps as well.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1447 632fc199-4ca6-4c93-a231-07263d6284db

10 years ago1.4.0
DRC [Fri, 19 Dec 2014 09:35:11 +0000 (09:35 +0000)]
1.4.0

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1446 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoAltiVec SIMD implementation of fast integer inverse DCT
DRC [Thu, 18 Dec 2014 10:12:29 +0000 (10:12 +0000)]
AltiVec SIMD implementation of fast integer inverse DCT

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1445 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoFurther cleanup of the AltiVec forward DCT code:
DRC [Thu, 18 Dec 2014 09:49:39 +0000 (09:49 +0000)]
Further cleanup of the AltiVec forward DCT code:
-- Use macros to represent the fast FDCT constants, to facilitate comparing the AltiVec implementation of the algorithm with the SSE2 implementation.
-- Rename slow FDCT constants for consistency.
-- Use vec_sra() in all cases in the slow FDCT code.  The SSE2 implementation uses psraw, which is an arithmetic shift, so we need to do likewise with AltiVec.  Using vec_sr() hasn't caused any problems yet, but it is conceivable that it might cause different behavior in certain corner cases.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1444 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoAltiVec SIMD implementation of slow integer forward DCT; Clean up fast integer forwa...
DRC [Wed, 17 Dec 2014 08:04:39 +0000 (08:04 +0000)]
AltiVec SIMD implementation of slow integer forward DCT;  Clean up fast integer forward DCT code so that it is easier to see how it derives from the SSE2 code and to make it play more nicely with the slow FDCT code.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1443 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoFix cosmetic issues in AltiVec comments
DRC [Wed, 17 Dec 2014 08:00:29 +0000 (08:00 +0000)]
Fix cosmetic issues in AltiVec comments

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1442 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoFix 'make dist'
DRC [Sun, 14 Dec 2014 11:47:49 +0000 (11:47 +0000)]
Fix 'make dist'

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1441 632fc199-4ca6-4c93-a231-07263d6284db

10 years agoFix 'make dist'
DRC [Sun, 14 Dec 2014 11:47:08 +0000 (11:47 +0000)]
Fix 'make dist'

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1440 632fc199-4ca6-4c93-a231-07263d6284db