On Tue, Oct 04, 2022 at 10:50:13AM -0400, Brad Smith wrote:
> Here is an update to jpeg 2.1.4.
2.1.4
=====
### Significant changes relative to 2.1.3
1. Fixed a regression introduced in 2.1.3 that caused build failures with
Visual Studio 2010.
2. The `tjDecompressHeader3()` function in the TurboJPEG C API and the
`TJDecompressor.setSourceImage()` method in the TurboJPEG Java API now accept
"abbreviated table specification" (AKA "tables-only") datastreams, which can be
used to prime the decompressor with quantization and Huffman tables that can be
used when decompressing subsequent "abbreviated image" datastreams.
3. libjpeg-turbo now performs run-time detection of AltiVec instructions on
OS X/PowerPC systems if AltiVec instructions are not enabled at compile time.
This allows both AltiVec-equipped (PowerPC G4 and G5) and non-AltiVec-equipped
(PowerPC G3) CPUs to be supported using the same build of libjpeg-turbo.
4. Fixed an error ("Bogus virtual array access") that occurred when attempting
to decompress a progressive JPEG image with a height less than or equal to one
iMCU (8 * the vertical sampling factor) using buffered-image mode with
interblock smoothing enabled. This was a regression introduced by
2.1 beta1[6(b)].
5. Fixed two issues that prevented partial image decompression from working
properly with buffered-image mode:
- Attempting to call `jpeg_crop_scanline()` after
`jpeg_start_decompress()` but before `jpeg_start_output()` resulted in an error
("Improper call to JPEG library in state 207".)
- Attempting to use `jpeg_skip_scanlines()` resulted in an error ("Bogus
virtual array access") under certain circumstances.
also tested by George on PowerPC.
> Index: Makefile
> ===================================================================
> RCS file: /home/cvs/ports/graphics/jpeg/Makefile,v
> retrieving revision 1.74
> diff -u -p -u -p -r1.74 Makefile
> --- Makefile 21 Mar 2022 12:58:33 -0000 1.74
> +++ Makefile 27 Sep 2022 04:02:38 -0000
> @@ -1,6 +1,6 @@
> COMMENT= SIMD-accelerated JPEG codec replacement of libjpeg
>
> -V= 2.1.3
> +V= 2.1.4
> DISTNAME= libjpeg-turbo-${V}
> PKGNAME= jpeg-${V}
> EPOCH= 0
> Index: distinfo
> ===================================================================
> RCS file: /home/cvs/ports/graphics/jpeg/distinfo,v
> retrieving revision 1.24
> diff -u -p -u -p -r1.24 distinfo
> --- distinfo 21 Mar 2022 12:58:33 -0000 1.24
> +++ distinfo 27 Sep 2022 04:02:46 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (libjpeg-turbo-2.1.3.tar.gz) =
> RnsxCQODKwM/5WzTdyDRtzpqO9AXHb9v8LYgOF9PdtA=
> -SIZE (libjpeg-turbo-2.1.3.tar.gz) = 2260756
> +SHA256 (libjpeg-turbo-2.1.4.tar.gz) =
> 0+0moRMaE2ht/KSTXlIOt8kK52+8RdmLtQqNyGIwNCs=
> +SIZE (libjpeg-turbo-2.1.4.tar.gz) = 2261822
> Index: patches/patch-wrjpgcom_c
> ===================================================================
> RCS file: /home/cvs/ports/graphics/jpeg/patches/patch-wrjpgcom_c,v
> retrieving revision 1.7
> diff -u -p -u -p -r1.7 patch-wrjpgcom_c
> --- patches/patch-wrjpgcom_c 21 Mar 2022 12:58:33 -0000 1.7
> +++ patches/patch-wrjpgcom_c 27 Sep 2022 04:03:02 -0000
> @@ -1,7 +1,7 @@
> Index: wrjpgcom.c
> --- wrjpgcom.c.orig
> +++ wrjpgcom.c
> -@@ -453,7 +453,7 @@ main(int argc, char **argv)
> +@@ -438,7 +438,7 @@ main(int argc, char **argv)
> (unsigned int)MAX_COM_LENGTH);
> exit(EXIT_FAILURE);
> }
> @@ -10,7 +10,7 @@ Index: wrjpgcom.c
> for (;;) {
> comment_length = (unsigned int)strlen(comment_arg);
> if (comment_length > 0 && comment_arg[comment_length - 1] == '"')
> {
> -@@ -468,8 +468,8 @@ main(int argc, char **argv)
> +@@ -453,8 +453,8 @@ main(int argc, char **argv)
> (unsigned int)MAX_COM_LENGTH);
> exit(EXIT_FAILURE);
> }