/sdk/chimpchat/src/com/android/chimpchat/adb/image/ |
SixteenBitColorModel.java | 60 int pixel = getPixel(inData); local 61 return ((pixel >> 0) & 0x01F) << 3; 66 int pixel = getPixel(inData); local 67 return ((pixel >> 5) & 0x03F) << 2; 72 int pixel = getPixel(inData); local 73 return ((pixel >> 11) & 0x01F) << 3; 77 public int getAlpha(int pixel) { 82 public int getBlue(int pixel) { 87 public int getGreen(int pixel) { 92 public int getRed(int pixel) { [all...] |
ThirtyTwoBitColorModel.java | 82 int pixel = getPixel(inData); local 86 return ((pixel >>> alphaOffset) & alphaMask) << (8 - alphaLength); 91 int pixel = getPixel(inData); local 92 return ((pixel >>> blueOffset) & blueMask) << (8 - blueLength); 97 int pixel = getPixel(inData); local 98 return ((pixel >>> greenOffset) & greenMask) << (8 - greenLength); 103 int pixel = getPixel(inData); local 104 return ((pixel >>> redOffset) & redMask) << (8 - redLength); 108 public int getAlpha(int pixel) { 113 public int getBlue(int pixel) { [all...] |
/external/mesa3d/test/ |
image_file.h | 25 typedef union { unsigned char channels[4]; unsigned int val; } Pixel; 47 fwrite("\x13\0\0\0", 4, 1, file); // horz res, 2.835 pixel/meter 63 unsigned pixel = data[(height - y - 1) * width + x]; local 64 unsigned r = (pixel & 0xff) << 16; 65 unsigned b = (pixel & 0xff0000) >> 16; 66 pixel = (pixel & 0xff00ff00) | r | b; 67 fwrite(&pixel, sizeof(pixel), 1, file); 133 Pixel pixel local [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
p9.cpp | 33 struct pixel { struct 36 constexpr pixel ur = { 1294, 1024 }; // ok 37 constexpr pixel origin; // expected-error {{requires an initializer}}
|
p1.cpp | 101 constexpr struct pixel { // expected-error {{struct cannot be marked constexpr}} struct 104 constexpr pixel(int); 107 constexpr pixel::pixel(int a) function in class:pixel 111 constexpr pixel small(2); // expected-error {{must be initialized by a constant expression}} 118 constexpr pixel large(4); // unexpected-error {{must be initialized by a constant expression}}
|
/external/webkit/Source/WebCore/platform/chromium/ |
DragImageChromiumSkia.cpp | 81 uint32_t* pixel = image->getAddr32(column, row); local 82 *pixel = SkPreMultiplyARGB(SkColorGetA(*pixel) * fraction, 83 SkColorGetR(*pixel), 84 SkColorGetG(*pixel), 85 SkColorGetB(*pixel));
|
/system/media/mca/filterpacks/imageproc/native/ |
brightness.c | 31 } Pixel; 81 Pixel pixel; local 83 pixel.value = *(input_ptr++); 85 const short r = (pixel.rgba[0] * factor) / 255; 86 const short g = (pixel.rgba[1] * factor) / 255; 87 const short b = (pixel.rgba[2] * factor) / 255; 92 | (pixel.rgba[3] << 24);
|
/external/webkit/Source/WebCore/platform/image-encoders/ |
JPEGImageEncoder.cpp | 117 const unsigned char* pixel = rgbaBigEndianData; local 118 const unsigned char* pixelEnd = pixel + compressData.image_width * compressData.image_height * 4; 119 while (pixel < pixelEnd) { 121 for (const unsigned char* rowEnd = pixel + compressData.image_width * 4; pixel < rowEnd;) { 122 *output++ = static_cast<JSAMPLE>(*pixel++ & 0xFF); // red 123 *output++ = static_cast<JSAMPLE>(*pixel++ & 0xFF); // green 124 *output++ = static_cast<JSAMPLE>(*pixel++ & 0xFF); // blue 125 ++pixel; // skip alpha
|
/sdk/ninepatch/src/com/android/ninepatch/ |
NinePatch.java | 188 int pixel = image.getRGB(i, 0); local 189 if (pixel != 0 && pixel != 0xFF000000) { 192 pixel = image.getRGB(i, height - 1); 193 if (pixel != 0 && pixel != 0xFF000000) { 198 int pixel = image.getRGB(0, i); local 199 if (pixel != 0 && pixel != 0xFF000000) { 202 pixel = image.getRGB(width - 1, i) [all...] |
/external/webkit/Source/WebCore/platform/image-decoders/bmp/ |
BMPImageReader.h | 190 // Returns the pixel data for the current X coordinate in a uint32_t. 194 // the pixel data will actually be set. 206 uint32_t pixel; local 207 memcpy(&pixel, &m_data->data()[m_decodedOffset + offset], 3); 209 pixel = ((pixel & 0xff00) << 8) | ((pixel & 0xff0000) >> 8) | ((pixel & 0xff000000) >> 24); 211 return pixel; 224 // in the given pixel data [all...] |
/system/core/libpixelflinger/ |
buffer.cpp | 27 uint32_t x, uint32_t y, pixel_t* pixel); 29 uint32_t x, uint32_t y, const pixel_t* pixel); 31 uint32_t x, uint32_t y, pixel_t* pixel); 33 uint32_t x, uint32_t y, pixel_t* pixel); 112 uint32_t x, uint32_t y, pixel_t* pixel) 127 pixel->s[i] = f->c[i].h - f->c[i].l; 128 if (pixel->s[i]) 129 pixel->c[i] = extract(v, f->c[i].h, f->c[i].l, f->size*8); 134 uint32_t x, uint32_t y, pixel_t* pixel) 137 pixel->c[0] = 0 [all...] |
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/ui/ |
PixelPerfectPixelPanel.java | 78 RGB pixel = 81 Color rgbColor = new Color(Display.getDefault(), pixel); 90 (1 << 24) + (pixel.red << 16) + (pixel.green << 8) 91 + pixel.blue).substring(1), 4, 35, true); 95 e.gc.drawText(Integer.toString(pixel.red), 97, 4, true); 96 e.gc.drawText(Integer.toString(pixel.green), 97, 20, true); 97 e.gc.drawText(Integer.toString(pixel.blue), 97, 35, true); 111 pixel = 114 rgbColor = new Color(Display.getDefault(), pixel); [all...] |
/external/webkit/Source/WebCore/platform/graphics/qt/ |
ImageBufferQt.cpp | 186 QRgb& pixel = scanLine[x]; local 187 pixel = qRgba(lookUpTable[qRed(pixel)], 188 lookUpTable[qGreen(pixel)], 189 lookUpTable[qBlue(pixel)], 190 qAlpha(pixel)); 245 QRgb pixel = scanLine[x + originx]; local 246 int alpha = qAlpha(pixel); 250 | (qBlue(pixel) << 16) 251 | (qGreen(pixel) << 8 267 QRgb pixel = scanLine[x + originx]; local 348 quint32 pixel = srcScanLine[x]; local 358 quint32 pixel = srcScanLine[x]; local [all...] |
/frameworks/base/services/surfaceflinger/tests/ |
Transaction_test.cpp | 37 uint8_t* pixel = img + (4 * (y*info.s + x)); local 38 pixel[0] = r; 39 pixel[1] = g; 40 pixel[2] = b; 41 pixel[3] = 255; 48 // individual pixel values for testing purposes. 65 const uint8_t* pixel = img + (4 * (y*mWidth + x)); local 66 if (r != pixel[0] || g != pixel[1] || b != pixel[2]) [all...] |
/external/webkit/Tools/DumpRenderTree/qt/ |
ImageDiff.cpp | 100 QRgb pixel = actualImage.pixel(x, y); local 101 QRgb basePixel = baselineImage.pixel(x, y); 102 qreal red = (qRed(pixel) - qRed(basePixel)) / static_cast<float>(qMax(255 - qRed(basePixel), qRed(basePixel))); 103 qreal green = (qGreen(pixel) - qGreen(basePixel)) / static_cast<float>(qMax(255 - qGreen(basePixel), qGreen(basePixel))); 104 qreal blue = (qBlue(pixel) - qBlue(basePixel)) / static_cast<float>(qMax(255 - qBlue(basePixel), qBlue(basePixel))); 105 qreal alpha = (qAlpha(pixel) - qAlpha(basePixel)) / static_cast<float>(qMax(255 - qAlpha(basePixel), qAlpha(basePixel)));
|
/system/core/libpixelflinger/codeflinger/ |
GGLAssembler.cpp | 242 // load the framebuffer pixel 250 pixel_t pixel; 255 pixel = directTex ? parts.texel[directTex-1] : parts.iterated; 256 pixel.flags &= ~CORRUPTIBLE; 268 // allocate a register for the resulting pixel 269 pixel.setTo(regs.obtain(), &mCbFormat, FIRST); 271 build_component(pixel, parts, GGLFormat::ALPHA, regs); 279 build_component(pixel, parts, GGLFormat::RED, regs); 280 build_component(pixel, parts, GGLFormat::GREEN, regs); 281 build_component(pixel, parts, GGLFormat::BLUE, regs) [all...] |
texturing.cpp | 220 // the iterators because there is always an extra pixel on the 421 // at 1 or 4 bytes / pixel on any texture unit. 508 // pixel size scale 696 // about ~22 cycles / pixel 699 int pixel= scratches.obtain(); local 711 int offset = pixel; 713 LDRB(AL, pixel, txPtr.reg, reg_scale_pre(offset)); 715 SMULBB(AL, d, pixel, u); 720 LDRB(AL, pixel, txPtr.reg, reg_scale_pre(lb)); 722 SMLABB(AL, d, pixel, u, d) 804 int pixel= scratches.obtain(); local 888 int pixel= scratches.obtain(); local 987 int pixel= scratches.obtain(); local [all...] |
/external/libpng/contrib/gregbook/ |
rpng2-x.c | 26 - 1.10: added support for non-default visuals; fixed X pixel-conversion 1085 ulg pixel; local 1377 ulg i, pixel; local 1618 ulg pixel; local [all...] |
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 >> 24) & 0xff) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/ |
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...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
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);
|
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);
|
/external/webkit/Source/WebCore/platform/graphics/cg/ |
ImageCG.cpp | 114 unsigned char pixel[4]; // RGBA local 115 RetainPtr<CGContextRef> bmap(AdoptCF, CGBitmapContextCreate(pixel, 1, 1, 8, sizeof(pixel), deviceRGBColorSpaceRef(), 122 if (pixel[3] == 0) 125 m_solidColor = Color(pixel[0] * 255 / pixel[3], pixel[1] * 255 / pixel[3], pixel[2] * 255 / pixel[3], pixel[3]) [all...] |
/external/webkit/Source/WebCore/platform/graphics/filters/ |
FEMorphology.cpp | 143 unsigned char pixel = srcPixelArray->get(i * effectWidth + 4 * j + channel); local 144 if ((m_type == FEMORPHOLOGY_OPERATOR_ERODE && pixel <= columnExtrema) || 145 (m_type == FEMORPHOLOGY_OPERATOR_DILATE && pixel >= columnExtrema)) 146 columnExtrema = pixel; 156 unsigned char pixel = srcPixelArray->get(i * effectWidth + endX * 4 + channel); local 157 if ((m_type == FEMORPHOLOGY_OPERATOR_ERODE && pixel <= columnExtrema) || 158 (m_type == FEMORPHOLOGY_OPERATOR_DILATE && pixel >= columnExtrema)) 159 columnExtrema = pixel;
|