Package: dicom3tools
Version: 1.0~20120305-1
Severity: normal

the attached code from jpegdump.cc looks suspicious. It looks as if Code-block 
style for the SPcod and SPcoc parameters where computed from Scod while it 
should computed from Code-block style. As per Table A.15 Coding style parameter 
values of the SPcod and SPcoc parameters

-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'), (100, 
'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dicom3tools depends on:
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.5-8  GCC support library
ii  libstdc++6                    4.4.5-8    The GNU Standard C++ Library v3

dicom3tools recommends no packages.

Versions of packages dicom3tools suggests:
ii  dcmtk                      3.6.0-9       OFFIS DICOM toolkit command line u
ii  libgdcm-tools              2.0.16-2      Grassroots DICOM tools and utiliti
ii  pvrg-jpeg                  1.2.1+dfsg1-1 Stanford PVRG JPEG tool

-- no debconf information
	JPEG_COD_Parameters(const unsigned char *buffer,size_t length)
		{
			Scod = buffer[0];
			VariablePrecinctSize = (Scod & 0x01) != 0;
			SOPMarkerSegments    = (Scod & 0x02) != 0;
			EPHPMarkerSegments   = (Scod & 0x04) != 0;

			ProgressionOrder = buffer[1];
			descriptionOfProgressionOrder = getDescriptionOfProgressionOrder(ProgressionOrder);
			
			NumberOfLayers  = (buffer[2]<<8)+buffer[3];

			MultipleComponentTransformation = buffer[4];
			descriptionOfMultipleComponentTransformation = getDescriptionOfMultipleComponentTransformation(MultipleComponentTransformation);
			
			NumberOfDecompositionLevels = buffer[5];
			CodeBlockWidth              = buffer[6];
			CodeBlockHeight             = buffer[7];
			
			CodeBlockStyle				= buffer[8];
			// Table A.19 - Code-block style for the SPcod and SPcoc parameters 
			SelectiveArithmeticCodingBypass                 = (Scod & 0x01) != 0;
			ResetContextProbabilitiesOnCodingPassBoundaries = (Scod & 0x02) != 0;
			TerminationOnEachCodingPass                     = (Scod & 0x04) != 0;
			VerticallyCausalContext                         = (Scod & 0x08) != 0;
			PredictableTermination                          = (Scod & 0x10) != 0;
			SegmentationSymbolsAreUsed                      = (Scod & 0x20) != 0;


Reply via email to