Package: pvrg-jpeg / 1.2.1+dfsg1-6

Metadata

Package Version Patches format
pvrg-jpeg 1.2.1+dfsg1-6 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
jpegge.patch | (download)

SETUP | 9 9 + 0 - 0 !
huffman.c | 37 37 + 0 - 0 !
io.c | 43 26 + 17 - 0 !
jpeg.c | 18 15 + 3 - 0 !
lexer.l | 9 4 + 5 - 0 !
makefile | 25 17 + 8 - 0 !
marker.c | 3 3 + 0 - 0 !
prototypes.h | 1 1 + 0 - 0 !
8 files changed, 112 insertions(+), 33 deletions(-)

 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
 yywrap.
lexer.l.patch | (download)

lexer.l | 24 21 + 3 - 0 !
1 file changed, 21 insertions(+), 3 deletions(-)

 need to patch lexel.l to get it to produce proper code
cmakelists.txt.patch | (download)

CMakeLists.txt | 147 147 + 0 - 0 !
1 file changed, 147 insertions(+)

 the main author prefer cmake type build system, original build
 system was replaced by a cmake based one
marker_o_rdwr.patch | (download)

marker.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 deprecated o_wronly, replaced by portable o_rdwr
pvrg jpeg etb.patch | (download)

globals.h | 2 2 + 0 - 0 !
io.c | 79 77 + 2 - 0 !
jpeg.c | 53 41 + 12 - 0 !
prototypes.h | 1 1 + 0 - 0 !
system.h | 2 2 + 0 - 0 !
5 files changed, 123 insertions(+), 14 deletions(-)

 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.
jpeg.1.patch | (download)

jpeg.1 | 111 61 + 50 - 0 !
1 file changed, 61 insertions(+), 50 deletions(-)

 replace jpeg with pvrg-jpeg. properly escape all - with \
implicitdecl.patch | (download)

huffman.c | 10 6 + 4 - 0 !
io.c | 20 11 + 9 - 0 !
jpeg.c | 16 9 + 7 - 0 !
marker.c | 2 2 + 0 - 0 !
stream.c | 3 2 + 1 - 0 !
transform.c | 1 1 + 0 - 0 !
6 files changed, 31 insertions(+), 21 deletions(-)

 fix implicit declarations
mayhem.patch | (download)

jpeg.c | 75 73 + 2 - 0 !
1 file changed, 73 insertions(+), 2 deletions(-)

 fix mayhem issue (if only upstream would use getopt ...)