Changeset 11588

Show
Ignore:
Timestamp:
07/07/08 16:29:04 (8 weeks ago)
Author:
cristy
Message:
 
Location:
ImageMagick/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/coders/dcm.c

    r11421 r11588  
    27392739    bytes_per_pixel, 
    27402740    datum, 
    2741     depth, 
    27422741    height, 
    27432742    high_bit, 
     
    28052804  height=0; 
    28062805  max_value=255UL; 
    2807   depth=8UL; 
     2806  image->=8UL; 
    28082807  mask=0xffff; 
    28092808  number_scenes=1; 
     
    30613060            if (datum > 8) 
    30623061              bytes_per_pixel=2; 
    3063             depth=bits_allocated; 
    3064             if (depth > 32) 
     3062            image->depth=bits_allocated; 
     3063            if (image->depth > 32) 
    30653064              ThrowReaderException(CorruptImageError,"ImproperImageHeader"); 
    30663065            max_value=(1UL << bits_allocated)-1; 
     
    30763075            if (significant_bits > 8) 
    30773076              bytes_per_pixel=2; 
    3078             depth=significant_bits; 
    3079             if (depth > 32) 
     3077            image->depth=significant_bits; 
     3078            if (image->depth > 32) 
    30803079              ThrowReaderException(CorruptImageError,"ImproperImageHeader"); 
    30813080            max_value=(1UL << significant_bits)-1; 
     
    33413340    } 
    33423341  scale=(Quantum *) NULL; 
    3343   if (depth != (1UL*MAGICKCORE_QUANTUM_DEPTH)) 
     3342  if (image->depth != (1UL*MAGICKCORE_QUANTUM_DEPTH)) 
    33443343    { 
    33453344      QuantumAny 
     
    33523351        Compute pixel scaling table. 
    33533352      */ 
    3354       length=(size_t) (GetQuantumRange(depth)+1); 
     3353      length=(size_t) (GetQuantumRange(image->depth)+1); 
    33553354      scale=(Quantum *) AcquireQuantumMemory(length,sizeof(*scale)); 
    33563355      if (scale == (Quantum *) NULL) 
    33573356        ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); 
    3358       quantum_scale=GetQuantumScale(depth); 
    3359       for (i=0; i < (long) (GetQuantumRange(depth)+1); i++) 
    3360         scale[i]=ScaleAnyToQuantum((unsigned long) i,depth,quantum_scale); 
     3357      quantum_scale=GetQuantumScale(image->depth); 
     3358      for (i=0; i < (long) (GetQuantumRange(image->depth)+1); i++) 
     3359        scale[i]=ScaleAnyToQuantum((unsigned long) i,image->depth, 
     3360          quantum_scale); 
    33613361    } 
    33623362  msb_first=strcmp(transfer_syntax,"1.2.840.10008.1.2.2") == 0 ? MagickTrue : 
  • ImageMagick/trunk/magick/nt-base.h

    r10855 r11588  
    8282#if !defined(fileno) 
    8383#  define fileno  _fileno 
     84#endif 
     85#if !defined(fsync) 
     86#  define fsync  _commit 
    8487#endif 
    8588#if !defined(ftruncate)