Home
last modified time | relevance | path

Searched refs:colorPtr (Results 1 – 20 of 20) sorted by relevance

/external/skia/src/codec/
DSkGifCodec.cpp394 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);
DSkCodecPriv.h159 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()
DSkPngCodec.cpp104 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()
DSkBmpStandardCodec.cpp186 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()
DSkWbmpCodec.cpp25 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()
DSkGifCodec.h113 void initializeColorTable(const SkImageInfo& dstInfo, SkPMColor* colorPtr,
/external/skia/tests/
DCodecPriv.h22 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()
DSwizzlerTest.cpp46 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()
DGifTest.cpp209 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/
DSkParseColor.cpp456 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()
DSkTextureCompressor_ASTC.cpp1996 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/
Dfuzz.cpp140 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/
DSkShader.cpp76 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/
DSkBitmapRegionCodec.cpp60 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/
DGrAtlasTextBlob.cpp107 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/
DSkImageDecoder_libgif.cpp338 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));
DSkImageDecoder_libpng.cpp646 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/
DDMSrcSink.cpp295 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/
Dtight.c180 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/
DGrAADistanceFieldPathRenderer.cpp475 GrColor* colorPtr = (GrColor*)(offset + sizeof(SkPoint) + i * vertexStride); in writePathVertices() local
476 *colorPtr = color; in writePathVertices()