• Home
  • Raw
  • Download

Lines Matching refs:pixel

438   const CubeInfo *cube_info,const Quantum *pixel,DoublePixelInfo *alpha_pixel)  in AssociateAlphaPixel()  argument
444 (GetPixelAlpha(image,pixel) == OpaqueAlpha)) in AssociateAlphaPixel()
446 alpha_pixel->red=(double) GetPixelRed(image,pixel); in AssociateAlphaPixel()
447 alpha_pixel->green=(double) GetPixelGreen(image,pixel); in AssociateAlphaPixel()
448 alpha_pixel->blue=(double) GetPixelBlue(image,pixel); in AssociateAlphaPixel()
449 alpha_pixel->alpha=(double) GetPixelAlpha(image,pixel); in AssociateAlphaPixel()
452 alpha=(double) (QuantumScale*GetPixelAlpha(image,pixel)); in AssociateAlphaPixel()
453 alpha_pixel->red=alpha*GetPixelRed(image,pixel); in AssociateAlphaPixel()
454 alpha_pixel->green=alpha*GetPixelGreen(image,pixel); in AssociateAlphaPixel()
455 alpha_pixel->blue=alpha*GetPixelBlue(image,pixel); in AssociateAlphaPixel()
456 alpha_pixel->alpha=(double) GetPixelAlpha(image,pixel); in AssociateAlphaPixel()
460 const PixelInfo *pixel,DoublePixelInfo *alpha_pixel) in AssociateAlphaPixelInfo() argument
466 (pixel->alpha == OpaqueAlpha)) in AssociateAlphaPixelInfo()
468 alpha_pixel->red=(double) pixel->red; in AssociateAlphaPixelInfo()
469 alpha_pixel->green=(double) pixel->green; in AssociateAlphaPixelInfo()
470 alpha_pixel->blue=(double) pixel->blue; in AssociateAlphaPixelInfo()
471 alpha_pixel->alpha=(double) pixel->alpha; in AssociateAlphaPixelInfo()
474 alpha=(double) (QuantumScale*pixel->alpha); in AssociateAlphaPixelInfo()
475 alpha_pixel->red=alpha*pixel->red; in AssociateAlphaPixelInfo()
476 alpha_pixel->green=alpha*pixel->green; in AssociateAlphaPixelInfo()
477 alpha_pixel->blue=alpha*pixel->blue; in AssociateAlphaPixelInfo()
478 alpha_pixel->alpha=(double) pixel->alpha; in AssociateAlphaPixelInfo()
482 const DoublePixelInfo *pixel,size_t index) in ColorToNodeId() argument
487 id=(size_t) (((ScaleQuantumToChar(ClampPixel(pixel->red)) >> index) & 0x01) | in ColorToNodeId()
488 ((ScaleQuantumToChar(ClampPixel(pixel->green)) >> index) & 0x01) << 1 | in ColorToNodeId()
489 ((ScaleQuantumToChar(ClampPixel(pixel->blue)) >> index) & 0x01) << 2); in ColorToNodeId()
491 id|=((ScaleQuantumToChar(ClampPixel(pixel->alpha)) >> index) & 0x1) << 3; in ColorToNodeId()
566 pixel; in AssignImageColors() local
590 AssociateAlphaPixel(image,&cube,q,&pixel); in AssignImageColors()
594 id=ColorToNodeId(&cube,&pixel,index); in AssignImageColors()
602 cube.target=pixel; in AssignImageColors()
763 pixel; in ClassifyImageColors() local
833 AssociateAlphaPixel(image,cube_info,p,&pixel); in ClassifyImageColors()
844 id=ColorToNodeId(cube_info,&pixel,index); in ClassifyImageColors()
869 error.red=QuantumScale*(pixel.red-mid.red); in ClassifyImageColors()
870 error.green=QuantumScale*(pixel.green-mid.green); in ClassifyImageColors()
871 error.blue=QuantumScale*(pixel.blue-mid.blue); in ClassifyImageColors()
873 error.alpha=QuantumScale*(pixel.alpha-mid.alpha); in ClassifyImageColors()
886 node_info->total_color.red+=count*QuantumScale*ClampPixel(pixel.red); in ClassifyImageColors()
887 node_info->total_color.green+=count*QuantumScale*ClampPixel(pixel.green); in ClassifyImageColors()
888 node_info->total_color.blue+=count*QuantumScale*ClampPixel(pixel.blue); in ClassifyImageColors()
891 ClampPixel(pixel.alpha); in ClassifyImageColors()
940 AssociateAlphaPixel(image,cube_info,p,&pixel); in ClassifyImageColors()
951 id=ColorToNodeId(cube_info,&pixel,index); in ClassifyImageColors()
976 error.red=QuantumScale*(pixel.red-mid.red); in ClassifyImageColors()
977 error.green=QuantumScale*(pixel.green-mid.green); in ClassifyImageColors()
978 error.blue=QuantumScale*(pixel.blue-mid.blue); in ClassifyImageColors()
980 error.alpha=QuantumScale*(pixel.alpha-mid.alpha); in ClassifyImageColors()
993 node_info->total_color.red+=count*QuantumScale*ClampPixel(pixel.red); in ClassifyImageColors()
994 node_info->total_color.green+=count*QuantumScale*ClampPixel(pixel.green); in ClassifyImageColors()
995 node_info->total_color.blue+=count*QuantumScale*ClampPixel(pixel.blue); in ClassifyImageColors()
998 ClampPixel(pixel.alpha); in ClassifyImageColors()
1109 pixel; in ClosestColor() local
1134 pixel=alpha*p->red-beta*q->red; in ClosestColor()
1135 distance=pixel*pixel; in ClosestColor()
1138 pixel=alpha*p->green-beta*q->green; in ClosestColor()
1139 distance+=pixel*pixel; in ClosestColor()
1142 pixel=alpha*p->blue-beta*q->blue; in ClosestColor()
1143 distance+=pixel*pixel; in ClosestColor()
1148 pixel=p->alpha-q->alpha; in ClosestColor()
1149 distance+=pixel*pixel; in ClosestColor()
1468 const DoublePixelInfo *pixel) in CacheOffset() argument
1470 #define RedShift(pixel) (((pixel) >> CacheShift) << (0*(8-CacheShift))) in CacheOffset() argument
1471 #define GreenShift(pixel) (((pixel) >> CacheShift) << (1*(8-CacheShift))) in CacheOffset() argument
1472 #define BlueShift(pixel) (((pixel) >> CacheShift) << (2*(8-CacheShift))) in CacheOffset() argument
1473 #define AlphaShift(pixel) (((pixel) >> CacheShift) << (3*(8-CacheShift))) in CacheOffset() argument
1478 offset=(ssize_t) (RedShift(ScaleQuantumToChar(ClampPixel(pixel->red))) | in CacheOffset()
1479 GreenShift(ScaleQuantumToChar(ClampPixel(pixel->green))) | in CacheOffset()
1480 BlueShift(ScaleQuantumToChar(ClampPixel(pixel->blue)))); in CacheOffset()
1482 offset|=AlphaShift(ScaleQuantumToChar(ClampPixel(pixel->alpha))); in CacheOffset()
1551 pixel; in FloydSteinbergDither() local
1560 AssociateAlphaPixel(image,&cube,q+u*GetPixelChannels(image),&pixel); in FloydSteinbergDither()
1563 pixel.red+=7*current[u-v].red/16; in FloydSteinbergDither()
1564 pixel.green+=7*current[u-v].green/16; in FloydSteinbergDither()
1565 pixel.blue+=7*current[u-v].blue/16; in FloydSteinbergDither()
1567 pixel.alpha+=7*current[u-v].alpha/16; in FloydSteinbergDither()
1573 pixel.red+=previous[u+v].red/16; in FloydSteinbergDither()
1574 pixel.green+=previous[u+v].green/16; in FloydSteinbergDither()
1575 pixel.blue+=previous[u+v].blue/16; in FloydSteinbergDither()
1577 pixel.alpha+=previous[u+v].alpha/16; in FloydSteinbergDither()
1579 pixel.red+=5*previous[u].red/16; in FloydSteinbergDither()
1580 pixel.green+=5*previous[u].green/16; in FloydSteinbergDither()
1581 pixel.blue+=5*previous[u].blue/16; in FloydSteinbergDither()
1583 pixel.alpha+=5*previous[u].alpha/16; in FloydSteinbergDither()
1586 pixel.red+=3*previous[u-v].red/16; in FloydSteinbergDither()
1587 pixel.green+=3*previous[u-v].green/16; in FloydSteinbergDither()
1588 pixel.blue+=3*previous[u-v].blue/16; in FloydSteinbergDither()
1590 pixel.alpha+=3*previous[u-v].alpha/16; in FloydSteinbergDither()
1593 pixel.red=(double) ClampPixel(pixel.red); in FloydSteinbergDither()
1594 pixel.green=(double) ClampPixel(pixel.green); in FloydSteinbergDither()
1595 pixel.blue=(double) ClampPixel(pixel.blue); in FloydSteinbergDither()
1597 pixel.alpha=(double) ClampPixel(pixel.alpha); in FloydSteinbergDither()
1598 i=CacheOffset(&cube,&pixel); in FloydSteinbergDither()
1613 node_id=ColorToNodeId(&cube,&pixel,index); in FloydSteinbergDither()
1621 cube.target=pixel; in FloydSteinbergDither()
1651 current[u].red=pixel.red-color.red; in FloydSteinbergDither()
1652 current[u].green=pixel.green-color.green; in FloydSteinbergDither()
1653 current[u].blue=pixel.blue-color.blue; in FloydSteinbergDither()
1655 current[u].alpha=pixel.alpha-color.alpha; in FloydSteinbergDither()
1813 pixel; in RiemersmaDither() local
1840 AssociateAlphaPixel(image,cube_info,q,&pixel); in RiemersmaDither()
1843 pixel.red+=p->weights[i]*p->error[i].red; in RiemersmaDither()
1844 pixel.green+=p->weights[i]*p->error[i].green; in RiemersmaDither()
1845 pixel.blue+=p->weights[i]*p->error[i].blue; in RiemersmaDither()
1847 pixel.alpha+=p->weights[i]*p->error[i].alpha; in RiemersmaDither()
1849 pixel.red=(double) ClampPixel(pixel.red); in RiemersmaDither()
1850 pixel.green=(double) ClampPixel(pixel.green); in RiemersmaDither()
1851 pixel.blue=(double) ClampPixel(pixel.blue); in RiemersmaDither()
1853 pixel.alpha=(double) ClampPixel(pixel.alpha); in RiemersmaDither()
1854 i=CacheOffset(cube_info,&pixel); in RiemersmaDither()
1869 id=ColorToNodeId(cube_info,&pixel,index); in RiemersmaDither()
1877 p->target=pixel; in RiemersmaDither()
1905 p->error[ErrorQueueLength-1].red=pixel.red-color.red; in RiemersmaDither()
1906 p->error[ErrorQueueLength-1].green=pixel.green-color.green; in RiemersmaDither()
1907 p->error[ErrorQueueLength-1].blue=pixel.blue-color.blue; in RiemersmaDither()
1909 p->error[ErrorQueueLength-1].alpha=pixel.alpha-color.alpha; in RiemersmaDither()
2346 #define PosterizePixel(pixel) (Quantum) (QuantumRange*(MagickRound( \ in PosterizeImage() argument
2347 QuantumScale*pixel*(levels-1)))/MagickMax((ssize_t) levels-1,1)) in PosterizeImage()