Lines Matching refs:gamma
144 gamma; in ReadHDRImage() local
306 image->gamma=StringToDouble(value,(char **) NULL); in ReadHDRImage()
487 gamma=pow(2.0,pixel[3]-(128.0+8.0)); in ReadHDRImage()
488 SetPixelRed(image,ClampToQuantum(QuantumRange*gamma*pixel[0]),q); in ReadHDRImage()
489 SetPixelGreen(image,ClampToQuantum(QuantumRange*gamma*pixel[1]),q); in ReadHDRImage()
490 SetPixelBlue(image,ClampToQuantum(QuantumRange*gamma*pixel[2]),q); in ReadHDRImage()
724 if (image->gamma != 0.0) in WriteHDRImage()
727 image->gamma); in WriteHDRImage()
769 gamma; in WriteHDRImage() local
775 gamma=QuantumScale*GetPixelRed(image,p); in WriteHDRImage()
776 if ((QuantumScale*GetPixelGreen(image,p)) > gamma) in WriteHDRImage()
777 gamma=QuantumScale*GetPixelGreen(image,p); in WriteHDRImage()
778 if ((QuantumScale*GetPixelBlue(image,p)) > gamma) in WriteHDRImage()
779 gamma=QuantumScale*GetPixelBlue(image,p); in WriteHDRImage()
780 if (gamma > MagickEpsilon) in WriteHDRImage()
785 gamma=frexp(gamma,&exponent)*256.0/gamma; in WriteHDRImage()
786 pixel[0]=(unsigned char) (gamma*QuantumScale*GetPixelRed(image,p)); in WriteHDRImage()
787 pixel[1]=(unsigned char) (gamma*QuantumScale*GetPixelGreen(image,p)); in WriteHDRImage()
788 pixel[2]=(unsigned char) (gamma*QuantumScale*GetPixelBlue(image,p)); in WriteHDRImage()