Commit graph

12 commits

Author SHA1 Message Date
drochner
1ee407aecf update to 8b
changes:
-Repair problem in new memory source manager with corrupt JPEG data
-Repair problem in Makefile.am test target
add "test" target
2010-05-18 19:59:21 +00:00
drochner
3ef119e1b5 update to 8a
changes:
-Writing tables-only datastreams via jpeg_write_tables works again.
-Support 32-bit BMPs (RGB image with Alpha channel) for read in cjpeg.
-Improve accuracy in floating point IDCT calculation.
2010-04-09 20:00:02 +00:00
wiz
da5c57ca68 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 11:53:40 +00:00
joerg
697c8f13e7 Make sure that the patches and local files have a RCS ID. 2010-01-04 19:43:39 +00:00
sno
a65214fa58 Updating package graphics/jpeg from version 6bnb4 to 7
pkgsrc changes:
  - update MASTER_SITES
  - bump ApI_DEPENDS in buildlink3.mk

Upstream changes:
- The new features added with version 6bnb4 are now added upstream (except
  exifautotran and jpegexiforient)

Version 7  27-Jun-2009
----------------------

New scaled DCTs implemented.
djpeg now supports scalings N/8 with all N from 1 to 16.
cjpeg now supports scalings 8/N with all N from 1 to 16.
Scaled DCTs with size larger than 8 are now also used for resolving the
common 2x2 chroma subsampling case without additional spatial resampling.
Separate spatial resampling for those kind of files is now only necessary
for N>8 scaling cases.
Furthermore, separate scaled DCT functions are provided for direct resolving
of the common asymmetric subsampling cases (2x1 and 1x2) without additional
spatial resampling.

cjpeg -quality option has been extended for support of separate quality
settings for luminance and chrominance (or in general, for every provided
quantization table slot).
New API function jpeg_default_qtables() and q_scale_factor array in library.

Added -nosmooth option to cjpeg, complementary to djpeg.
New variable "do_fancy_downsampling" in library, complement to fancy
upsampling.  Fancy upsampling now uses direct DCT scaling with sizes
larger than 8.  The old method is not reversible and has been removed.

Support arithmetic entropy encoding and decoding.
Added files jaricom.c, jcarith.c, jdarith.c.

Straighten the file structure:
Removed files jidctred.c, jcphuff.c, jchuff.h, jdphuff.c, jdhuff.h.

jpegtran has a new "lossless" cropping feature.

Implement -perfect option in jpegtran, new API function
jtransform_perfect_transform() in transupp. (DP 204_perfect.dpatch)

Better error messages for jpegtran fopen failure.
(DP 203_jpegtran_errmsg.dpatch)

Fix byte order issue with 16bit PPM/PGM files in rdppm.c/wrppm.c:
according to Netpbm, the de facto standard implementation of the PNM formats,
the most significant byte is first. (DP 203_rdppm.dpatch)

Add -raw option to rdjpgcom not to mangle the output.
(DP 205_rdjpgcom_raw.dpatch)

Make rdjpgcom locale aware. (DP 201_rdjpgcom_locale.dpatch)

Add extern "C" to jpeglib.h.
This avoids the need to put extern "C" { ... } around #include "jpeglib.h"
in your C++ application.  Defining the symbol DONT_USE_EXTERN_C in the
configuration prevents this. (DP 202_jpeglib.h_c++.dpatch)
2009-08-26 16:50:46 +00:00
obache
bf6a9fbe28 Merge patch-af into patch-aa, both for 'makefile.cfg'. 2008-03-28 09:01:30 +00:00
tnn
4646b00220 Adopt some new features from www.jpegclub.org that have already been
adopted by many Linux distributions as well as FreeBSD ports:

o jpegtran: add "-perfect" switch:
    Fail if there are non-transformable edge blocks.
o jpegtran: add "-crop" switch:
    Crop to a rectangular subarea.
o jpegtran: correct EXIF handling.
o jpegexiforient: Get and set the Exif Orientation Tag.
o exifautotran: Transforms Exif files so that Orientation becomes 1.

Suggested by dzoe on #NetBSD IRCNet.
2007-06-05 22:07:25 +00:00
joerg
7f279c69f3 DESTDIR support. 2006-11-02 17:59:37 +00:00
reed
172c057f5a Add patch: the configure knows @mandir@ so make the Makefile use it.
And use PKGMANDIR for the INSTALLATION_DIRS.

PKGREVISION not bumped -- no change in default build. And before
would have failed if PKGMANDIR was set to non-default.
2005-12-27 17:30:50 +00:00
agc
6a7b384635 Add RMD160 digests 2005-02-24 08:45:01 +00:00
wiz
a4f21a5507 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 09:54:06 +00:00
agc
fb467f5ac2 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:22:34 +00:00