pkgsrc/graphics/jpeg/Makefile

34 lines
852 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.57 2020/01/26 17:31:22 rillig Exp $
jpeg: Update to 9d Changelog: Version 9d 12-Jan-2020 ----------------------- Optimize the optimal Huffman code table generation to produce slightly smaller files. Thank to John Korejwa for suggestion. Note: Requires rebuild of testimgp.jpg. Decoding Huffman: Use default tables if tables are not defined. Thank to Simone Azzalin for report (Motion JPEG), and to Martin Strunz for hint. Add sanity check in optimal Huffman code table generation. Thank to Adam Farley for suggestion. rdtarga.c: use read_byte(), with EOF check, instead of getc() in read_*_pixel(). Thank to Chijin Zhou for cjpeg potential vulnerability report. jmemnobs.c: respect the max_memory_to_use setting in jpeg_mem_available() computation. Thank to Sheng Shu and Dongdong She for djpeg potential vulnerability report. jdarith.c, jdhuff.c: avoid left shift of negative value compiler warning in decode_mcu_AC_refine(). Thank to Indu Bhagat for suggestion. Add x64 (64-bit) platform support, avoid compiler warnings. Thank to Jonathan Potter, Feiyun Wang, and Sheng Shu for suggestion. Adjust libjpeg version specification for pkg-config file. Thank to Chen Chen for suggestion. Restore GIF read and write support from libjpeg version 6a. Thank to Wolfgang Werner (W.W.) Heinz for suggestion. Improve consistency in raw (downsampled) image data processing mode. Thank to Zhongyuan Zhou for hint. Avoid out of bounds array read (AC derived table pointers) in start pass in jdhuff.c. Thank to Peng Li for report. Improve code sanity (jdhuff.c). Thank to Reza Mirzazade farkhani for reports. Add jpegtran -drop option; add options to the crop extension and wipe to fill the extra area with content from the source image region, instead of gray out.
2020-01-20 15:59:48 +01:00
DISTNAME= jpegsrc.v9d
PKGNAME= ${DISTNAME:S/src.v/-/}
CATEGORIES= graphics
MASTER_SITES= http://www.ijg.org/files/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.ijg.org/
COMMENT= IJG's jpeg compression utilities
2010-12-12 12:50:43 +01:00
CONFLICTS= libjpeg-turbo-[0-9]*
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-ld-version-script
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.)
2010-01-17 12:53:40 +01:00
INSTALLATION_DIRS= bin include share/doc/jpeg
1998-07-24 03:56:59 +02:00
PKGCONFIG_OVERRIDE= libjpeg.pc.in
TEST_TARGET= test
post-extract:
${CP} ${FILESDIR}/jpegexiforient.c ${WRKSRC}
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/exifautotran ${DESTDIR}${PREFIX}/bin
2006-11-02 18:59:37 +01:00
${INSTALL_DATA} ${WRKSRC}/jpegint.h ${DESTDIR}${PREFIX}/include
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.)
2010-01-17 12:53:40 +01:00
${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/share/doc/jpeg
.include "../../mk/bsd.pkg.mk"