Debian Patches

Status for pvrg-jpeg/1.2.1+dfsg1-6

Patch Description Author Forwarded Bugs Origin Last update
jpegge.patch Stanford PVRG JPEG Patches for GE DICOM MOD As described in the medical image format FAQ, as well as the conformance
statement for the GE CTi, there are some problems with the JPEG lossless
compression on the DICOM 130mm MOD that the older models of the CTi write.
This patch to the Stanford PVRG JPEG code copes with these bugs, determining
from the compressed bit stream whether the GE bug is present or not, and if
present copes with it and decompresses the images as intended. Note that one
also needs to handle other bugs in the DICOM encapsulation, as do the recent
versions of dicom3tools (see for example dctoraw).
The patch is a composite of contributions from various other authors who have
suggested ways to handle the bug in both the Stanford and the Cornell code, and
thanks are due to them, as well as those at GE who were involved in detecting,
describing and correcting the bug in later CTi, MR LX and AW software versions.
There is also another patch (unrelated to the GE issue) to make the codec work
on MacOSX ... it turns out that the original code made assumptions about the
arguments and return values of lseek() which are not valid on some systems that
use a quad long (64 bits) for the offset type (off_t). The patch corrects for
this, as well as taking into account that the lseek() return value doesn't seem
to be set right on MacOSX and uses fstat() instead to determine file size wrt.
truncation. The most recent version also accounts for the need to not use

David Clunie <> not-needed other, 2013-10-08
lexer.l.patch Need to patch lexel.l to get it to produce proper code
Mathieu Malaterre <> not-needed
cmakelists.txt.patch The main author prefer cmake type build system, original build system was replaced by a cmake based one

Mathieu Malaterre <> not-needed
marker_o_rdwr.patch deprecated O_WRONLY, replaced by portable O_RDWR
Mathieu Malaterre <> not-needed
pvrg-jpeg-etb.patch Add support for PGM output. Remove jpeg.1 patch, see jpeg.1.patch instead
This web page and the etb patch to the PVRG JPEG code is by Eli the Bearded / Benjamin Elijah Griffin.
Reproduction of code is permitted under the Creative Commons Attribution-ShareAlike License.

Eli the Bearded / Benjamin Elijah Griffin <> not-needed other, 2013-10-08
jpeg.1.patch Replace jpeg with pvrg-jpeg. Properly escape all - with \ Mathieu Malaterre <> not-needed
implicitdecl.patch Fix implicit declarations
Mathieu Malaterre <> not-needed
mayhem.patch Fix Mayhem issue (if only upstream would use getopt ...) Andreas Tille <> no debian 2015-12-23

All known versions for source package 'pvrg-jpeg'