HomeSort by relevance Sort by last modified time
    Searched defs:pixel (Results 1 - 25 of 43) sorted by null

1 2

  /cts/tests/tests/graphics/src/android/graphics/cts/
ComposeShaderTest.java 68 int pixel = bitmap.getPixel(x, y); local
70 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE);
71 assertEquals(y, Color.red(pixel), TOLERANCE);
72 assertEquals(green, Color.green(pixel), TOLERANCE);
73 assertEquals(x, Color.blue(pixel), TOLERANCE);
CornerPathEffectTest.java 93 int pixel = bitmap.getPixel(x, y); local
94 if (Color.green(pixel) > 0) {
97 assertEquals(Color.YELLOW, pixel);
DiscretePathEffectTest.java 89 int pixel = bitmap.getPixel(x, y); local
90 if (Color.green(pixel) > 0) {
94 assertEquals(0xFF, Color.blue(pixel));
95 if (Color.red(pixel) > 0) {
EmbossMaskFilterTest.java 96 int pixel = b.getPixel(x, y); local
97 color += Color.red(pixel) + Color.green(pixel) + Color.blue(pixel);
PaintFlagsDrawFilterTest.java 103 int pixel = bitmap.getPixel(x, y); local
104 if (pixel == Color.RED) {
112 // underline is at least one pixel high
RadialGradientTest.java 109 int pixel = bitmap.getPixel(x, y); local
111 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance);
112 assertEquals(Color.red(color), Color.red(pixel), tolerance);
113 assertEquals(Color.green(color), Color.green(pixel), tolerance);
114 assertEquals(Color.blue(color), Color.blue(pixel), tolerance);
SweepGradientTest.java 140 int pixel = mBitmap.getPixel(x, y); local
143 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance);
144 assertEquals(Color.red(color), Color.red(pixel), tolerance);
145 assertEquals(Color.green(color), Color.green(pixel), tolerance);
146 assertEquals(Color.blue(color), Color.blue(pixel), tolerance);
152 System.out.println(Integer.toHexString(pixel));
  /external/webkit/WebCore/svg/graphics/filters/
SVGFEMorphology.cpp 120 unsigned char pixel = srcPixelArray->get(i * effectWidth + 4 * j + channel); local
121 if ((m_type == FEMORPHOLOGY_OPERATOR_ERODE && pixel <= columnExtrema) ||
122 (m_type == FEMORPHOLOGY_OPERATOR_DILATE && pixel >= columnExtrema))
123 columnExtrema = pixel;
133 unsigned char pixel = srcPixelArray->get(i * effectWidth + endX * 4 + channel); local
134 if ((m_type == FEMORPHOLOGY_OPERATOR_ERODE && pixel <= columnExtrema) ||
135 (m_type == FEMORPHOLOGY_OPERATOR_DILATE && pixel >= columnExtrema))
136 columnExtrema = pixel;
  /external/webkit/WebKitTools/DumpRenderTree/qt/
ImageDiff.cpp 99 QRgb pixel = actualImage.pixel(x, y); local
100 QRgb basePixel = baselineImage.pixel(x, y);
101 qreal red = (qRed(pixel) - qRed(basePixel)) / static_cast<float>(qMax(255 - qRed(basePixel), qRed(basePixel)));
102 qreal green = (qGreen(pixel) - qGreen(basePixel)) / static_cast<float>(qMax(255 - qGreen(basePixel), qGreen(basePixel)));
103 qreal blue = (qBlue(pixel) - qBlue(basePixel)) / static_cast<float>(qMax(255 - qBlue(basePixel), qBlue(basePixel)));
104 qreal alpha = (qAlpha(pixel) - qAlpha(basePixel)) / static_cast<float>(qMax(255 - qAlpha(basePixel), qAlpha(basePixel)));
  /external/freetype/src/smooth/
ftsmooth.c 291 FT_UInt pixel = line[xx-1]; local
294 end[-3] = (FT_Byte)pixel;
295 end[-2] = (FT_Byte)pixel;
296 end[-1] = (FT_Byte)pixel;
  /external/qemu/distrib/sdl-1.2.12/src/video/
SDL_blit_0.c 369 Uint32 pixel; local
376 pixel, dR, dG, dB);
418 Uint32 pixel; local
423 pixel, dR, dG, dB);
448 /* We don't support sub 8-bit packed pixel modes */
SDL_stretch.c 128 type pixel = 0; \
134 pixel = *src++; \
137 *dst++ = pixel; \
152 Uint8 pixel[3] = { 0, 0, 0 }; local
158 pixel[0] = *src++;
159 pixel[1] = *src++;
160 pixel[2] = *src++;
163 *dst++ = pixel[0];
164 *dst++ = pixel[1];
165 *dst++ = pixel[2]
    [all...]
