Home
last modified time | relevance | path

Searched refs:pixel (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/external/ImageMagick/MagickCore/
Dquantum-import.c124 const unsigned char *magick_restrict pixels,double *pixel) in PushDoublePixel() argument
143 *pixel=(*p); in PushDoublePixel()
144 *pixel-=quantum_info->minimum; in PushDoublePixel()
145 *pixel*=quantum_info->scale; in PushDoublePixel()
157 *pixel=(*p); in PushDoublePixel()
158 *pixel-=quantum_info->minimum; in PushDoublePixel()
159 *pixel*=quantum_info->scale; in PushDoublePixel()
164 const unsigned char *magick_restrict pixels,float *pixel) in PushFloatPixel() argument
179 *pixel=(*p); in PushFloatPixel()
180 *pixel-=quantum_info->minimum; in PushFloatPixel()
[all …]
Dquantum-export.c114 const double pixel,unsigned char *magick_restrict pixels) in PopDoublePixel() argument
124 *p=(double) (pixel*quantum_info->state.inverse_scale+quantum_info->minimum); in PopDoublePixel()
149 const float pixel,unsigned char *magick_restrict pixels) in PopFloatPixel() argument
159 *p=(float) ((double) pixel*quantum_info->state.inverse_scale+ in PopFloatPixel()
177 const QuantumAny pixel,unsigned char *magick_restrict pixels) in PopQuantumPixel() argument
198 *pixels|=(((pixel >> i) &~ ((~0UL) << quantum_bits)) << in PopQuantumPixel()
210 const size_t pixel,unsigned char *magick_restrict pixels) in PopQuantumLongPixel() argument
225 quantum_info->state.pixel|=(((pixel >> (quantum_info->depth-i)) & in PopQuantumLongPixel()
232 pixels=PopLongPixel(quantum_info->endian,quantum_info->state.pixel, in PopQuantumLongPixel()
234 quantum_info->state.pixel=0U; in PopQuantumLongPixel()
[all …]
Dpixel-accessor.h48 const Quantum *magick_restrict pixel) in GetPixela() argument
50 return(pixel[image->channel_map[aPixelChannel].offset]); in GetPixela()
54 const Quantum *magick_restrict pixel) in GetPixelAlpha() argument
58 return(pixel[image->channel_map[AlphaPixelChannel].offset]); in GetPixelAlpha()
68 const Quantum *magick_restrict pixel) in GetPixelb() argument
70 return(pixel[image->channel_map[bPixelChannel].offset]); in GetPixelb()
74 const Quantum *magick_restrict pixel) in GetPixelBlack() argument
78 return(pixel[image->channel_map[BlackPixelChannel].offset]); in GetPixelBlack()
88 const Quantum *magick_restrict pixel) in GetPixelBlue() argument
90 return(pixel[image->channel_map[BluePixelChannel].offset]); in GetPixelBlue()
[all …]
Dcolorspace-private.h30 static inline void ConvertCMYKToRGB(PixelInfo *pixel) in ConvertCMYKToRGB() argument
32 pixel->red=((QuantumRange-(QuantumScale*pixel->red*(QuantumRange- in ConvertCMYKToRGB()
33 pixel->black)+pixel->black))); in ConvertCMYKToRGB()
34 pixel->green=((QuantumRange-(QuantumScale*pixel->green*(QuantumRange- in ConvertCMYKToRGB()
35 pixel->black)+pixel->black))); in ConvertCMYKToRGB()
36 pixel->blue=((QuantumRange-(QuantumScale*pixel->blue*(QuantumRange- in ConvertCMYKToRGB()
37 pixel->black)+pixel->black))); in ConvertCMYKToRGB()
40 static inline void ConvertRGBToCMYK(PixelInfo *pixel) in ConvertRGBToCMYK() argument
51 if (pixel->colorspace != sRGBColorspace) in ConvertRGBToCMYK()
53 red=QuantumScale*pixel->red; in ConvertRGBToCMYK()
[all …]
Dcomposite.c782 pixel; local
868 GetPixelInfo(image,&pixel);
925 (double) y_offset+y,&pixel,exception);
926 SetPixelViaPixelInfo(canvas_image,&pixel,q);
952 pixel; local
1046 GetPixelInfo(image,&pixel);
1092 &pixel,exception);
1096 pixel.alpha=(MagickRealType) QuantumRange*(QuantumScale*pixel.alpha)*
1098 SetPixelViaPixelInfo(canvas_image,&pixel,q);
1329 pixel; local
[all …]
Dquantize.c438 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()
[all …]
Dcolor.c1125 MagickExport void ConcatenateColorComponent(const PixelInfo *pixel, in ConcatenateColorComponent() argument
1139 color=pixel->red; in ConcatenateColorComponent()
1144 color=pixel->green; in ConcatenateColorComponent()
1149 color=pixel->blue; in ConcatenateColorComponent()
1154 color=pixel->alpha; in ConcatenateColorComponent()
1159 color=pixel->black; in ConcatenateColorComponent()
1167 if (pixel->colorspace == LabColorspace) in ConcatenateColorComponent()
1181 if (pixel->depth > 16) in ConcatenateColorComponent()
1188 if (pixel->depth > 8) in ConcatenateColorComponent()
1207 if ((pixel->colorspace == HCLColorspace) || in ConcatenateColorComponent()
[all …]
Dresample.c318 PixelInfo *pixel,ExceptionInfo *exception) in ResamplePixelColor() argument
336 resample_filter->interpolate,u0,v0,pixel,resample_filter->exception); in ResamplePixelColor()
421 IntegerInterpolatePixel,u0,v0,pixel,resample_filter->exception); in ResamplePixelColor()
450 resample_filter->view,AverageInterpolatePixel,u0,v0,pixel, in ResamplePixelColor()
457 resample_filter->view,IntegerInterpolatePixel,-1.0,-1.0,pixel, in ResamplePixelColor()
482 *pixel=resample_filter->average_pixel; /* FAILED */ in ResamplePixelColor()
491 *pixel=resample_filter->average_pixel; /* FAILED */ in ResamplePixelColor()
533 *pixel=resample_filter->average_pixel; in ResamplePixelColor()
545 pixel->red = pixel->green = pixel->blue = 0.0; in ResamplePixelColor()
546 if (pixel->colorspace == CMYKColorspace) in ResamplePixelColor()
[all …]
Dcache-view.c702 const CacheView *cache_view,const ssize_t x,const ssize_t y,Quantum *pixel, in GetOneCacheViewAuthenticPixel() argument
717 (void) memset(pixel,0,MaxPixelChannels*sizeof(*pixel)); in GetOneCacheViewAuthenticPixel()
726 pixel[RedPixelChannel]=ClampToQuantum(background_color.red); in GetOneCacheViewAuthenticPixel()
727 pixel[GreenPixelChannel]=ClampToQuantum(background_color.green); in GetOneCacheViewAuthenticPixel()
728 pixel[BluePixelChannel]=ClampToQuantum(background_color.blue); in GetOneCacheViewAuthenticPixel()
729 pixel[BlackPixelChannel]=ClampToQuantum(background_color.black); in GetOneCacheViewAuthenticPixel()
730 pixel[AlphaPixelChannel]=ClampToQuantum(background_color.alpha); in GetOneCacheViewAuthenticPixel()
736 pixel[channel]=q[i]; in GetOneCacheViewAuthenticPixel()
774 const CacheView *cache_view,const ssize_t x,const ssize_t y,Quantum *pixel, in GetOneCacheViewVirtualPixel() argument
789 (void) memset(pixel,0,MaxPixelChannels*sizeof(*pixel)); in GetOneCacheViewVirtualPixel()
[all …]
Dxwindow.c466 const XPixelInfo *pixel,XAnnotateInfo *annotate_info,Image *image, in XAnnotateImage() argument
507 assert(pixel != (XPixelInfo *) NULL); in XAnnotateImage()
586 pixel->box_color.red),q); in XAnnotateImage()
588 pixel->box_color.green),q); in XAnnotateImage()
590 pixel->box_color.blue),q); in XAnnotateImage()
601 pixel->pen_color.red),q); in XAnnotateImage()
603 pixel->pen_color.green),q); in XAnnotateImage()
605 pixel->pen_color.blue),q); in XAnnotateImage()
1033 pixel; in XBestPixel() local
1071 colors[i].pixel=(size_t) i; in XBestPixel()
[all …]
/external/ImageMagick/MagickWand/
Dpixel-wand.c75 pixel; member
116 wand->pixel.colorspace=sRGBColorspace; in ClearPixelWand()
161 clone_wand->pixel=wand->pixel; in ClonePixelWand()
332 p->pixel.fuzz=fuzz; in IsPixelWandSimilar()
333 q->pixel.fuzz=fuzz; in IsPixelWandSimilar()
334 return(IsFuzzyEquivalencePixelInfo(&p->pixel,&q->pixel)); in IsPixelWandSimilar()
412 GetPixelInfo((Image *) NULL,&wand->pixel); in NewPixelWand()
520 return((double) QuantumScale*wand->pixel.alpha); in PixelGetAlpha()
551 return(ClampToQuantum(wand->pixel.alpha)); in PixelGetAlphaQuantum()
582 return((double) QuantumScale*wand->pixel.black); in PixelGetBlack()
[all …]
/external/ImageMagick/coders/
Dpnm.c537 pixel; in ReadPNMImage() local
539 pixel=ScaleAnyToQuantum(PNMInteger(image,10,exception),max_value); in ReadPNMImage()
542 SetPixelRed(image,pixel,q); in ReadPNMImage()
543 pixel=ScaleAnyToQuantum(PNMInteger(image,10,exception),max_value); in ReadPNMImage()
544 SetPixelGreen(image,pixel,q); in ReadPNMImage()
545 pixel=ScaleAnyToQuantum(PNMInteger(image,10,exception),max_value); in ReadPNMImage()
546 SetPixelBlue(image,pixel,q); in ReadPNMImage()
709 pixel; in ReadPNMImage() local
714 pixel; in ReadPNMImage() local
718 p=PushCharPixel(p,&pixel); in ReadPNMImage()
[all …]
Dhdr.c172 pixel[4], in ReadHDRImage() local
416 count=ReadBlob(image,4*sizeof(*pixel),pixel); in ReadHDRImage()
419 if ((size_t) ((((size_t) pixel[2]) << 8) | pixel[3]) != image->columns) in ReadHDRImage()
421 (void) memcpy(pixels,pixel,4*sizeof(*pixel)); in ReadHDRImage()
433 count=ReadBlob(image,2*sizeof(*pixel),pixel); in ReadHDRImage()
436 if (pixel[0] > 128) in ReadHDRImage()
438 count=(ssize_t) pixel[0]-128; in ReadHDRImage()
442 *p++=pixel[1]; in ReadHDRImage()
446 count=(ssize_t) pixel[0]; in ReadHDRImage()
449 *p++=pixel[1]; in ReadHDRImage()
[all …]
Dmiff.c189 size_t *length,PixelInfo *pixel,ExceptionInfo *exception) in PushRunlengthPacket() argument
197 pixel->index=0; in PushRunlengthPacket()
202 pixel->index=ConstrainColormapIndex(image,((size_t) *p << 24) | in PushRunlengthPacket()
210 pixel->index=ConstrainColormapIndex(image,(*p << 8) | *(p+1), in PushRunlengthPacket()
217 pixel->index=ConstrainColormapIndex(image,*p,exception); in PushRunlengthPacket()
235 pixel->alpha=ScaleCharToQuantum(quantum); in PushRunlengthPacket()
247 pixel->alpha=(Quantum) (quantum >> (image->depth- in PushRunlengthPacket()
260 pixel->alpha=(Quantum) (quantum >> (image->depth- in PushRunlengthPacket()
280 pixel->red=ScaleCharToQuantum(quantum); in PushRunlengthPacket()
281 pixel->green=pixel->red; in PushRunlengthPacket()
[all …]
Dtga.c155 pixel; in ReadTGAImage() local
327 (void) ResetMagickMemory(&pixel,0,sizeof(pixel)); in ReadTGAImage()
328 pixel.alpha=(MagickRealType) OpaqueAlpha; in ReadTGAImage()
339 image->colormap[i]=pixel; in ReadTGAImage()
350 pixel.red=(MagickRealType) ScaleCharToQuantum((unsigned char) in ReadTGAImage()
352 pixel.green=pixel.red; in ReadTGAImage()
353 pixel.blue=pixel.red; in ReadTGAImage()
368 pixel.red=(MagickRealType) ScaleAnyToQuantum(1UL*(k & 0x7c) >> 2, in ReadTGAImage()
370 pixel.green=(MagickRealType) ScaleAnyToQuantum((1UL*(k & 0x03) in ReadTGAImage()
372 pixel.blue=(MagickRealType) ScaleAnyToQuantum(1UL*(j & 0x1f),range); in ReadTGAImage()
[all …]
Ddcm.c3865 pixel; in ReadDCMImage() local
3880 (void) ResetMagickMemory(&pixel,0,sizeof(pixel)); in ReadDCMImage()
3949 pixel.red=(unsigned int) image->colormap[index].red; in ReadDCMImage()
3950 pixel.green=(unsigned int) image->colormap[index].green; in ReadDCMImage()
3951 pixel.blue=(unsigned int) image->colormap[index].blue; in ReadDCMImage()
3957 pixel.red=(unsigned int) ReadDCMByte(stream_info,image); in ReadDCMImage()
3958 pixel.green=(unsigned int) ReadDCMByte(stream_info,image); in ReadDCMImage()
3959 pixel.blue=(unsigned int) ReadDCMByte(stream_info,image); in ReadDCMImage()
3963 pixel.red=ReadDCMShort(stream_info,image); in ReadDCMImage()
3964 pixel.green=ReadDCMShort(stream_info,image); in ReadDCMImage()
[all …]
/external/swiftshader/src/Shader/
DPixelRoutine.cpp861 …endFactor(Vector4s &blendFactor, const Vector4s &current, const Vector4s &pixel, BlendFactor blend… in blendFactor() argument
882 blendFactor.x = pixel.x; in blendFactor()
883 blendFactor.y = pixel.y; in blendFactor()
884 blendFactor.z = pixel.z; in blendFactor()
887 blendFactor.x = Short4(0xFFFFu) - pixel.x; in blendFactor()
888 blendFactor.y = Short4(0xFFFFu) - pixel.y; in blendFactor()
889 blendFactor.z = Short4(0xFFFFu) - pixel.z; in blendFactor()
902 blendFactor.x = pixel.w; in blendFactor()
903 blendFactor.y = pixel.w; in blendFactor()
904 blendFactor.z = pixel.w; in blendFactor()
[all …]
/external/ImageMagick/www/source/wand/
Dsigmoidal-contrast.c17 pixel; in SigmoidalContrast() local
29 PixelGetMagickColor(pixels[x],&pixel); in SigmoidalContrast()
30 pixel.red=SigmoidalContrast(pixel.red); in SigmoidalContrast()
31 pixel.green=SigmoidalContrast(pixel.green); in SigmoidalContrast()
32 pixel.blue=SigmoidalContrast(pixel.blue); in SigmoidalContrast()
33 pixel.index=SigmoidalContrast(pixel.index); in SigmoidalContrast()
34 PixelSetMagickColor(pixels[x],&pixel); in SigmoidalContrast()
66 pixel; in main() local
/external/ImageMagick/www/source/
Dcontrast.c29 pixel; in main() local
83 PixelGetMagickColor(pixels[x],&pixel); in main()
84 pixel.red=SigmoidalContrast(pixel.red); in main()
85 pixel.green=SigmoidalContrast(pixel.green); in main()
86 pixel.blue=SigmoidalContrast(pixel.blue); in main()
87 pixel.index=SigmoidalContrast(pixel.index); in main()
88 PixelSetMagickColor(contrast_pixels[x],&pixel); in main()
/external/mesa3d/src/mesa/drivers/x11/
Dxm_line.c66 unsigned long pixel = xmesa_color_to_pixel( xmesa,
70 XMesaSetForeground( dpy, gc, pixel );
134 unsigned long pixel; \
135 PACK_TRUECOLOR( pixel, color[0], color[1], color[2] );
137 #define PLOT(X,Y) XMesaPutPixel(xrb->ximage, X, YFLIP(xrb, Y), pixel );
149 GLuint pixel = PACK_8A8B8G8R(color[0], color[1], color[2], color[3]);
154 #define PLOT(X,Y) *pixelPtr = pixel;
166 GLuint pixel = PACK_8A8R8G8B(color[0], color[1], color[2], color[3]);
171 #define PLOT(X,Y) *pixelPtr = pixel;
183 GLuint pixel = PACK_8R8G8B( color[0], color[1], color[2] );
[all …]
/external/libyuv/files/docs/
Dfiltering.md20 …e step thru the source will be 2.0, stepping over 2 pixels of source for each pixel of destination.
24 *Point* downsampling takes the middle pixel.
28 …ale factors, this rounds up and takes the pixel to the right of center. e.g. scale of 4x down wil…
50 …ep thru the source will be 0.0, stepping half a pixel of source for each pixel of destination. Eac…
52 …es such that the first pixel of source maps to the first pixel of destination, and the last pixel
66 Which is the correct scale factor, but shifted the image left, and extruded the last pixel. The re…
68pixel 100% and last pixel + 1 0%, which may cause a memory exception. So the left pixel goes to a…
100 // Scale step for bilinear sampling renders last pixel once for upsample.
116 // Scale step for bilinear sampling renders last pixel once for upsample.
143 Point sampling should ideally be the same as bilinear, but pixel by pixel, round to nearest neighbo…
[all …]
/external/libpng/contrib/gregbook/
Drpng2-x.c1098 ulg pixel; in rpng2_x_load_bg_image() local
1318 pixel = (red << RShift) | in rpng2_x_load_bg_image()
1322 *dest++ = (char)((pixel >> 24) & 0xff); in rpng2_x_load_bg_image()
1323 *dest++ = (char)((pixel >> 16) & 0xff); in rpng2_x_load_bg_image()
1324 *dest++ = (char)((pixel >> 8) & 0xff); in rpng2_x_load_bg_image()
1325 *dest++ = (char)( pixel & 0xff); in rpng2_x_load_bg_image()
1332 pixel = (red << RShift) | in rpng2_x_load_bg_image()
1338 *dest++ = (char)((pixel >> 16) & 0xff); in rpng2_x_load_bg_image()
1339 *dest++ = (char)((pixel >> 8) & 0xff); in rpng2_x_load_bg_image()
1340 *dest++ = (char)( pixel & 0xff); in rpng2_x_load_bg_image()
[all …]
/external/skqp/src/codec/
DSkMasks.cpp61 static uint8_t get_comp(uint32_t pixel, uint32_t mask, uint32_t shift, in get_comp() argument
63 return convert_to_8((pixel & mask) >> shift, size); in get_comp()
71 uint8_t SkMasks::getRed(uint32_t pixel) const { in getRed()
72 return get_comp(pixel, fRed.mask, fRed.shift, fRed.size); in getRed()
74 uint8_t SkMasks::getGreen(uint32_t pixel) const { in getGreen()
75 return get_comp(pixel, fGreen.mask, fGreen.shift, fGreen.size); in getGreen()
77 uint8_t SkMasks::getBlue(uint32_t pixel) const { in getBlue()
78 return get_comp(pixel, fBlue.mask, fBlue.shift, fBlue.size); in getBlue()
80 uint8_t SkMasks::getAlpha(uint32_t pixel) const { in getAlpha()
81 return get_comp(pixel, fAlpha.mask, fAlpha.shift, fAlpha.size); in getAlpha()
/external/skia/src/codec/
DSkMasks.cpp61 static uint8_t get_comp(uint32_t pixel, uint32_t mask, uint32_t shift, in get_comp() argument
63 return convert_to_8((pixel & mask) >> shift, size); in get_comp()
71 uint8_t SkMasks::getRed(uint32_t pixel) const { in getRed()
72 return get_comp(pixel, fRed.mask, fRed.shift, fRed.size); in getRed()
74 uint8_t SkMasks::getGreen(uint32_t pixel) const { in getGreen()
75 return get_comp(pixel, fGreen.mask, fGreen.shift, fGreen.size); in getGreen()
77 uint8_t SkMasks::getBlue(uint32_t pixel) const { in getBlue()
78 return get_comp(pixel, fBlue.mask, fBlue.shift, fBlue.size); in getBlue()
80 uint8_t SkMasks::getAlpha(uint32_t pixel) const { in getAlpha()
81 return get_comp(pixel, fAlpha.mask, fAlpha.shift, fAlpha.size); in getAlpha()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/util/
DValPixConverterTest.java104 float pixel = ValPixConverter.valToPix(value, min, max, sizeInPix, true); in testpixToVal() local
105 assertEquals(value, ValPixConverter.pixToVal(pixel, min, max, sizeInPix, true)); in testpixToVal()
108 pixel = ValPixConverter.valToPix(value, min, max, sizeInPix, true); in testpixToVal()
109 assertEquals(value, ValPixConverter.pixToVal(pixel, min, max, sizeInPix, true)); in testpixToVal()
114 pixel = ValPixConverter.valToPix(value, min, max, sizeInPix, true); in testpixToVal()
115 assertEquals(value, ValPixConverter.pixToVal(pixel, min, max, sizeInPix, true)); in testpixToVal()
119 pixel = ValPixConverter.valToPix(value, min, max, sizeInPix, true); in testpixToVal()
120 assertEquals(value, ValPixConverter.pixToVal(pixel, min, max, sizeInPix, true)); in testpixToVal()
124 pixel = ValPixConverter.valToPix(value, min, max, sizeInPix, true); in testpixToVal()
125 assertEquals(value, ValPixConverter.pixToVal(pixel, min, max, sizeInPix, true)); in testpixToVal()

12345678910>>...22