/external/skia/tests/ |
CodecPriv.h | 22 SkPMColor* colorPtr = nullptr; 28 colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); 34 bm->rowBytes(), nullptr, colorPtr, colorCountPtr);
|
SwizzlerTest.cpp | 46 uint32_t* colorPtr = (uint32_t*) indexPtr; 55 REPORTER_ASSERT(r, kFillColor == colorPtr[x]); 69 colorPtr = (uint32_t*) indexPtr;
|
GifTest.cpp | 209 SkPMColor* colorPtr = nullptr; 215 colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); 221 options.fColorPtr = colorPtr;
|
/external/skia/src/codec/ |
SkCodecPriv.h | 159 inline uint32_t get_color_table_fill_value(SkColorType colorType, const SkPMColor* colorPtr, 161 SkASSERT(nullptr != colorPtr); 164 return colorPtr[fillIndex]; 166 return SkPixel32ToPixel16(colorPtr[fillIndex]);
|
SkGifCodec.cpp | 394 SkPMColor colorPtr[256]; 416 colorPtr[i] = SkPackARGB32(0xFF, colorMap->Colors[i].Red, 434 colorPtr[fTransIndex] = SK_ColorTRANSPARENT; 441 colorPtr[i] = colorPtr[fFillIndex]; 444 sk_memset32(colorPtr, 0xFF000000, maxColors); 447 fColorTable.reset(new SkColorTable(colorPtr, maxColors)); 467 const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()); 469 fSwizzler.reset(SkSwizzler::CreateSwizzler(SkSwizzler::kIndex, colorPtr, dstInfo, opts, 518 const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()) [all...] |
SkBmpStandardCodec.cpp | 186 const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()); 189 fSwizzler.reset(SkSwizzler::CreateSwizzler(config, colorPtr, dstInfo, opts)); 323 const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()); 324 if (colorPtr) { 325 return get_color_table_fill_value(colorType, colorPtr, 0);
|
SkPngCodec.cpp | 104 SkPMColor colorPtr[256]; 122 colorPtr[i] = proc(alphas[i], palette->red, palette->green, palette->blue); 137 SkOpts::RGB_to_RGB1(colorPtr + numColorsWithAlpha, palette, numColors - numColorsWithAlpha); 139 SkOpts::RGB_to_BGR1(colorPtr + numColorsWithAlpha, palette, numColors - numColorsWithAlpha); 147 SkPMColor lastColor = numColors > 0 ? colorPtr[numColors - 1] : SK_ColorBLACK; 148 sk_memset32(colorPtr + numColors, lastColor, maxColors - numColors); 156 fColorTable.reset(new SkColorTable(colorPtr, maxColors)); 533 const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()); 534 if (colorPtr) { 535 return get_color_table_fill_value(colorType, colorPtr, 0) [all...] |
SkGifCodec.h | 113 void initializeColorTable(const SkImageInfo& dstInfo, SkPMColor* colorPtr,
|
SkWbmpCodec.cpp | 25 SkPMColor* colorPtr, int* colorCount) { 27 colorPtr[0] = SK_ColorBLACK; 28 colorPtr[1] = SK_ColorWHITE;
|
/external/skia/src/android/ |
SkBitmapRegionCodec.cpp | 60 SkPMColor* colorPtr = nullptr; 74 colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); 125 options.fColorPtr = colorPtr;
|
/external/skia/src/core/ |
SkShader.cpp | 76 bool SkShader::asLuminanceColor(SkColor* colorPtr) const { 78 if (nullptr == colorPtr) { 79 colorPtr = &storage; 81 if (this->onAsLuminanceColor(colorPtr)) { 82 *colorPtr = SkColorSetA(*colorPtr, 0xFF); // we only return opaque
|
/external/skia/fuzz/ |
fuzz.cpp | 140 SkPMColor* colorPtr = nullptr; 146 colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); 164 colorPtr, colorCountPtr)) { 182 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, NULL, colorPtr, 222 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, NULL, colorPtr, 247 colorPtr, colorCountPtr); 312 &opts, colorPtr, colorCountPtr);
|
/external/skia/src/images/ |
SkImageDecoder_libgif.cpp | 337 // Declare colorPtr here for scope. 338 SkPMColor colorPtr[256]; // storage for worst-case 347 colorPtr[index] = SkPackARGB32(0xFF, 357 sk_memset32(colorPtr, SK_ColorWHITE, colorCount); 361 colorPtr[transpIndex] = SK_ColorTRANSPARENT; // ram in a transparent SkPMColor 368 SkAutoTUnref<SkColorTable> ctable(new SkColorTable(colorPtr, colorCount));
|
SkImageDecoder_libpng.cpp | 646 SkPMColor* colorPtr = colorStorage; 673 *colorPtr++ = proc(*trans++, palette->red, palette->green, palette->blue); 679 *colorPtr++ = SkPackARGB32(0xFF, palette->red, palette->green, palette->blue); 693 SkPMColor lastColor = index > 0 ? colorPtr[-1] : SkPackARGB32(0xFF, 0, 0, 0); 695 *colorPtr++ = lastColor; [all...] |
/external/skia/src/utils/ |
SkParseColor.cpp | 456 const char* SkParse::FindColor(const char* value, SkColor* colorPtr) { 457 unsigned int oldAlpha = SkColorGetA(*colorPtr); 470 *colorPtr = SkColorSetARGB(a, r, g, b); 475 *colorPtr = hex; 490 // *colorPtr = SkColorSetARGB(SkScalarRoundToInt(array[0]), SkScalarRoundToInt(array[1]), 494 return FindNamedColor(value, strlen(value), colorPtr);
|
SkTextureCompressor_ASTC.cpp | [all...] |
/external/skia/src/gpu/text/ |
GrAtlasTextBlob.cpp | 107 SkColor* colorPtr = reinterpret_cast<SkColor*>(vertex + sizeof(SkPoint)); 108 *colorPtr = color; 114 colorPtr = reinterpret_cast<SkColor*>(vertex + sizeof(SkPoint)); 115 *colorPtr = color; 121 colorPtr = reinterpret_cast<SkColor*>(vertex + sizeof(SkPoint)); 122 *colorPtr = color; 128 colorPtr = reinterpret_cast<SkColor*>(vertex + sizeof(SkPoint)); 129 *colorPtr = color;
|
/external/skia/dm/ |
DMSrcSink.cpp | 295 SkPMColor* colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); 296 SkOpts::RGBA_to_rgbA(colorPtr, colorPtr, colorTable->count()); 398 SkPMColor* colorPtr = nullptr; 404 colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); 425 colorPtr, colorCountPtr)) { 440 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, NULL, colorPtr, 481 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, NULL, colorPtr, 508 colorPtr, colorCountPtr); 542 colorPtr, colorCountPtr)) [all...] |
/external/libvncserver/libvncserver/ |
tight.c | 180 uint32_t *colorPtr, rfbBool needSameColor); 182 uint32_t *colorPtr, rfbBool needSameColor); 184 uint32_t *colorPtr, rfbBool needSameColor); 186 uint32_t *colorPtr, rfbBool needSameColor); 562 * *colorPtr value. The result is 1 if the test is successfull, and in 563 * that case new color will be stored in *colorPtr. 566 static rfbBool CheckSolidTile(rfbClientPtr cl, int x, int y, int w, int h, uint32_t* colorPtr, rfbBool needSameColor) 570 return CheckSolidTile32(cl, x, y, w, h, colorPtr, needSameColor); 572 return CheckSolidTile16(cl, x, y, w, h, colorPtr, needSameColor); 574 return CheckSolidTile8(cl, x, y, w, h, colorPtr, needSameColor) [all...] |
/frameworks/base/core/jni/android/graphics/ |
BitmapFactory.cpp | 369 SkPMColor* colorPtr = nullptr; 381 colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); 413 codecOptions.fColorPtr = colorPtr;
|
/external/skia/src/gpu/batches/ |
GrAADistanceFieldPathRenderer.cpp | 475 GrColor* colorPtr = (GrColor*)(offset + sizeof(SkPoint) + i * vertexStride); 476 *colorPtr = color;
|