Program: gdcm
Module: $RCSfile: gdcmJPEGFragment.cxx,v $
Language: C++
- Date: $Date: 2005/01/31 03:22:25 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2005/01/31 04:00:04 $
+ Version: $Revision: 1.11 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Offset = 0;
Length = 0;
-// StateSuspension = 0;
-// void *SampBuffer;
pImage = 0;
}
if ( nBits == 8 )
{
- // JPEG Lossy : call to IJG 6b
- if ( ! this->gdcm_read_JPEG_file8( fp, buffer, statesuspension) )
- {
- //return false;
- }
+ // JPEG Lossy : call to IJG 6b - 8 bits
+ ReadJPEGFile8( fp, buffer, statesuspension);
}
else if ( nBits <= 12 )
{
- // Reading Fragment pixels
- if ( ! this->gdcm_read_JPEG_file12 ( fp, buffer, statesuspension) )
- {
- //return false;
- }
+ // JPEG Lossy : call to IJG 6b - 8 bits
+ ReadJPEGFile12 ( fp, buffer, statesuspension);
}
else if ( nBits <= 16 )
{
- // Reading Fragment pixels
- if ( ! this->gdcm_read_JPEG_file16 ( fp, buffer, statesuspension) )
- {
- //return false;
- }
+ // JPEG Lossy : call to IJG 6b - 8 bits
+ ReadJPEGFile16 ( fp, buffer, statesuspension);
//gdcmAssertMacro( IsJPEGLossless );
}
else
// other JPEG lossy not supported
gdcmErrorMacro( "Unknown jpeg lossy compression ");
- //return false;
}
-
}
} // end namespace gdcm