SDL_bmp.c 140 /* Expand 1 and 4 bit bitmaps to 8 bits per pixel */
262 Uint8 pixel = 0; local
266 if ( !SDL_RWread(src, &pixel, 1, 1) ) {
273 *(bits+i) = (pixel>>shift);
274 pixel <<= ExpandBMP;
384 /* Convert to 24 bits per pixel */
SDL_pixels.c 24 /* General (mostly internal) pixel/color manipulation routines for SDL */
35 * Allocate a pixel format structure and fill it according to the given info.
43 /* Allocate an empty pixel format structure */
320 Uint8 pixel=0; local
329 pixel = i;
336 return(pixel);
339 /* Find the opaque pixel value corresponding to an RGB triple */
354 /* Find the pixel value corresponding to an RGBA quadruple */
369 void SDL_GetRGBA(Uint32 pixel, SDL_PixelFormat *fmt,
383 v = (pixel & fmt->Rmask) >> fmt->Rshift
    [all...]
  /external/webkit/WebCore/platform/graphics/cg/
ImageCG.cpp 114 unsigned char pixel[4]; // RGBA local
116 RetainPtr<CGContextRef> bmap(AdoptCF, CGBitmapContextCreate(pixel, 1, 1, 8, sizeof(pixel), space,
123 if (pixel[3] == 0)
126 m_solidColor = Color(pixel[0] * 255 / pixel[3], pixel[1] * 255 / pixel[3], pixel[2] * 255 / pixel[3], pixel[3])
    [all...]
  /external/webkit/WebCore/platform/graphics/qt/
ImageBufferQt.cpp 113 QRgb value = image.pixel(x, y);
171 QRgb value = image.pixel(x + originx, y + originy);
241 quint32 pixel = reinterpret_cast<quint32*>(srcRows + 4 * x)[0]; local
242 pixel = ((pixel << 16) & 0xff0000) | ((pixel >> 16) & 0xff) | (pixel & 0xff00ff00);
243 scanLine[x + destx] = pixel;
  /external/webkit/WebCore/platform/image-decoders/bmp/
BMPImageReader.cpp 461 // specify a bogus alpha channel in bits that don't exist in the pixel
482 // Count offset into pixel data.
627 // point to the beginning of the pixel data, bump it past
714 for (size_t pixel = 0;
715 (pixel < pixelsPerByte) && (m_coord.x() < endX); ++pixel) {
740 const uint32_t pixel = readCurrentPixel(bytesPerPixel); local
751 int alpha = getAlpha(pixel);
764 setRGBA(getComponent(pixel, 0), getComponent(pixel, 1)
    [all...]
BMPImageReader.h 187 // Returns the pixel data for the current X coordinate in a uint32_t.
191 // the pixel data will actually be set.
203 uint32_t pixel; local
204 memcpy(&pixel, &m_data->data()[m_decodedOffset + offset], 3);
206 pixel = ((pixel & 0xff00) << 8) | ((pixel & 0xff0000) >> 8) |
207 ((pixel & 0xff000000) >> 24);
209 return pixel;
222 // in the given pixel data
    [all...]
  /external/webkit/WebKitTools/DumpRenderTree/cg/
ImageDiffCG.cpp 110 unsigned char* pixel = (unsigned char*)buffer; local
114 float red = (pixel[0] - basePixel[0]) / max<float>(255 - basePixel[0], basePixel[0]);
115 float green = (pixel[1] - basePixel[1]) / max<float>(255 - basePixel[1], basePixel[1]);
116 float blue = (pixel[2] - basePixel[2]) / max<float>(255 - basePixel[2], basePixel[2]);
117 float alpha = (pixel[3] - basePixel[3]) / max<float>(255 - basePixel[3], basePixel[3]);
130 pixel += 4;
  /external/freetype/include/freetype/
ftcache.h 414 /* pixel :: A Boolean. If 1, the `width' and `height' fields are */
415 /* interpreted as integer pixel character sizes. */
418 /* x_res :: Only used when `pixel' is value~0 to indicate the */
421 /* y_res :: Only used when `pixel' is value~0 to indicate the */
433 FT_Int pixel; member in struct:FTC_ScalerRec_
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/video/ataricommon/
SDL_atarigl.c 1014 unsigned short *line, *pixel; local
1019 pixel = line;
1021 unsigned short color = *pixel;
1023 *pixel++ = (color & 0x1f)|((color>>1) & 0xffe0);
1033 unsigned short *line, *pixel; local
1038 pixel = line;
1040 unsigned short color = *pixel;
1043 *pixel++ = SDL_Swap16(color);
1053 unsigned short *line, *pixel; local
1058 pixel = line
1072 unsigned long *line, *pixel; local
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/video/cybergfx/
SDL_cgxvideo.c 87 xcmap[i].pixel = SDL_MapRGB(this->screen->format, c, c, c);
258 D(if(type==0)bug("REAL pixel format: "));
373 D(bug("Unknown pixel format! Default to 24bit\n"));
558 // In this case I use makebitmask in a way that I'm sure I'll get PIXFMT pixel mask
619 unsigned long pixel; local
630 for ( pixel=0; pixel<numcolors; pixel++ )
632 if(SDL_XPixels[pixel]>=0)
633 ReleasePen(GFX_Display->ViewPort.ColorMap,SDL_XPixels[pixel]);
1260 unsigned long pixel; local
    [all...]
  /external/skia/src/images/
SkImageDecoder_libico.cpp 283 //function to place the pixel, determined by the bitCount
306 // setup for the next pixel
319 int pixel = (byte >> 4) & 0xF; local
321 *address = (alphaBit-1)&(colors[pixel]);
326 pixel = byte & 0xF;
330 *address = (alphaBit-1)&(colors[pixel]);
338 int pixel = readByte(buf, xorOffset + pixelNo); local
340 *address = (alphaBit-1)&(colors[pixel]);
  /external/webkit/WebCore/platform/graphics/cairo/
ImageBufferCairo.cpp 130 unsigned* pixel = row + x; local
131 Color pixelColor = colorFromPremultipliedARGB(*pixel);
136 *pixel = premultipliedARGBFromColor(pixelColor);
184 unsigned* pixel = row + x + originx; local
187 pixelColor = colorFromPremultipliedARGB(*pixel);
189 pixelColor = Color(*pixel);
252 unsigned* pixel = row + x + destx; local
258 *pixel = premultipliedARGBFromColor(pixelColor);
260 *pixel = pixelColor.rgb();
  /external/webkit/WebCore/platform/image-decoders/png/
PNGImageDecoder.cpp 392 png_bytep pixel = row + (m_scaled ? m_scaledColumns[x] : x) * colorChannels; local
393 unsigned alpha = hasAlpha ? pixel[3] : 255;
394 buffer.setRGBA(x, destY, pixel[0], pixel[1], pixel[2], alpha);

Completed in 215 milliseconds

1 2