/macosx-10.9.5/tcl-102/tcl_ext/quicktimetcl/quicktimetcl/ |
H A D | MacPorted.c | 20 * pixel value. 23 * Returns false if not a real pixel, true otherwise. 33 unsigned long pixel, /* Pixel value to convert. */ 37 macColor->blue = (unsigned short) ((pixel & 0xFF) << 8); 38 macColor->green = (unsigned short) (((pixel >> 8) & 0xFF) << 8); 39 macColor->red = (unsigned short) (((pixel >> 16) & 0xFF) << 8); 41 macColor->red = (unsigned short) (((pixel >> 24) & 0xFF) << 8); 42 macColor->green = (unsigned short) (((pixel >> 16) & 0xFF) << 8); 43 macColor->blue = (unsigned short) (((pixel >> 8) & 0xFF) << 8); 32 TkSetMacColor( unsigned long pixel, RGBColor *macColor) argument
|
/macosx-10.9.5/WebCore-7537.78.1/platform/image-encoders/ |
H A D | JPEGImageEncoder.cpp | 120 const unsigned char* pixel = rgbaBigEndianData; local 121 const unsigned char* pixelEnd = pixel + compressData.image_width * compressData.image_height * 4; 122 while (pixel < pixelEnd) { 124 for (const unsigned char* rowEnd = pixel + compressData.image_width * 4; pixel < rowEnd;) { 125 *output++ = static_cast<JSAMPLE>(*pixel++ & 0xFF); // red 126 *output++ = static_cast<JSAMPLE>(*pixel++ & 0xFF); // green 127 *output++ = static_cast<JSAMPLE>(*pixel++ & 0xFF); // blue 128 ++pixel; // skip alpha
|
/macosx-10.9.5/tcl-102/tk/tk/macosx/ |
H A D | tkMacOSXColor.c | 6 * map color names to pixel values. 32 * in sync with the public pixel code values in tkMacOSXPort.h ! 183 * When given a pixel code corresponding to a theme system color, 188 * Returns false if not a real pixel, true otherwise. 226 * Get RGB color for a given system color or pixel value. 239 unsigned long pixel, 254 switch ((pixel >> 24) & 0xff) { 257 red = (pixel >> 16) & 0xff; 258 green = (pixel >> 8) & 0xff; 259 blue = (pixel ) 236 GetThemeColor( unsigned long pixel, ThemeBrush brush, ThemeTextColor textColor, ThemeBackgroundKind background, CGColorRef *c) argument 300 TkSetMacColor( unsigned long pixel, void *macColor) argument 356 CopyCachedColor( GC gc, unsigned long pixel) argument 377 SetCachedColor( GC gc, unsigned long pixel, CGColorRef cgColor) argument 418 TkMacOSXCreateCGColor( GC gc, unsigned long pixel) argument 447 TkMacOSXGetNSColor( GC gc, unsigned long pixel) argument 486 TkMacOSXSetColorInContext( GC gc, unsigned long pixel, CGContextRef context) argument [all...] |
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/cg/ |
H A D | BitmapImageCG.cpp | 116 unsigned char pixel[4]; // RGBA local 117 RetainPtr<CGContextRef> bmap = adoptCF(CGBitmapContextCreate(pixel, 1, 1, 8, sizeof(pixel), deviceRGBColorSpaceRef(), 124 if (pixel[3] == 0) 127 m_solidColor = Color(pixel[0] * 255 / pixel[3], pixel[1] * 255 / pixel[3], pixel[2] * 255 / pixel[ [all...] |
/macosx-10.9.5/WebCore-7537.78.1/platform/image-decoders/bmp/ |
H A D | BMPImageReader.h | 191 // Returns the pixel data for the current X coordinate in a uint32_t. 195 // the pixel data will actually be set. 207 uint32_t pixel; local 208 memcpy(&pixel, &m_data->data()[m_decodedOffset + offset], 3); 210 pixel = ((pixel & 0xff00) << 8) | ((pixel & 0xff0000) >> 8) | ((pixel & 0xff000000) >> 24); 212 return pixel; 225 // in the given pixel dat 226 getComponent(uint32_t pixel, int component) const argument [all...] |
H A D | BMPImageReader.cpp | 425 // specify a bogus alpha channel in bits that don't exist in the pixel 445 // Count offset into pixel data. 582 // point to the beginning of the pixel data, bump it past 668 for (size_t pixel = 0; (pixel < pixelsPerByte) && (m_coord.x() < endX); ++pixel) { 692 const uint32_t pixel = readCurrentPixel(bytesPerPixel); local 703 int alpha = getAlpha(pixel); 716 setRGBA(getComponent(pixel, 0), getComponent(pixel, [all...] |
/macosx-10.9.5/WebCore-7537.78.1/platform/image-decoders/png/ |
H A D | PNGImageDecoder.cpp | 406 static inline void setPixelRGB(ImageFrame::PixelData* dest, png_bytep pixel) argument 408 *dest = 0xFF000000U | pixel[0] << 16 | pixel[1] << 8 | pixel[2]; 411 static inline void setPixelRGBA(ImageFrame::PixelData* dest, png_bytep pixel, unsigned char& nonTrivialAlphaMask) argument 413 unsigned char a = pixel[3]; 414 *dest = a << 24 | pixel[0] << 16 | pixel[1] << 8 | pixel[2]; 418 static inline void setPixelPremultipliedRGBA(ImageFrame::PixelData* dest, png_bytep pixel, unsigne argument 533 png_bytep pixel = row + m_scaledColumns[x] * colorChannels; local 541 png_bytep pixel = row; local [all...] |
/macosx-10.9.5/tcl-102/tk/tk/win/ |
H A D | tkWinImage.c | 19 unsigned long pixel); 58 * Get a single pixel from an image. 61 * Returns the 32 bit pixel value. 74 unsigned long pixel = 0; 81 pixel = RGB(srcPtr[2], srcPtr[1], srcPtr[0]); 84 pixel = RGB(((((WORD*)srcPtr)[0]) >> 7) & 0xf8, 89 pixel = srcPtr[0]; 92 pixel = ((x%2) ? (*srcPtr) : ((*srcPtr) >> 4)) & 0x0f; 95 pixel = ((*srcPtr) & (0x80 >> (x%8))) ? 1 : 0; 98 return pixel; 72 unsigned long pixel = 0; local 116 PutPixel( XImage *image, int x, int y, unsigned long pixel) argument 612 COLORREF pixel; local 628 PutPixel(imagePtr, (int) xx, (int) yy, pixel); local [all...] |
H A D | tkWin3d.c | 145 ? ((WinBorder *)borderPtr)->light2ColorPtr->pixel 146 : ((WinBorder *)borderPtr)->dark2ColorPtr->pixel; 151 : ((WinBorder *)borderPtr)->light2ColorPtr->pixel; 153 ? ((WinBorder *)borderPtr)->dark2ColorPtr->pixel 246 ? ((WinBorder *)borderPtr)->light2ColorPtr->pixel 247 : ((WinBorder *)borderPtr)->dark2ColorPtr->pixel; 252 : ((WinBorder *)borderPtr)->light2ColorPtr->pixel; 254 ? ((WinBorder *)borderPtr)->dark2ColorPtr->pixel 361 gcValues.foreground = borderPtr->darkColorPtr->pixel; 365 gcValues.foreground = borderPtr->lightColorPtr->pixel; [all...] |
H A D | tkWinColor.c | 155 colorPtr->pixel = GetSysColor(sysColors[i].index); 162 colorPtr->red = GetRValue(colorPtr->pixel) * 257; 163 colorPtr->green = GetGValue(colorPtr->pixel) * 257; 164 colorPtr->blue = GetBValue(colorPtr->pixel) * 257; 227 * a pixel value to use to draw that color in a given window. 232 * specified in colorPtr, and also specifies a pixel value to use to draw 253 tkColPtr->info.color.pixel = 0; 286 &tkColPtr->color.pixel, 1, 0L); 395 color->pixel = PALETTERGB(entry.peRed, entry.peGreen, entry.peBlue); 397 (char *) color->pixel, [all...] |
H A D | ttkWinMonitor.c | 64 DWORD pixel = GetSysColor(sysColor->index); local 66 colorSpec.red = GetRValue(pixel) * 257; 67 colorSpec.green = GetGValue(pixel) * 257; 68 colorSpec.blue = GetBValue(pixel) * 257;
|
/macosx-10.9.5/tcl-102/tk84/tk/macosx/ |
H A D | tkMacOSXColor.c | 6 * map color names to pixel values. 37 * in sync with the public pixel code values in tkMacOSXPort.h ! 187 * When given a pixel code corresponding to a theme system color, 192 * Returns false if not a real pixel, true otherwise. 229 * Get RGB color for a given system color or pixel value. 242 unsigned long pixel, 257 c->red = (pixel >> 16) & 0xff; 258 c->green = (pixel >> 8) & 0xff; 259 c->blue = (pixel ) & 0xff; 274 * pixel valu 240 GetThemeColor( unsigned long pixel, ThemeBrush brush, ThemeTextColor textColor, ThemeBackgroundKind background, RGBColor *c) argument 284 TkSetMacColor( unsigned long pixel, RGBColor *macColor) argument 321 TkMacOSXSetColorInPort( unsigned long pixel, int fg, PixPatHandle penPat, CGrafPtr port) argument 401 TkMacOSXSetColorInContext( unsigned long pixel, CGContextRef context) argument [all...] |
/macosx-10.9.5/tcl-102/tk84/tk/win/ |
H A D | tkWin3d.c | 147 ? ((WinBorder *)borderPtr)->light2ColorPtr->pixel 148 : ((WinBorder *)borderPtr)->dark2ColorPtr->pixel; 152 ? ((WinBorder *)borderPtr)->dark2ColorPtr->pixel 153 : ((WinBorder *)borderPtr)->light2ColorPtr->pixel; 249 ? ((WinBorder *)borderPtr)->light2ColorPtr->pixel 250 : ((WinBorder *)borderPtr)->dark2ColorPtr->pixel; 254 ? ((WinBorder *)borderPtr)->dark2ColorPtr->pixel 255 : ((WinBorder *)borderPtr)->light2ColorPtr->pixel; 365 gcValues.foreground = borderPtr->darkColorPtr->pixel; 369 gcValues.foreground = borderPtr->lightColorPtr->pixel; [all...] |
H A D | tkWinImage.c | 19 unsigned long pixel)); 58 * Get a single pixel from an image. 61 * Returns the 32 bit pixel value. 74 unsigned long pixel = 0; 81 pixel = RGB(srcPtr[2], srcPtr[1], srcPtr[0]); 84 pixel = RGB(((((WORD*)srcPtr)[0]) >> 7) & 0xf8, 89 pixel = srcPtr[0]; 92 pixel = ((x%2) ? (*srcPtr) : ((*srcPtr) >> 4)) & 0x0f; 95 pixel = ((*srcPtr) & (0x80 >> (x%8))) ? 1 : 0; 98 return pixel; 72 unsigned long pixel = 0; local 585 COLORREF pixel; local [all...] |
H A D | tkWinColor.c | 157 colorPtr->pixel = GetSysColor(sysColors[i].index); 162 colorPtr->red = GetRValue(colorPtr->pixel) * 257; 163 colorPtr->green = GetGValue(colorPtr->pixel) * 257; 164 colorPtr->blue = GetBValue(colorPtr->pixel) * 257; 228 * locate a pixel value to use to draw that color in a given 234 * to those specified in colorPtr, and also specifies a pixel 255 tkColPtr->info.color.pixel = 0; 288 &tkColPtr->color.pixel, 1, 0L); 398 color->pixel = PALETTERGB(entry.peRed, entry.peGreen, entry.peBlue); 400 (char *) color->pixel, [all...] |
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/window/ |
H A D | window.c | 283 * Generate an XImage from the window. We can then read pixel 315 * pixel values and RGB values. The code below should work 337 cdata.colors[i].pixel = 349 for (i = 0; i < ncolors; i ++) cdata.colors[i].pixel = i; 380 unsigned long pixel = XGetPixel(ximage, x, y); local 383 int r = (pixel & cdata.red_mask) >> cdata.red_shift; 386 int g = (pixel & cdata.green_mask) >> cdata.green_shift; 387 int b = (pixel & cdata.blue_mask) >> cdata.blue_shift; 392 p[0] = cdata.colors[pixel].red >> 8; 394 p[1] = cdata.colors[pixel] [all...] |
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/filters/ |
H A D | FEMorphology.cpp | 127 unsigned char pixel = srcPixelArray->item(eY * effectWidth + 4 * x + clrChannel); local 128 if ((m_type == FEMORPHOLOGY_OPERATOR_ERODE && pixel <= columnExtrema) 129 || (m_type == FEMORPHOLOGY_OPERATOR_DILATE && pixel >= columnExtrema)) { 130 columnExtrema = pixel; 142 unsigned char pixel = srcPixelArray->item(i * effectWidth + endX * 4 + clrChannel); local 143 if ((m_type == FEMORPHOLOGY_OPERATOR_ERODE && pixel <= columnExtrema) 144 || (m_type == FEMORPHOLOGY_OPERATOR_DILATE && pixel >= columnExtrema)) 145 columnExtrema = pixel;
|
H A D | FEConvolveMatrix.cpp | 233 ALWAYS_INLINE void setDestinationPixels(Uint8ClampedArray* image, int& pixel, float* totals, float divisor, float bias, Uint8ClampedArray* src) argument 237 image->set(pixel++, clampRGBAValue(totals[i] / divisor + bias, maxAlpha)); 240 image->set(pixel, src->item(pixel)); 241 ++pixel; 243 image->set(pixel++, maxAlpha); 257 int pixel = (m_targetOffset.y() * paintingData.width + m_targetOffset.x()) * 4; local 267 pixel += (clipBottom - yEnd) * (xIncrease + (clipRight + 1) * 4); 296 setDestinationPixels<preserveAlphaValues>(paintingData.dstPixelArray, pixel, totals, m_divisor, paintingData.bias, paintingData.srcPixelArray); 299 pixel 337 int pixel = (y1 * paintingData.width + x1) * 4; local [all...] |
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/gpu/opencl/ |
H A D | FilterContextOpenCL.cpp | 156 float4 pixel = read_imagef(source, sampler, sourceCoord); 158 pixel = (float4) (clLookUpTable[(int)(round(pixel.x * 255))], clLookUpTable[(int)(round(pixel.y * 255))], 159 clLookUpTable[(int) (round(pixel.z * 255))], pixel.w); 161 write_imagef(destination, sourceCoord, pixel);
|
/macosx-10.9.5/WebCore-7537.78.1/platform/image-decoders/webp/ |
H A D | WEBPImageDecoder.cpp | 194 uint8_t* pixel = row; local 195 for (int x = 0; x < width; ++x, pixel += 4) 196 buffer.setRGBA(x, y, pixel[0], pixel[1], pixel[2], pixel[3]);
|
/macosx-10.9.5/emacs-92/emacs/oldXMenu/ |
H A D | Create.c | 195 Pixel p_bdr_pixel; /* Pane border pixel. */ 196 Pixel s_bdr_pixel; /* Selection border pixel. */ 197 Pixel p_frg_pixel; /* Pane foreground pixel. */ 198 Pixel s_frg_pixel; /* Selection foreground pixel. */ 199 Pixel bkgnd_pixel; /* Menu background pixel. */ 510 p_frg_color.pixel, bkgnd_color.pixel, 652 values->foreground = p_frg_color.pixel; 653 values->background = bkgnd_color.pixel; 666 values->foreground = s_frg_color.pixel; [all...] |
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/cairo/ |
H A D | ImageBufferCairo.cpp | 171 unsigned* pixel = row + x; local 172 Color pixelColor = colorFromPremultipliedARGB(*pixel); 177 *pixel = premultipliedARGBFromColor(pixelColor); 258 unsigned* pixel = row + x + originx; local 261 // function call per pixel is too expensive. 262 unsigned alpha = (*pixel & 0xFF000000) >> 24; 263 unsigned red = (*pixel & 0x00FF0000) >> 16; 264 unsigned green = (*pixel & 0x0000FF00) >> 8; 265 unsigned blue = (*pixel & 0x000000FF); 336 unsigned* pixel local [all...] |
/macosx-10.9.5/pyobjc-42/2.5/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/ |
H A D | guitest_graphics.py | 30 raise ValueError, "bits per pixel isn't multiple of 8" 44 pixel = self.data[offset:offset + self.pixbytes] 45 return pixel 98 'Black pixel at %d,%d'%(x+ox, y+oy)) 105 'White pixel at %d,%d'%(x, y))
|
/macosx-10.9.5/pyobjc-42/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/ |
H A D | guitest_graphics.py | 30 raise ValueError, "bits per pixel isn't multiple of 8" 44 pixel = self.data[offset:offset + self.pixbytes] 45 return pixel 102 'Black pixel at %d,%d'%(x+ox, y+oy)) 109 'White pixel at %d,%d'%(x, y))
|
/macosx-10.9.5/tcl-102/tcl_ext/bwidget/bwidget/ |
H A D | xpm2image.tcl | 91 set pixel [string range $line 0 [expr {$data(chars_per_pixel)-1}]] 92 set c $data(color-$pixel)
|