Lines Matching refs:QuantumRange
490 if(PalHeader.MaxRed==0) PalHeader.MaxRed=(unsigned int) QuantumRange; /*avoid division by 0*/ in ReadCUTImage()
491 if(PalHeader.MaxGreen==0) PalHeader.MaxGreen=(unsigned int) QuantumRange; in ReadCUTImage()
492 if(PalHeader.MaxBlue==0) PalHeader.MaxBlue=(unsigned int) QuantumRange; in ReadCUTImage()
505 if (QuantumRange != (Quantum) PalHeader.MaxRed) in ReadCUTImage()
508 image->colormap[i].red*QuantumRange+(PalHeader.MaxRed>>1))/ in ReadCUTImage()
512 if (QuantumRange != (Quantum) PalHeader.MaxGreen) in ReadCUTImage()
515 … (((double) image->colormap[i].green*QuantumRange+(PalHeader.MaxGreen>>1))/PalHeader.MaxGreen); in ReadCUTImage()
518 if (QuantumRange != (Quantum) PalHeader.MaxBlue) in ReadCUTImage()
521 … (((double)image->colormap[i].blue*QuantumRange+(PalHeader.MaxBlue>>1))/PalHeader.MaxBlue); in ReadCUTImage()
629 image->colormap[1].blue=QuantumRange; in ReadCUTImage()
639 SetPixelRed(image,QuantumRange,q); in ReadCUTImage()
640 SetPixelGreen(image,QuantumRange,q); in ReadCUTImage()
641 SetPixelBlue(image,QuantumRange,q); in ReadCUTImage()