/external/webkit/WebCore/platform/image-decoders/bmp/ |
H A D | 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 dat 223 getComponent(uint32_t pixel, int component) const argument [all...] |
H A D | 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, [all...] |
/external/webkit/WebCore/svg/graphics/filters/ |
H A D | 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/ |
H A D | 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/libpng/contrib/gregbook/ |
H A D | rpng2-x.c | 26 - 1.10: added support for non-default visuals; fixed X pixel-conversion 1017 /* to avoid testing the byte order every pixel (or doubling the size of 1085 ulg pixel; local 1305 pixel = (red << RShift) | 1309 *dest++ = (char)((pixel >> 24) & 0xff); 1310 *dest++ = (char)((pixel >> 16) & 0xff); 1311 *dest++ = (char)((pixel >> 8) & 0xff); 1312 *dest++ = (char)( pixel & 0xff); 1319 pixel = (red << RShift) | 1325 *dest++ = (char)((pixel >> 1 1377 ulg i, pixel; local 1618 ulg pixel; local [all...] |
H A D | rpng-x.c | 21 - 1.10: added support for non-default visuals; fixed X pixel-conversion 669 /* to avoid testing the byte order every pixel (or doubling the size of 692 ulg pixel; local 717 pixel = (red << RShift) | 722 *dest++ = (char)((pixel >> 24) & 0xff); 723 *dest++ = (char)((pixel >> 16) & 0xff); 724 *dest++ = (char)((pixel >> 8) & 0xff); 725 *dest++ = (char)( pixel & 0xff); 730 pixel = (red & RMask) | (green & GMask) | (blue & BMask); 732 *dest++ = (char)((pixel >> 2 [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/ |
H A D | 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[ [all...] |
H A D | 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, argument 383 v = (pixel 403 SDL_GetRGB(Uint32 pixel, SDL_PixelFormat *fmt, Uint8 *r,Uint8 *g,Uint8 *b) argument [all...] |
H A D | 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 */
|
H A D | SDL_blit_1.c | 121 /* Copy in 4 pixel chunks */ 153 /* Copy in 4 pixel chunks */ 427 Uint32 pixel; 432 pixel, dR, dG, dB); 468 Uint32 pixel; 473 pixel, dR, dG, dB);
|
H A D | 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 */
|
H A D | SDL_RLEaccel.c | 30 * decoder. Added per-surface alpha blitter. Added per-pixel alpha 50 * with per-pixel alpha. The details differ, however: 56 * where they are 16 bit. This makes the pixel data aligned at all times. 62 * Encoding of surfaces with per-pixel alpha: 65 * pixel format, to provide reliable un-encoding. 72 * For 32-bit targets, each pixel has the target RGB format but with 76 * For 16-bit targets, each pixel has the target RGB format, but with 80 * the encoded pixel will be 00000gggggg00000rrrrr0aaaaabbbbb. 575 /* helper: blend a single 16 bit pixel at 50% */ 596 /* first odd pixel */ \ 1367 Uint32 pixel; local 1384 Uint32 pixel = *s++; local [all...] |
/external/webkit/WebCore/platform/graphics/cg/ |
H A D | 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[ [all...] |
/external/webkit/WebCore/platform/graphics/cairo/ |
H A D | 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/graphics/qt/ |
H A D | 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;
|
H A D | ImageQt.cpp | 213 m_solidColor = QColor::fromRgba(framePixmap->toImage().pixel(0, 0));
|
/external/webkit/WebKitTools/DumpRenderTree/cg/ |
H A D | 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/qemu/distrib/sdl-1.2.12/src/video/x11/ |
H A D | SDL_x11video.c | 733 unsigned long pixel; local 735 for ( pixel=0; pixel<numcolors; ++pixel ) { 736 while ( SDL_XPixels[pixel] > 0 ) { 738 SDL_DisplayColormap,&pixel,1,0); 739 --SDL_XPixels[pixel]; 951 /* Allocate the new pixel format for this video mode */ 969 /* Allocate the pixel flags */ 1300 all[i].pixel 1396 int pixel = firstcolor + i; local 1500 unsigned long pixel; local [all...] |
/external/webkit/WebKit/chromium/tests/ |
H A D | TransparencyWinTest.cpp | 74 // Resets the top layer's alpha channel to 0 for each pixel. This simulates 87 // Clears the alpha channel on the specified pixel. 323 // Make a transparency layer inset by one pixel, and fill it inset by 324 // another pixel with 50% black. 388 // Draw a red pixel at (15, 15). This should be the at (15, 7) after 397 // Check the pixel we wrote. 416 // antialiasing or other rounding problems since we're testing exact pixel 432 // Create a transparency helper inset one pixel in the buffer. The 496 // Translate left by one pixel. 505 // Then translate up by one pixel (whic [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/ataricommon/ |
H A D | 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 1072 unsigned long *line, *pixel; local [all...] |
/external/webkit/WebCore/platform/image-decoders/png/ |
H A D | 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);
|
/external/skia/src/images/ |
H A D | 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/qemu/distrib/sdl-1.2.12/src/video/cybergfx/ |
H A D | 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/freetype/src/smooth/ |
H A D | 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/freetype/include/freetype/ |
H A D | 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_
|