Lines Matching refs:alpha
2173 pixel->alpha=(double) OpaqueAlpha; in GetPixelInfo()
4509 alpha, in CatromWeights() local
4520 alpha=(double) 1.0-x; in CatromWeights()
4521 beta=(double) (-0.5)*x*alpha; in CatromWeights()
4522 (*weights)[0]=alpha*beta; in CatromWeights()
4529 (*weights)[1]=alpha-(*weights)[0]+gamma; in CatromWeights()
4536 alpha, in SplineWeights() local
4545 alpha=(double) 1.0-x; in SplineWeights()
4547 (*weights)[0]=(double) (1.0/6.0)*alpha*alpha*alpha; in SplineWeights()
4549 (*weights)[1]=alpha-(*weights)[0]+beta; in SplineWeights()
4574 alpha[16], in InterpolatePixelChannel() local
4642 alpha[i]=1.0; in InterpolatePixelChannel()
4648 alpha[i]=QuantumScale*GetPixelAlpha(image,p+i* in InterpolatePixelChannel()
4650 pixels[i]=alpha[i]*p[i*GetPixelChannels(image)+channel]; in InterpolatePixelChannel()
4654 gamma=PerceptibleReciprocal(alpha[i])/count; in InterpolatePixelChannel()
4675 alpha[i]=1.0; in InterpolatePixelChannel()
4681 alpha[i]=QuantumScale*GetPixelAlpha(image,p+i* in InterpolatePixelChannel()
4683 pixels[i]=alpha[i]*p[i*GetPixelChannels(image)+channel]; in InterpolatePixelChannel()
4689 gamma=((epsilon.y*(epsilon.x*alpha[0]+delta.x*alpha[1])+delta.y* in InterpolatePixelChannel()
4690 (epsilon.x*alpha[2]+delta.x*alpha[3]))); in InterpolatePixelChannel()
4707 alpha[i]=1.0; in InterpolatePixelChannel()
4713 alpha[i]=QuantumScale*GetPixelAlpha(image,p+i* in InterpolatePixelChannel()
4715 pixels[i]=alpha[i]*p[i*GetPixelChannels(image)+channel]; in InterpolatePixelChannel()
4721 alpha[i]=alpha[i+2]; /* take right pixels */ in InterpolatePixelChannel()
4728 alpha[i]+=alpha[i+2]; /* add up alpha weights */ in InterpolatePixelChannel()
4734 alpha[0]=alpha[1]; /* take bottom row blend */ in InterpolatePixelChannel()
4741 alpha[0]+=alpha[1]; /* add up alpha weights */ in InterpolatePixelChannel()
4745 gamma=PerceptibleReciprocal(alpha[0]); /* (color) 1/alpha_weights */ in InterpolatePixelChannel()
4767 alpha[i]=1.0; in InterpolatePixelChannel()
4773 alpha[i]=QuantumScale*GetPixelAlpha(image,p+i* in InterpolatePixelChannel()
4775 pixels[i]=alpha[i]*p[i*GetPixelChannels(image)+channel]; in InterpolatePixelChannel()
4780 PerceptibleReciprocal(cy[0]*(cx[0]*alpha[0]+cx[1]*alpha[1]+cx[2]* in InterpolatePixelChannel()
4781 alpha[2]+cx[3]*alpha[3])+cy[1]*(cx[0]*alpha[4]+cx[1]*alpha[5]+cx[2]* in InterpolatePixelChannel()
4782 alpha[6]+cx[3]*alpha[7])+cy[2]*(cx[0]*alpha[8]+cx[1]*alpha[9]+cx[2]* in InterpolatePixelChannel()
4783 alpha[10]+cx[3]*alpha[11])+cy[3]*(cx[0]*alpha[12]+cx[1]*alpha[13]+ in InterpolatePixelChannel()
4784 cx[2]*alpha[14]+cx[3]*alpha[15]))); in InterpolatePixelChannel()
4831 alpha[i]=1.0; in InterpolatePixelChannel()
4837 alpha[i]=QuantumScale*GetPixelAlpha(image,p+i* in InterpolatePixelChannel()
4839 pixels[i]=alpha[i]*p[i*GetPixelChannels(image)+channel]; in InterpolatePixelChannel()
4858 gamma=MeshInterpolate(&delta,alpha[2],alpha[3],alpha[0]); in InterpolatePixelChannel()
4869 gamma=MeshInterpolate(&delta,alpha[1],alpha[0],alpha[3]); in InterpolatePixelChannel()
4885 gamma=MeshInterpolate(&delta,alpha[0],alpha[1],alpha[2]); in InterpolatePixelChannel()
4897 gamma=MeshInterpolate(&delta,alpha[3],alpha[2],alpha[1]); in InterpolatePixelChannel()
4921 alpha[i]=1.0; in InterpolatePixelChannel()
4927 alpha[i]=QuantumScale*GetPixelAlpha(image,p+i* in InterpolatePixelChannel()
4929 pixels[i]=alpha[i]*p[i*GetPixelChannels(image)+channel]; in InterpolatePixelChannel()
4934 PerceptibleReciprocal(cy[0]*(cx[0]*alpha[0]+cx[1]*alpha[1]+cx[2]* in InterpolatePixelChannel()
4935 alpha[2]+cx[3]*alpha[3])+cy[1]*(cx[0]*alpha[4]+cx[1]*alpha[5]+cx[2]* in InterpolatePixelChannel()
4936 alpha[6]+cx[3]*alpha[7])+cy[2]*(cx[0]*alpha[8]+cx[1]*alpha[9]+cx[2]* in InterpolatePixelChannel()
4937 alpha[10]+cx[3]*alpha[11])+cy[3]*(cx[0]*alpha[12]+cx[1]*alpha[13]+ in InterpolatePixelChannel()
4938 cx[2]*alpha[14]+cx[3]*alpha[15]))); in InterpolatePixelChannel()
5001 alpha[16], in InterpolatePixelChannels() local
5086 alpha[j]=QuantumScale*GetPixelAlpha(source,p+j* in InterpolatePixelChannels()
5088 pixels[j]*=alpha[j]; in InterpolatePixelChannels()
5089 gamma=PerceptibleReciprocal(alpha[j]); in InterpolatePixelChannels()
5136 alpha[0]=QuantumScale*GetPixelAlpha(source,p); in InterpolatePixelChannels()
5137 alpha[1]=QuantumScale*GetPixelAlpha(source,p+GetPixelChannels(source)); in InterpolatePixelChannels()
5138 alpha[2]=QuantumScale*GetPixelAlpha(source,p+2* in InterpolatePixelChannels()
5140 alpha[3]=QuantumScale*GetPixelAlpha(source,p+3* in InterpolatePixelChannels()
5142 pixels[0]*=alpha[0]; in InterpolatePixelChannels()
5143 pixels[1]*=alpha[1]; in InterpolatePixelChannels()
5144 pixels[2]*=alpha[2]; in InterpolatePixelChannels()
5145 pixels[3]*=alpha[3]; in InterpolatePixelChannels()
5146 gamma=((epsilon.y*(epsilon.x*alpha[0]+delta.x*alpha[1])+delta.y* in InterpolatePixelChannels()
5147 (epsilon.x*alpha[2]+delta.x*alpha[3]))); in InterpolatePixelChannels()
5178 alpha[j]=1.0; in InterpolatePixelChannels()
5184 alpha[j]=QuantumScale*GetPixelAlpha(source,p+j* in InterpolatePixelChannels()
5188 pixels[j]*=alpha[j]; in InterpolatePixelChannels()
5195 alpha[j]=alpha[j+2]; /* take right pixels */ in InterpolatePixelChannels()
5202 alpha[j]+=alpha[j+2]; /* add up alpha weights */ in InterpolatePixelChannels()
5208 alpha[0]=alpha[1]; /* take bottom row blend */ in InterpolatePixelChannels()
5215 alpha[0]+=alpha[1]; /* add up alpha weights */ in InterpolatePixelChannels()
5219 gamma=PerceptibleReciprocal(alpha[0]); /* (color) 1/alpha_weights */ in InterpolatePixelChannels()
5255 alpha[j]=1.0; in InterpolatePixelChannels()
5261 alpha[j]=QuantumScale*GetPixelAlpha(source,p+j* in InterpolatePixelChannels()
5263 pixels[j]=alpha[j]*p[j*GetPixelChannels(source)+i]; in InterpolatePixelChannels()
5268 PerceptibleReciprocal(cy[0]*(cx[0]*alpha[0]+cx[1]*alpha[1]+cx[2]* in InterpolatePixelChannels()
5269 alpha[2]+cx[3]*alpha[3])+cy[1]*(cx[0]*alpha[4]+cx[1]*alpha[5]+cx[2]* in InterpolatePixelChannels()
5270 alpha[6]+cx[3]*alpha[7])+cy[2]*(cx[0]*alpha[8]+cx[1]*alpha[9]+cx[2]* in InterpolatePixelChannels()
5271 alpha[10]+cx[3]*alpha[11])+cy[3]*(cx[0]*alpha[12]+cx[1]*alpha[13]+ in InterpolatePixelChannels()
5272 cx[2]*alpha[14]+cx[3]*alpha[15]))); in InterpolatePixelChannels()
5353 alpha[0]=1.0; in InterpolatePixelChannels()
5354 alpha[1]=1.0; in InterpolatePixelChannels()
5355 alpha[2]=1.0; in InterpolatePixelChannels()
5356 alpha[3]=1.0; in InterpolatePixelChannels()
5360 alpha[0]=QuantumScale*GetPixelAlpha(source,p); in InterpolatePixelChannels()
5361 alpha[1]=QuantumScale*GetPixelAlpha(source,p+ in InterpolatePixelChannels()
5363 alpha[2]=QuantumScale*GetPixelAlpha(source,p+2* in InterpolatePixelChannels()
5365 alpha[3]=QuantumScale*GetPixelAlpha(source,p+3* in InterpolatePixelChannels()
5386 gamma=MeshInterpolate(&delta,alpha[2],alpha[3],alpha[0]); in InterpolatePixelChannels()
5397 gamma=MeshInterpolate(&delta,alpha[1],alpha[0],alpha[3]); in InterpolatePixelChannels()
5413 gamma=MeshInterpolate(&delta,alpha[0],alpha[1],alpha[2]); in InterpolatePixelChannels()
5425 gamma=MeshInterpolate(&delta,alpha[3],alpha[2],alpha[1]); in InterpolatePixelChannels()
5462 alpha[j]=1.0; in InterpolatePixelChannels()
5468 alpha[j]=QuantumScale*GetPixelAlpha(source,p+j* in InterpolatePixelChannels()
5470 pixels[j]=alpha[j]*p[j*GetPixelChannels(source)+i]; in InterpolatePixelChannels()
5475 PerceptibleReciprocal(cy[0]*(cx[0]*alpha[0]+cx[1]*alpha[1]+cx[2]* in InterpolatePixelChannels()
5476 alpha[2]+cx[3]*alpha[3])+cy[1]*(cx[0]*alpha[4]+cx[1]*alpha[5]+cx[2]* in InterpolatePixelChannels()
5477 alpha[6]+cx[3]*alpha[7])+cy[2]*(cx[0]*alpha[8]+cx[1]*alpha[9]+cx[2]* in InterpolatePixelChannels()
5478 alpha[10]+cx[3]*alpha[11])+cy[3]*(cx[0]*alpha[12]+cx[1]*alpha[13]+ in InterpolatePixelChannels()
5479 cx[2]*alpha[14]+cx[3]*alpha[15]))); in InterpolatePixelChannels()
5534 const Quantum *pixel,PixelInfo *pixel_info,double *alpha) in AlphaBlendPixelInfo() argument
5538 *alpha=1.0; in AlphaBlendPixelInfo()
5545 pixel_info->alpha=(double) GetPixelAlpha(image,pixel); in AlphaBlendPixelInfo()
5548 *alpha=QuantumScale*GetPixelAlpha(image,pixel); in AlphaBlendPixelInfo()
5549 pixel_info->red=(*alpha*GetPixelRed(image,pixel)); in AlphaBlendPixelInfo()
5550 pixel_info->green=(*alpha*GetPixelGreen(image,pixel)); in AlphaBlendPixelInfo()
5551 pixel_info->blue=(*alpha*GetPixelBlue(image,pixel)); in AlphaBlendPixelInfo()
5554 pixel_info->black=(*alpha*GetPixelBlack(image,pixel)); in AlphaBlendPixelInfo()
5555 pixel_info->alpha=(double) GetPixelAlpha(image,pixel); in AlphaBlendPixelInfo()
5566 alpha[16], in InterpolatePixelInfo() local
5628 pixel->alpha=0.0; in InterpolatePixelInfo()
5632 AlphaBlendPixelInfo(image,p,pixels,alpha); in InterpolatePixelInfo()
5633 gamma=PerceptibleReciprocal(alpha[0]); in InterpolatePixelInfo()
5638 pixel->alpha+=pixels[0].alpha; in InterpolatePixelInfo()
5646 pixel->alpha*=gamma; in InterpolatePixelInfo()
5668 AlphaBlendPixelInfo(image,p+i*GetPixelChannels(image),pixels+i,alpha+i); in InterpolatePixelInfo()
5673 gamma=((epsilon.y*(epsilon.x*alpha[0]+delta.x*alpha[1])+delta.y* in InterpolatePixelInfo()
5674 (epsilon.x*alpha[2]+delta.x*alpha[3]))); in InterpolatePixelInfo()
5690 pixel->alpha=gamma*(epsilon.y*(epsilon.x*pixels[0].alpha+delta.x* in InterpolatePixelInfo()
5691 pixels[1].alpha)+delta.y*(epsilon.x*pixels[2].alpha+delta.x* in InterpolatePixelInfo()
5692 pixels[3].alpha)); in InterpolatePixelInfo()
5706 AlphaBlendPixelInfo(image,p+i*GetPixelChannels(image),pixels+i,alpha+i); in InterpolatePixelInfo()
5713 alpha[i]=alpha[i+2]; /* take right pixels */ in InterpolatePixelInfo()
5720 alpha[i]+=alpha[i+2]; /* add up alpha weights */ in InterpolatePixelInfo()
5725 pixels[i].alpha+=pixels[i+2].alpha; in InterpolatePixelInfo()
5730 alpha[0]=alpha[1]; in InterpolatePixelInfo()
5737 alpha[0]+= alpha[1]; /* add up alpha weights */ in InterpolatePixelInfo()
5742 pixels[0].alpha+=pixels[1].alpha; in InterpolatePixelInfo()
5745 alpha[0]=PerceptibleReciprocal(alpha[0]); in InterpolatePixelInfo()
5746 pixel->red=alpha[0]*pixels[0].red; in InterpolatePixelInfo()
5747 pixel->green=alpha[0]*pixels[0].green; /* divide by sum of alpha */ in InterpolatePixelInfo()
5748 pixel->blue=alpha[0]*pixels[0].blue; in InterpolatePixelInfo()
5749 pixel->black=alpha[0]*pixels[0].black; in InterpolatePixelInfo()
5750 pixel->alpha=gamma*pixels[0].alpha; /* divide by number of pixels */ in InterpolatePixelInfo()
5767 AlphaBlendPixelInfo(image,p+i*GetPixelChannels(image),pixels+i,alpha+i); in InterpolatePixelInfo()
5797 pixel->alpha=(cy[0]*(cx[0]*pixels[0].alpha+cx[1]*pixels[1].alpha+cx[2]* in InterpolatePixelInfo()
5798 pixels[2].alpha+cx[3]*pixels[3].alpha)+cy[1]*(cx[0]*pixels[4].alpha+ in InterpolatePixelInfo()
5799 cx[1]*pixels[5].alpha+cx[2]*pixels[6].alpha+cx[3]*pixels[7].alpha)+ in InterpolatePixelInfo()
5800 cy[2]*(cx[0]*pixels[8].alpha+cx[1]*pixels[9].alpha+cx[2]* in InterpolatePixelInfo()
5801 pixels[10].alpha+cx[3]*pixels[11].alpha)+cy[3]*(cx[0]*pixels[12].alpha+ in InterpolatePixelInfo()
5802 cx[1]*pixels[13].alpha+cx[2]*pixels[14].alpha+cx[3]*pixels[15].alpha)); in InterpolatePixelInfo()
5834 AlphaBlendPixelInfo(image,p,pixels+0,alpha+0); in InterpolatePixelInfo()
5835 AlphaBlendPixelInfo(image,p+GetPixelChannels(image),pixels+1,alpha+1); in InterpolatePixelInfo()
5836 AlphaBlendPixelInfo(image,p+2*GetPixelChannels(image),pixels+2,alpha+2); in InterpolatePixelInfo()
5837 AlphaBlendPixelInfo(image,p+3*GetPixelChannels(image),pixels+3,alpha+3); in InterpolatePixelInfo()
5849 gamma=MeshInterpolate(&delta,alpha[2],alpha[3],alpha[0]); in InterpolatePixelInfo()
5861 pixel->alpha=gamma*MeshInterpolate(&delta,pixels[2].alpha, in InterpolatePixelInfo()
5862 pixels[3].alpha,pixels[0].alpha); in InterpolatePixelInfo()
5870 gamma=MeshInterpolate(&delta,alpha[1],alpha[0],alpha[3]); in InterpolatePixelInfo()
5882 pixel->alpha=gamma*MeshInterpolate(&delta,pixels[1].alpha, in InterpolatePixelInfo()
5883 pixels[0].alpha,pixels[3].alpha); in InterpolatePixelInfo()
5896 gamma=MeshInterpolate(&delta,alpha[0],alpha[1],alpha[2]); in InterpolatePixelInfo()
5908 pixel->alpha=gamma*MeshInterpolate(&delta,pixels[0].alpha, in InterpolatePixelInfo()
5909 pixels[1].alpha,pixels[2].alpha); in InterpolatePixelInfo()
5918 gamma=MeshInterpolate(&delta,alpha[3],alpha[2],alpha[1]); in InterpolatePixelInfo()
5930 pixel->alpha=gamma*MeshInterpolate(&delta,pixels[3].alpha, in InterpolatePixelInfo()
5931 pixels[2].alpha,pixels[1].alpha); in InterpolatePixelInfo()
5963 AlphaBlendPixelInfo(image,p+i*GetPixelChannels(image),pixels+i,alpha+i); in InterpolatePixelInfo()
5992 pixel->alpha=(cy[0]*(cx[0]*pixels[0].alpha+cx[1]*pixels[1].alpha+cx[2]* in InterpolatePixelInfo()
5993 pixels[2].alpha+cx[3]*pixels[3].alpha)+cy[1]*(cx[0]*pixels[4].alpha+ in InterpolatePixelInfo()
5994 cx[1]*pixels[5].alpha+cx[2]*pixels[6].alpha+cx[3]*pixels[7].alpha)+ in InterpolatePixelInfo()
5995 cy[2]*(cx[0]*pixels[8].alpha+cx[1]*pixels[9].alpha+cx[2]* in InterpolatePixelInfo()
5996 pixels[10].alpha+cx[3]*pixels[11].alpha)+cy[3]*(cx[0]*pixels[12].alpha+ in InterpolatePixelInfo()
5997 cx[1]*pixels[13].alpha+cx[2]*pixels[14].alpha+cx[3]*pixels[15].alpha)); in InterpolatePixelInfo()
6168 pixel=(p->alpha_trait != UndefinedPixelTrait ? p->alpha : OpaqueAlpha)- in IsFuzzyEquivalencePixelInfo()
6169 (q->alpha_trait != UndefinedPixelTrait ? q->alpha : OpaqueAlpha); in IsFuzzyEquivalencePixelInfo()
6178 scale=(QuantumScale*p->alpha); in IsFuzzyEquivalencePixelInfo()
6180 scale*=(QuantumScale*q->alpha); in IsFuzzyEquivalencePixelInfo()