summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2010-01-17 11:53:40 +0000
committerwiz <wiz@pkgsrc.org>2010-01-17 11:53:40 +0000
commit9f4ac2d4da893c4c5254efbbbd76dde1260020c8 (patch)
treea630f468cf4a53d1c38d56884701f62362bd996c
parent46a871e44aca4e44aecefe2917e60f8e0861eeaf (diff)
downloadpkgsrc-9f4ac2d4da893c4c5254efbbbd76dde1260020c8.tar.gz
Update to 8:
The current version is release 8 of 10-Jan-2010. Version 8 of the JPEG software introduces basic new features for image coding application and comes with an essential update of the original JPEG specification. New features and enhancements have been developed for the three major parts of the IJG library: the compression, the decompression, and the transcoding parts. These parts are represented by the three major tools of the IJG software: cjpeg (compress JPEG), djpeg (decompress JPEG), and jpegtran (transcode JPEG - lossless): IJG Tools New jpegtran -scale lossless resize feature A new option has been added to the jpegtran tool and transcoding library: -scale M/N Scale output image by fraction M/N, eg, 1/8 Currently supported scale factors are M/N with all M from 1 to 16, where N is the source DCT size, which is 8 for baseline JPEG. If the /N part is omitted, then M specifies the DCT scaled size to be applied on the given input. For baseline JPEG this is equivalent to M/8 scaling, since the source DCT size for baseline JPEG is 8. CAUTION: An implementation of the JPEG SmartScale extension is required for this feature. SmartScale enabled JPEG is not yet widely implemented, so many decoders will be unable to view a SmartScale extended JPEG file at all. New djpeg -scale feature The -scale option of the djpeg tool and decompression library has been extended: -scale M/N Scale output image by fraction M/N, eg, 1/8 Currently supported scale factors are M/N with all M from 1 to 16, where N is the source DCT size, which is 8 for baseline JPEG. If the /N part is omitted, then M specifies the DCT scaled size to be applied on the given input. For baseline JPEG this is equivalent to M/8 scaling, since the source DCT size for baseline JPEG is 8. New cjpeg features Two new features have been added to the cjpeg tool and compression library: -quality N[,...] Compression quality (0..100; 5-95 is useful range) -scale M/N Scale image by fraction M/N, eg, 1/2 The -quality option has been extended for support of separate quality settings for luminance and chrominance (or in general, for every provided quantization table slot). This feature is useful for high-quality applications which cannot accept the damage of color data by coarse subsampling settings. You can now easily reduce the color data amount more smoothly with finer control without separate subsampling. The resulting file is fully compliant with standard JPEG decoders. A new -scale option is provided with cjpeg which complements the corresponding djpeg -scale option. The supported range of scaling factors is 8/N with all N=1...16. This means you can now easily alter the nominal spatial resolution of a given source image while compressing to JPEG without additional resampling. For example, if you have an image sensor providing an effective capture resolution of 2268x1512 pixels (HI resolution), you can now directly generate a MED resolution of 1512x1008 pixels (-scale 2/3) and a LOW resolution of 1134x756 pixels (-scale 1/2) from the sensor source resolution with the library while compressing to JPEG without additional resampling. (An efficient 12x12 FDCT is used in the -scale 2/3 case, and an efficient 16x16 FDCT is used in the -scale 1/2 case instead of the standard 8x8 FDCT inside the library, ensuring high-quality downscaled results - the resulting file is fully compliant with standard JPEG decoders.)
-rw-r--r--graphics/jpeg/Makefile11
-rw-r--r--graphics/jpeg/distinfo8
2 files changed, 9 insertions, 10 deletions
diff --git a/graphics/jpeg/Makefile b/graphics/jpeg/Makefile
index 3df49be9b80..2e47299756c 100644
--- a/graphics/jpeg/Makefile
+++ b/graphics/jpeg/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.38 2009/08/26 16:50:46 sno Exp $
+# $NetBSD: Makefile,v 1.39 2010/01/17 11:53:40 wiz Exp $
#
-DISTNAME= jpegsrc.v7
-PKGNAME= jpeg-7
+DISTNAME= jpegsrc.v8
+PKGNAME= jpeg-8
CATEGORIES= graphics
MASTER_SITES= http://www.ijg.org/files/
@@ -17,15 +17,14 @@ WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
-INSTALLATION_DIRS= bin lib include ${PKGMANDIR}/man1
+INSTALLATION_DIRS= bin include share/doc/jpeg
post-extract:
${CP} ${FILESDIR}/jpegexiforient.c ${WRKSRC}
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/exifautotran ${DESTDIR}${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/jpeg
- ${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/share/doc/jpeg
${INSTALL_DATA} ${WRKSRC}/jpegint.h ${DESTDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/share/doc/jpeg
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/jpeg/distinfo b/graphics/jpeg/distinfo
index 8139aba5c56..a80aea2a0dc 100644
--- a/graphics/jpeg/distinfo
+++ b/graphics/jpeg/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.9 2010/01/04 19:43:39 joerg Exp $
+$NetBSD: distinfo,v 1.10 2010/01/17 11:53:40 wiz Exp $
-SHA1 (jpegsrc.v7.tar.gz) = 88cced0fc3dbdbc82115e1d08abce4e9d23a4b47
-RMD160 (jpegsrc.v7.tar.gz) = 6049c5fee2682c0757d4b51740abd981d1b24487
-Size (jpegsrc.v7.tar.gz) = 960379 bytes
+SHA1 (jpegsrc.v8.tar.gz) = 1324834b52428d57479faa062f8b2d98d755d85e
+RMD160 (jpegsrc.v8.tar.gz) = f6a11317fd48e388ab034fcd5d66e00e77e8470b
+Size (jpegsrc.v8.tar.gz) = 961697 bytes
SHA1 (patch-af) = 5faed54759b871cc12447364d8b21b2fc05ecc15
SHA1 (patch-ag) = 04d5977ad490c4ba9b2a38a8e22bc23b50359656