/external/skia/src/codec/ |
D | SkGifCodec.cpp | 394 SkPMColor colorPtr[256]; local 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()); local 469 fSwizzler.reset(SkSwizzler::CreateSwizzler(SkSwizzler::kIndex, colorPtr, dstInfo, opts, 518 const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()); local 519 return get_color_table_fill_value(colorType, colorPtr, fFillIndex);
|
D | SkCodecPriv.h | 159 inline uint32_t get_color_table_fill_value(SkColorType colorType, const SkPMColor* colorPtr, in get_color_table_fill_value() argument 161 SkASSERT(nullptr != colorPtr); in get_color_table_fill_value() 164 return colorPtr[fillIndex]; in get_color_table_fill_value() 166 return SkPixel32ToPixel16(colorPtr[fillIndex]); in get_color_table_fill_value()
|
D | SkPngCodec.cpp | 104 SkPMColor colorPtr[256]; in decodePalette() local 122 colorPtr[i] = proc(alphas[i], palette->red, palette->green, palette->blue); in decodePalette() 137 SkOpts::RGB_to_RGB1(colorPtr + numColorsWithAlpha, palette, numColors - numColorsWithAlpha); in decodePalette() 139 SkOpts::RGB_to_BGR1(colorPtr + numColorsWithAlpha, palette, numColors - numColorsWithAlpha); in decodePalette() 147 SkPMColor lastColor = numColors > 0 ? colorPtr[numColors - 1] : SK_ColorBLACK; in decodePalette() 148 sk_memset32(colorPtr + numColors, lastColor, maxColors - numColors); in decodePalette() 156 fColorTable.reset(new SkColorTable(colorPtr, maxColors)); in decodePalette() 533 const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()); in onGetFillValue() local 534 if (colorPtr) { in onGetFillValue() 535 return get_color_table_fill_value(colorType, colorPtr, 0); in onGetFillValue()
|
D | SkBmpStandardCodec.cpp | 186 const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()); in initializeSwizzler() local 189 fSwizzler.reset(SkSwizzler::CreateSwizzler(config, colorPtr, dstInfo, opts)); in initializeSwizzler() 323 const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()); in onGetFillValue() local 324 if (colorPtr) { in onGetFillValue() 325 return get_color_table_fill_value(colorType, colorPtr, 0); in onGetFillValue()
|
D | SkWbmpCodec.cpp | 25 SkPMColor* colorPtr, int* colorCount) { in setup_color_table() argument 27 colorPtr[0] = SK_ColorBLACK; in setup_color_table() 28 colorPtr[1] = SK_ColorWHITE; in setup_color_table()
|
D | SkGifCodec.h | 113 void initializeColorTable(const SkImageInfo& dstInfo, SkPMColor* colorPtr,
|
/external/skia/tests/ |
D | CodecPriv.h | 22 SkPMColor* colorPtr = nullptr; in decode_memory() local 28 colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); in decode_memory() 34 bm->rowBytes(), nullptr, colorPtr, colorCountPtr); in decode_memory()
|
D | SwizzlerTest.cpp | 46 uint32_t* colorPtr = (uint32_t*) indexPtr; in check_fill() local 55 REPORTER_ASSERT(r, kFillColor == colorPtr[x]); in check_fill() 69 colorPtr = (uint32_t*) indexPtr; in check_fill()
|
D | GifTest.cpp | 209 SkPMColor* colorPtr = nullptr; in DEF_TEST() local 215 colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); in DEF_TEST() 221 options.fColorPtr = colorPtr; in DEF_TEST()
|
/external/skia/src/utils/ |
D | SkParseColor.cpp | 456 const char* SkParse::FindColor(const char* value, SkColor* colorPtr) { in FindColor() argument 457 unsigned int oldAlpha = SkColorGetA(*colorPtr); in FindColor() 470 *colorPtr = SkColorSetARGB(a, r, g, b); in FindColor() 475 *colorPtr = hex; in FindColor() 494 return FindNamedColor(value, strlen(value), colorPtr); in FindColor()
|
D | SkTextureCompressor_ASTC.cpp | 1996 SkColor* colorPtr = reinterpret_cast<SkColor*>(dst); in decompress_astc_block() local 1998 colorPtr[x] = data.getTexel(endpoints, texelWeights, x, y); in decompress_astc_block() 2090 SkColor *colorPtr = reinterpret_cast<SkColor*>(dst); in DecompressASTC() local 2093 decompress_astc_block(reinterpret_cast<uint8_t*>(colorPtr + x), dstRowBytes, data); in DecompressASTC()
|
/external/skia/fuzz/ |
D | fuzz.cpp | 140 SkPMColor* colorPtr = nullptr; in fuzz_img() local 146 colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); in fuzz_img() 164 colorPtr, colorCountPtr)) { in fuzz_img() 182 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, NULL, colorPtr, in fuzz_img() 222 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, NULL, colorPtr, in fuzz_img() 247 colorPtr, colorCountPtr); in fuzz_img() 312 &opts, colorPtr, colorCountPtr); in fuzz_img()
|
/external/skia/src/core/ |
D | SkShader.cpp | 76 bool SkShader::asLuminanceColor(SkColor* colorPtr) const { in asLuminanceColor() 78 if (nullptr == colorPtr) { in asLuminanceColor() 79 colorPtr = &storage; in asLuminanceColor() 81 if (this->onAsLuminanceColor(colorPtr)) { in asLuminanceColor() 82 *colorPtr = SkColorSetA(*colorPtr, 0xFF); // we only return opaque in asLuminanceColor()
|
/external/skia/src/android/ |
D | SkBitmapRegionCodec.cpp | 60 SkPMColor* colorPtr = nullptr; in decodeRegion() local 74 colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); in decodeRegion() 125 options.fColorPtr = colorPtr; in decodeRegion()
|
/external/skia/src/gpu/text/ |
D | GrAtlasTextBlob.cpp | 107 SkColor* colorPtr = reinterpret_cast<SkColor*>(vertex + sizeof(SkPoint)); in appendGlyph() local 108 *colorPtr = color; in appendGlyph() 114 colorPtr = reinterpret_cast<SkColor*>(vertex + sizeof(SkPoint)); in appendGlyph() 115 *colorPtr = color; in appendGlyph() 121 colorPtr = reinterpret_cast<SkColor*>(vertex + sizeof(SkPoint)); in appendGlyph() 122 *colorPtr = color; in appendGlyph() 128 colorPtr = reinterpret_cast<SkColor*>(vertex + sizeof(SkPoint)); in appendGlyph() 129 *colorPtr = color; in appendGlyph()
|
/external/skia/src/images/ |
D | SkImageDecoder_libgif.cpp | 338 SkPMColor colorPtr[256]; // storage for worst-case local 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));
|
D | SkImageDecoder_libpng.cpp | 646 SkPMColor* colorPtr = colorStorage; in decodePalette() local 673 *colorPtr++ = proc(*trans++, palette->red, palette->green, palette->blue); in decodePalette() 679 *colorPtr++ = SkPackARGB32(0xFF, palette->red, palette->green, palette->blue); in decodePalette() 693 SkPMColor lastColor = index > 0 ? colorPtr[-1] : SkPackARGB32(0xFF, 0, 0, 0); in decodePalette() 695 *colorPtr++ = lastColor; in decodePalette()
|
/external/skia/dm/ |
D | DMSrcSink.cpp | 295 SkPMColor* colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); in premultiply_if_necessary() local 296 SkOpts::RGBA_to_rgbA(colorPtr, colorPtr, colorTable->count()); in premultiply_if_necessary() 398 SkPMColor* colorPtr = nullptr; in draw() local 404 colorPtr = const_cast<SkPMColor*>(colorTable->readColors()); in draw() 425 colorPtr, colorCountPtr)) { in draw() 440 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, NULL, colorPtr, in draw() 481 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, NULL, colorPtr, in draw() 508 colorPtr, colorCountPtr); in draw() 542 colorPtr, colorCountPtr)) { in draw() 597 &opts, colorPtr, colorCountPtr); in draw() [all …]
|
/external/libvncserver/libvncserver/ |
D | 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); 566 static rfbBool CheckSolidTile(rfbClientPtr cl, int x, int y, int w, int h, uint32_t* colorPtr, rfbB… in CheckSolidTile() argument 570 return CheckSolidTile32(cl, x, y, w, h, colorPtr, needSameColor); in CheckSolidTile() 572 return CheckSolidTile16(cl, x, y, w, h, colorPtr, needSameColor); in CheckSolidTile() 574 return CheckSolidTile8(cl, x, y, w, h, colorPtr, needSameColor); in CheckSolidTile() 583 uint32_t* colorPtr, rfbBool needSameColor) \ 593 if (needSameColor && (uint32_t)colorValue != *colorPtr) \ [all …]
|
/external/skia/src/gpu/batches/ |
D | GrAADistanceFieldPathRenderer.cpp | 475 GrColor* colorPtr = (GrColor*)(offset + sizeof(SkPoint) + i * vertexStride); in writePathVertices() local 476 *colorPtr = color; in writePathVertices()
|