/external/mesa3d/test/ |
D | image_file.h | 63 unsigned pixel = data[(height - y - 1) * width + x]; in SaveBMP() local 64 unsigned r = (pixel & 0xff) << 16; in SaveBMP() 65 unsigned b = (pixel & 0xff0000) >> 16; in SaveBMP() 66 pixel = (pixel & 0xff00ff00) | r | b; in SaveBMP() 67 fwrite(&pixel, sizeof(pixel), 1, file); in SaveBMP() 133 Pixel pixel; in LoadTGA() local 140 pixel.channels[3] = 255; in LoadTGA() 143 pixel.channels[2] = fgetc(file); in LoadTGA() 144 pixel.channels[1] = fgetc(file); in LoadTGA() 145 pixel.channels[0] = fgetc(file); in LoadTGA() [all …]
|
/external/webkit/Source/WebCore/platform/image-decoders/bmp/ |
D | BMPImageReader.h | 206 uint32_t pixel; in readCurrentPixel() local 207 memcpy(&pixel, &m_data->data()[m_decodedOffset + offset], 3); in readCurrentPixel() 209 … pixel = ((pixel & 0xff00) << 8) | ((pixel & 0xff0000) >> 8) | ((pixel & 0xff000000) >> 24); in readCurrentPixel() 211 return pixel; in readCurrentPixel() 225 inline unsigned getComponent(uint32_t pixel, int component) const in getComponent() argument 227 …return ((pixel & m_bitMasks[component]) >> m_bitShiftsRight[component]) << m_bitShiftsLeft[compone… in getComponent() 230 inline unsigned getAlpha(uint32_t pixel) const in getAlpha() argument 233 return m_bitMasks[3] ? getComponent(pixel, 3) : 0xff; in getAlpha()
|
D | BMPImageReader.cpp | 668 for (size_t pixel = 0; (pixel < pixelsPerByte) && (m_coord.x() < endX); ++pixel) { in processNonRLEData() local 692 const uint32_t pixel = readCurrentPixel(bytesPerPixel); in processNonRLEData() local 703 int alpha = getAlpha(pixel); in processNonRLEData() 716 setRGBA(getComponent(pixel, 0), getComponent(pixel, 1), in processNonRLEData() 717 getComponent(pixel, 2), alpha); in processNonRLEData()
|
/external/webkit/Source/WebCore/platform/graphics/qt/ |
D | ImageBufferQt.cpp | 186 QRgb& pixel = scanLine[x]; in platformTransformColorSpace() local 187 pixel = qRgba(lookUpTable[qRed(pixel)], in platformTransformColorSpace() 188 lookUpTable[qGreen(pixel)], in platformTransformColorSpace() 189 lookUpTable[qBlue(pixel)], in platformTransformColorSpace() 190 qAlpha(pixel)); in platformTransformColorSpace() 245 QRgb pixel = scanLine[x + originx]; in getImageData() local 246 int alpha = qAlpha(pixel); in getImageData() 250 | (qBlue(pixel) << 16) in getImageData() 251 | (qGreen(pixel) << 8) in getImageData() 252 | (qRed(pixel))); in getImageData() [all …]
|
/external/webkit/Source/WebCore/platform/image-encoders/ |
D | JPEGImageEncoder.cpp | 117 const unsigned char* pixel = rgbaBigEndianData; in compressRGBABigEndianToJPEG() local 118 … const unsigned char* pixelEnd = pixel + compressData.image_width * compressData.image_height * 4; in compressRGBABigEndianToJPEG() 119 while (pixel < pixelEnd) { in compressRGBABigEndianToJPEG() 121 for (const unsigned char* rowEnd = pixel + compressData.image_width * 4; pixel < rowEnd;) { in compressRGBABigEndianToJPEG() 122 *output++ = static_cast<JSAMPLE>(*pixel++ & 0xFF); // red in compressRGBABigEndianToJPEG() 123 *output++ = static_cast<JSAMPLE>(*pixel++ & 0xFF); // green in compressRGBABigEndianToJPEG() 124 *output++ = static_cast<JSAMPLE>(*pixel++ & 0xFF); // blue in compressRGBABigEndianToJPEG() 125 ++pixel; // skip alpha in compressRGBABigEndianToJPEG()
|
/external/libpng/contrib/gregbook/ |
D | rpng2-x.c | 1085 ulg pixel; in rpng2_x_load_bg_image() local 1305 pixel = (red << RShift) | in rpng2_x_load_bg_image() 1309 *dest++ = (char)((pixel >> 24) & 0xff); in rpng2_x_load_bg_image() 1310 *dest++ = (char)((pixel >> 16) & 0xff); in rpng2_x_load_bg_image() 1311 *dest++ = (char)((pixel >> 8) & 0xff); in rpng2_x_load_bg_image() 1312 *dest++ = (char)( pixel & 0xff); in rpng2_x_load_bg_image() 1319 pixel = (red << RShift) | in rpng2_x_load_bg_image() 1325 *dest++ = (char)((pixel >> 16) & 0xff); in rpng2_x_load_bg_image() 1326 *dest++ = (char)((pixel >> 8) & 0xff); in rpng2_x_load_bg_image() 1327 *dest++ = (char)( pixel & 0xff); in rpng2_x_load_bg_image() [all …]
|
D | rpng-x.c | 692 ulg pixel; in rpng_x_display_image() local 717 pixel = (red << RShift) | in rpng_x_display_image() 722 *dest++ = (char)((pixel >> 24) & 0xff); in rpng_x_display_image() 723 *dest++ = (char)((pixel >> 16) & 0xff); in rpng_x_display_image() 724 *dest++ = (char)((pixel >> 8) & 0xff); in rpng_x_display_image() 725 *dest++ = (char)( pixel & 0xff); in rpng_x_display_image() 730 pixel = (red & RMask) | (green & GMask) | (blue & BMask); in rpng_x_display_image() 732 *dest++ = (char)((pixel >> 24) & 0xff); in rpng_x_display_image() 733 *dest++ = (char)((pixel >> 16) & 0xff); in rpng_x_display_image() 734 *dest++ = (char)((pixel >> 8) & 0xff); in rpng_x_display_image() [all …]
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
D | p1.cpp | 55 constexpr struct pixel { // x struct 58 constexpr pixel(int); argument 61 constexpr pixel::pixel(int a) in pixel() function in pixel 65 constexpr pixel small(2); // x (no definition of square(int) yet, so can't 72 constexpr pixel large(4); // now valid
|
/external/webkit/Source/WebCore/platform/chromium/ |
D | DragImageChromiumSkia.cpp | 81 uint32_t* pixel = image->getAddr32(column, row); in dissolveDragImageToFraction() local 82 *pixel = SkPreMultiplyARGB(SkColorGetA(*pixel) * fraction, in dissolveDragImageToFraction() 83 SkColorGetR(*pixel), in dissolveDragImageToFraction() 84 SkColorGetG(*pixel), in dissolveDragImageToFraction() 85 SkColorGetB(*pixel)); in dissolveDragImageToFraction()
|
/external/qemu/distrib/sdl-1.2.12/src/video/ |
D | SDL_stretch.c | 128 type pixel = 0; \ 134 pixel = *src++; \ 137 *dst++ = pixel; \ 152 Uint8 pixel[3] = { 0, 0, 0 }; in DEFINE_COPY_ROW() local 158 pixel[0] = *src++; in DEFINE_COPY_ROW() 159 pixel[1] = *src++; in DEFINE_COPY_ROW() 160 pixel[2] = *src++; in DEFINE_COPY_ROW() 163 *dst++ = pixel[0]; in DEFINE_COPY_ROW() 164 *dst++ = pixel[1]; in DEFINE_COPY_ROW() 165 *dst++ = pixel[2]; in DEFINE_COPY_ROW()
|
D | SDL_pixels.c | 320 Uint8 pixel=0; in SDL_FindColor() local 329 pixel = i; in SDL_FindColor() 336 return(pixel); in SDL_FindColor() 369 void SDL_GetRGBA(Uint32 pixel, SDL_PixelFormat *fmt, in SDL_GetRGBA() argument 383 v = (pixel & fmt->Rmask) >> fmt->Rshift; in SDL_GetRGBA() 385 v = (pixel & fmt->Gmask) >> fmt->Gshift; in SDL_GetRGBA() 387 v = (pixel & fmt->Bmask) >> fmt->Bshift; in SDL_GetRGBA() 390 v = (pixel & fmt->Amask) >> fmt->Ashift; in SDL_GetRGBA() 396 *r = fmt->palette->colors[pixel].r; in SDL_GetRGBA() 397 *g = fmt->palette->colors[pixel].g; in SDL_GetRGBA() [all …]
|
/external/webkit/Source/WebCore/platform/graphics/filters/ |
D | FEMorphology.cpp | 143 unsigned char pixel = srcPixelArray->get(i * effectWidth + 4 * j + channel); in apply() local 144 if ((m_type == FEMORPHOLOGY_OPERATOR_ERODE && pixel <= columnExtrema) || in apply() 145 (m_type == FEMORPHOLOGY_OPERATOR_DILATE && pixel >= columnExtrema)) in apply() 146 columnExtrema = pixel; in apply() 156 unsigned char pixel = srcPixelArray->get(i * effectWidth + endX * 4 + channel); in apply() local 157 if ((m_type == FEMORPHOLOGY_OPERATOR_ERODE && pixel <= columnExtrema) || in apply() 158 (m_type == FEMORPHOLOGY_OPERATOR_DILATE && pixel >= columnExtrema)) in apply() 159 columnExtrema = pixel; in apply()
|
D | FEConvolveMatrix.cpp | 225 ALWAYS_INLINE void setDestinationPixels(ByteArray* image, int& pixel, float* totals, float divisor,… in setDestinationPixels() argument 229 image->set(pixel++, clampRGBAValue(totals[i] / divisor + bias, maxAlpha)); in setDestinationPixels() 232 image->set(pixel, src->get(pixel)); in setDestinationPixels() 233 ++pixel; in setDestinationPixels() 235 image->set(pixel++, maxAlpha); in setDestinationPixels() 243 int pixel = (m_targetOffset.y() * paintingData.width + m_targetOffset.x()) * 4; in fastSetInteriorPixels() local 279 …setDestinationPixels<preserveAlphaValues>(paintingData.dstPixelArray, pixel, totals, m_divisor, pa… in fastSetInteriorPixels() 282 pixel += xIncrease; in fastSetInteriorPixels() 320 int pixel = (y1 * paintingData.width + x1) * 4; in fastSetOuterPixels() local 364 …setDestinationPixels<preserveAlphaValues>(paintingData.dstPixelArray, pixel, totals, m_divisor, pa… in fastSetOuterPixels() [all …]
|
/external/webkit/Tools/DumpRenderTree/qt/ |
D | ImageDiff.cpp | 100 QRgb pixel = actualImage.pixel(x, y); in main() local 101 QRgb basePixel = baselineImage.pixel(x, y); in main() 102 …qreal red = (qRed(pixel) - qRed(basePixel)) / static_cast<float>(qMax(255 - qRed(basePixel), qRed(… in main() 103 …qreal green = (qGreen(pixel) - qGreen(basePixel)) / static_cast<float>(qMax(255 - qGreen(basePixel… in main() 104 …qreal blue = (qBlue(pixel) - qBlue(basePixel)) / static_cast<float>(qMax(255 - qBlue(basePixel), q… in main() 105 …qreal alpha = (qAlpha(pixel) - qAlpha(basePixel)) / static_cast<float>(qMax(255 - qAlpha(basePixel… in main()
|
/external/webkit/Source/WebCore/platform/graphics/cg/ |
D | ImageCG.cpp | 114 unsigned char pixel[4]; // RGBA in checkForSolidColor() local 115 …RetainPtr<CGContextRef> bmap(AdoptCF, CGBitmapContextCreate(pixel, 1, 1, 8, sizeof(pixel), deviceR… in checkForSolidColor() 122 if (pixel[3] == 0) in checkForSolidColor() 125 …m_solidColor = Color(pixel[0] * 255 / pixel[3], pixel[1] * 255 / pixel[3], pixel[2] * 255 / pixel[… in checkForSolidColor()
|
/external/qemu/distrib/sdl-1.2.12/src/video/x11/ |
D | SDL_x11video.c | 733 unsigned long pixel; in X11_DestroyWindow() local 735 for ( pixel=0; pixel<numcolors; ++pixel ) { in X11_DestroyWindow() 736 while ( SDL_XPixels[pixel] > 0 ) { in X11_DestroyWindow() 738 SDL_DisplayColormap,&pixel,1,0); in X11_DestroyWindow() 739 --SDL_XPixels[pixel]; in X11_DestroyWindow() 1300 all[i].pixel = i; in allocate_nearest() 1333 colors[c->pixel].r = c->red >> 8; in allocate_nearest() 1334 colors[c->pixel].g = c->green >> 8; in allocate_nearest() 1335 colors[c->pixel].b = c->blue >> 8; in allocate_nearest() 1336 ++SDL_XPixels[c->pixel]; in allocate_nearest() [all …]
|
/external/chromium/chrome/browser/tab_contents/ |
D | thumbnail_generator_unittest.cc | 95 uint32 pixel = *bitmap.getAddr32(0, 0); 97 if (SkGetPackedA32(pixel) != 0xFF) 100 if (SkGetPackedR32(pixel) == 0 && 101 SkGetPackedG32(pixel) == 0 && 102 SkGetPackedB32(pixel) == 0) 105 if (SkGetPackedR32(pixel) == 0xFF && 106 SkGetPackedG32(pixel) == 0xFF && 107 SkGetPackedB32(pixel) == 0xFF) 110 EXPECT_TRUE(false) << "Got weird color: " << pixel;
|
/external/qemu/docs/ |
D | ANDROID-FRAMEBUFFER.TXT | 17 and the internal pixel rotation to apply before display (see 20 The pixel buffer is itself a set of physical pages allocated by the 27 compute the bounding rectangle of pixel updates since the last call, and 38 - holds a contiguous pixel buffer allocated by the emulator. 39 - can have one producer in charge of drawing into the pixel buffer 40 - can have zero or more clients, in charge of displaying the pixel 66 displays instead of pixel framebuffers, and incorporates input state
|
/external/webkit/Source/WebCore/platform/graphics/cairo/ |
D | ImageBufferCairo.cpp | 147 unsigned* pixel = row + x; in platformTransformColorSpace() local 148 Color pixelColor = colorFromPremultipliedARGB(*pixel); in platformTransformColorSpace() 153 *pixel = premultipliedARGBFromColor(pixelColor); in platformTransformColorSpace() 201 unsigned* pixel = row + x + originx; in getImageData() local 204 pixelColor = colorFromPremultipliedARGB(*pixel); in getImageData() 206 pixelColor = Color(*pixel); in getImageData() 269 unsigned* pixel = row + x + destx; in putImageData() local 275 *pixel = premultipliedARGBFromColor(pixelColor); in putImageData() 277 *pixel = pixelColor.rgb(); in putImageData()
|
/external/webkit/Source/WebKit/chromium/tests/ |
D | TransparencyWinTest.cpp | 655 FloatRect pixel(0, 0, 1, 1); in TEST() local 656 helper.context()->fillRect(pixel, 0xFFFF0000, ColorSpaceDeviceRGB); in TEST() 657 pixel.move(1.0f, 0.0f); in TEST() 658 helper.context()->fillRect(pixel, 0xFF00FF00, ColorSpaceDeviceRGB); in TEST() 659 pixel.move(1.0f, 0.0f); in TEST() 660 helper.context()->fillRect(pixel, 0xFF0000FF, ColorSpaceDeviceRGB); in TEST() 661 pixel.move(1.0f, 0.0f); in TEST() 662 helper.context()->fillRect(pixel, 0xFF008080, ColorSpaceDeviceRGB); in TEST() 663 pixel.move(1.0f, 0.0f); in TEST() 664 helper.context()->fillRect(pixel, 0xFF800080, ColorSpaceDeviceRGB); in TEST() [all …]
|
/external/webkit/Tools/DumpRenderTree/cg/ |
D | ImageDiffCG.cpp | 114 unsigned char* pixel = (unsigned char*)buffer; in createDifferenceImage() local 118 float red = (pixel[0] - basePixel[0]) / max<float>(255 - basePixel[0], basePixel[0]); in createDifferenceImage() 119 float green = (pixel[1] - basePixel[1]) / max<float>(255 - basePixel[1], basePixel[1]); in createDifferenceImage() 120 float blue = (pixel[2] - basePixel[2]) / max<float>(255 - basePixel[2], basePixel[2]); in createDifferenceImage() 121 float alpha = (pixel[3] - basePixel[3]) / max<float>(255 - basePixel[3], basePixel[3]); in createDifferenceImage() 134 pixel += 4; in createDifferenceImage()
|
/external/webkit/Source/WebCore/platform/graphics/haiku/ |
D | ImageBufferHaiku.cpp | 113 uint8* pixel = rowData; in platformTransformColorSpace() local 119 pixel[0] = lookUpTable[pixel[0]]; in platformTransformColorSpace() 120 pixel[1] = lookUpTable[pixel[1]]; in platformTransformColorSpace() 121 pixel[2] = lookUpTable[pixel[2]]; in platformTransformColorSpace() 123 pixel += 4; in platformTransformColorSpace()
|
/external/qemu/distrib/sdl-1.2.12/src/video/ataricommon/ |
D | SDL_atarigl.c | 1014 unsigned short *line, *pixel; in Convert565To555be() local 1019 pixel = line; in Convert565To555be() 1021 unsigned short color = *pixel; in Convert565To555be() 1023 *pixel++ = (color & 0x1f)|((color>>1) & 0xffe0); in Convert565To555be() 1033 unsigned short *line, *pixel; in Convert565To555le() local 1038 pixel = line; in Convert565To555le() 1040 unsigned short color = *pixel; in Convert565To555le() 1043 *pixel++ = SDL_Swap16(color); in Convert565To555le() 1053 unsigned short *line, *pixel; in Convert565le() local 1058 pixel = line; in Convert565le() [all …]
|
/external/mesa3d/src/pixelflinger2/ |
D | texture.cpp | 38 static inline void PixelRGBAToVector4 (const Pixel *pixel, Vector4 * color) __attribute__((always_… 39 static inline void PixelRGBAToVector4 (const Pixel *pixel, Vector4 * color) in PixelRGBAToVector4() argument 43 c = vsetq_lane_s32(pixel->channels[0], c, 0); in PixelRGBAToVector4() 44 c = vsetq_lane_s32(pixel->channels[1], c, 1); in PixelRGBAToVector4() 45 c = vsetq_lane_s32(pixel->channels[2], c, 2); in PixelRGBAToVector4() 46 c = vsetq_lane_s32(pixel->channels[3], c, 3); in PixelRGBAToVector4() 50 color->r = (float)pixel->channels[0] / 255; in PixelRGBAToVector4() 51 color->g = (float)pixel->channels[1] / 255; in PixelRGBAToVector4() 52 color->b = (float)pixel->channels[2] / 255; in PixelRGBAToVector4() 53 color->a = (float)pixel->channels[3] / 255; in PixelRGBAToVector4()
|
/external/clang/lib/Headers/ |
D | altivec.h | 61 static vector pixel __ATTRS_o_ai 62 vec_perm(vector pixel a, vector pixel b, vector unsigned char c); 1765 static vector pixel __ATTRS_o_ai 1766 vec_ld(int a, const vector pixel *b) in vec_ld() 1768 return (vector pixel)__builtin_altivec_lvx(a, b); in vec_ld() 1875 static vector pixel __ATTRS_o_ai 1876 vec_lvx(int a, const vector pixel *b) in vec_lvx() 1878 return (vector pixel)__builtin_altivec_lvx(a, b); in vec_lvx() 2077 static vector pixel __ATTRS_o_ai 2078 vec_ldl(int a, const vector pixel *b) in vec_ldl() [all …]
|