/external/skia/src/core/ |
D | SkSpriteBlitter_RGB16.cpp | 153 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->lockCo… 154 #define SkSPRITE_BLIT_PIXEL(dst, src) D16_S32A_Opaque_Pixel(dst, ctable[src]) 167 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->lockCo… 168 #define SkSPRITE_BLIT_PIXEL(dst, src) D16_S32A_Blend_Pixel(dst, ctable[src], src_scale) 181 SK_RESTRICT const uint16_t* ctable) { in blitrow_d16_si8() argument 184 *dst++ = ctable[*src++]; in blitrow_d16_si8() 191 *dst++ = ctable[*src++]; in blitrow_d16_si8() 202 *dst++ = ctable[s4 & 0xFF]; in blitrow_d16_si8() 203 *dst++ = ctable[(s4 >> 8) & 0xFF]; in blitrow_d16_si8() 204 *dst++ = ctable[(s4 >> 16) & 0xFF]; in blitrow_d16_si8() [all …]
|
D | SkProcSpriteBlitter.cpp | 22 typedef void (*Proc)(void* dst, const void* src, int count, const SkPMColor ctable[]); 34 const SkPMColor* ctable = NULL; 37 ctable = fSource.getColorTable()->lockColors(); 41 proc(dst, src, width, ctable);
|
D | SkBitmap.cpp | 319 void SkBitmap::setPixels(void* p, SkColorTable* ctable) { in setPixels() argument 322 SkRefCnt_SafeAssign(fColorTable, ctable); in setPixels() 327 bool SkBitmap::allocPixels(Allocator* allocator, SkColorTable* ctable) { in allocPixels() argument 333 return allocator->allocPixelRef(this, ctable); in allocPixels() 377 SkColorTable* ctable) { in SkMallocPixelRef() argument 381 fCTable = ctable; in SkMallocPixelRef() 382 ctable->safeRef(); in SkMallocPixelRef() 430 SkColorTable* ctable) { in allocPixelRef() argument 441 dst->setPixelRef(new SkMallocPixelRef(addr, size.get32(), ctable))->unref(); in allocPixelRef() 754 SkColorTable* ctable = (dstConfig == kIndex8_Config) ? in copyTo() local [all …]
|
/external/skia/include/core/ |
D | SkBitmap.h | 190 void setPixels(void* p, SkColorTable* ctable = NULL); 205 bool allocPixels(SkColorTable* ctable = NULL) { 206 return this->allocPixels(NULL, ctable); 228 bool allocPixels(Allocator* allocator, SkColorTable* ctable); 602 explicit SkAutoLockColors(SkColorTable* ctable) { in SkAutoLockColors() argument 603 fCTable = ctable; in SkAutoLockColors() 604 fColors = ctable ? ctable->lockColors() : NULL; in SkAutoLockColors() 620 const SkPMColor* lockColors(SkColorTable* ctable) { in lockColors() argument 624 fCTable = ctable; in lockColors() 625 fColors = ctable ? ctable->lockColors() : NULL; in lockColors()
|
D | SkMallocPixelRef.h | 30 SkMallocPixelRef(void* addr, size_t size, SkColorTable* ctable);
|
/external/skia/tests/ |
D | BitmapCopyTest.cpp | 35 SkColorTable* ctable = bitmap.getColorTable(); in test_isOpaque() local 36 unsigned ctableFlags = ctable ? ctable->getFlags() : 0; in test_isOpaque() 40 if (ctable) { in test_isOpaque() 41 ctable->setFlags(ctableFlags & ~SkColorTable::kColorsAreOpaque_Flag); in test_isOpaque() 51 if (ctable) { in test_isOpaque() 52 ctable->setFlags(ctableFlags | SkColorTable::kColorsAreOpaque_Flag); in test_isOpaque() 60 if (ctable) { in test_isOpaque() 61 ctable->setFlags(ctableFlags); in test_isOpaque()
|
/external/skia/src/images/ |
D | SkScaledBitmapSampler.cpp | 211 int width, int deltaSrc, int, const SkPMColor ctable[]) { in Sample_Index_D8888() argument 216 SkPMColor c = ctable[*src]; in Sample_Index_D8888() 226 int width, int deltaSrc, int, const SkPMColor ctable[]) { in Sample_Index_D565() argument 230 dst[x] = SkPixel32ToPixel16(ctable[*src]); in Sample_Index_D565() 238 int deltaSrc, int y, const SkPMColor ctable[]) { in Sample_Index_D565_D() argument 244 SkPMColor c = ctable[*src]; in Sample_Index_D565_D() 254 int deltaSrc, int y, const SkPMColor ctable[]) { in Sample_Index_D4444() argument 259 SkPMColor c = ctable[*src]; in Sample_Index_D4444() 269 int deltaSrc, int y, const SkPMColor ctable[]) { in Sample_Index_D4444_D() argument 276 SkPMColor c = ctable[*src]; in Sample_Index_D4444_D() [all …]
|
D | SkImageDecoder_libgif.cpp | 225 SkColorTable* ctable = SkNEW_ARGS(SkColorTable, (colorCount)); in onDecode() local 226 SkPMColor* colorPtr = ctable->lockColors(); in onDecode() 235 ctable->setFlags(ctable->getFlags() | SkColorTable::kColorsAreOpaque_Flag); in onDecode() 238 ctable->unlockColors(true); in onDecode() 240 SkAutoUnref aurts(ctable); in onDecode() 241 if (!this->allocPixelRef(bm, ctable)) { in onDecode()
|
D | SkCreateRLEPixelRef.cpp | 8 RLEPixelRef(SkBitmap::RLEPixels* rlep, SkColorTable* ctable); 21 RLEPixelRef::RLEPixelRef(SkBitmap::RLEPixels* rlep, SkColorTable* ctable) in RLEPixelRef() argument 24 fCTable = ctable; in RLEPixelRef() 25 ctable->safeRef(); in RLEPixelRef()
|
D | SkImageDecoder_libpng.cpp | 938 static inline int pack_palette(SkColorTable* ctable, in pack_palette() argument 941 SkAutoLockColors alc(ctable); in pack_palette() 943 const int ctCount = ctable->count(); in pack_palette() 1045 SkColorTable* ctable = bitmap.getColorTable(); in onEncode() local 1046 if (NULL != ctable) { in onEncode() 1047 if (ctable->count() == 0) { in onEncode() 1051 bitDepth = computeBitDepth(ctable->count()); in onEncode()
|
D | SkImageDecoder.cpp | 109 SkColorTable* ctable) const { in allocPixelRef() 110 return bitmap->allocPixels(fAllocator, ctable); in allocPixelRef()
|
D | SkImageDecoder_libjpeg.cpp | 753 const SkPMColor* SK_RESTRICT ctable); 808 const SkPMColor* SK_RESTRICT ctable) { in Write_Index_YUV() argument 812 rgb2yuv_32(dst, ctable[*src++]); in Write_Index_YUV() 814 uint32_t c = ctable[*src++]; in Write_Index_YUV()
|
/external/stlport/src/c_locale_dummy/ |
D | c_locale_dummy.c | 50 static _Locale_mask_t ctable[256]; variable 59 if (isalpha(c)) ctable[(unsigned char)c] |= _Locale_ALPHA; in _Locale_init() 60 if (iscntrl(c)) ctable[(unsigned char)c] |= _Locale_CNTRL; in _Locale_init() 61 if (isdigit(c)) ctable[(unsigned char)c] |= _Locale_DIGIT; in _Locale_init() 62 if (isprint(c)) ctable[(unsigned char)c] |= _Locale_PRINT; in _Locale_init() 63 if (ispunct(c)) ctable[(unsigned char)c] |= _Locale_PUNCT; in _Locale_init() 64 if (isspace(c)) ctable[(unsigned char)c] |= _Locale_SPACE; in _Locale_init() 65 if (isxdigit(c)) ctable[(unsigned char)c] |= _Locale_XDIGIT; in _Locale_init() 66 if (isupper(c)) ctable[(unsigned char)c] |= _Locale_UPPER; in _Locale_init() 67 if (islower(c)) ctable[(unsigned char)c] |= _Locale_LOWER; in _Locale_init() [all …]
|
/external/skia/bench/ |
D | RepeatTileBench.cpp | 49 SkColorTable* ctable = new SkColorTable(216); in convertToIndex666() local 50 SkPMColor* colors = ctable->lockColors(); in convertToIndex666() 62 ctable->unlockColors(true); in convertToIndex666() 64 dst->allocPixels(ctable); in convertToIndex666() 65 ctable->unref(); in convertToIndex666()
|
D | BitmapBench.cpp | 53 SkColorTable* ctable = new SkColorTable(216); in convertToIndex666() local 54 SkPMColor* colors = ctable->lockColors(); in convertToIndex666() 66 ctable->unlockColors(true); in convertToIndex666() 68 dst->allocPixels(ctable); in convertToIndex666() 69 ctable->unref(); in convertToIndex666()
|
/external/skia/gm/ |
D | bitmapfilters.cpp | 10 SkColorTable* ctable = new SkColorTable(colors, 4); in make_bm() local 12 bm->allocPixels(ctable); in make_bm() 13 ctable->unref(); in make_bm()
|
/external/stlport/src/c_locale_win32/ |
D | c_locale_win32.c | 186 unsigned short ctable[256]; member 353 GetStringTypeW(CT_CTYPE1, wbuffer, 256, ltype->ctable); in _Locale_ctype_create() 354 MapCtypeMasks(ltype->ctable, ltype->ctable + 256); in _Locale_ctype_create() 358 unsigned short ctable[256]; in _Locale_ctype_create() local 360 GetStringTypeA(ltype->lc.id, CT_CTYPE1, (const char*)Buffer, 256, ctable); in _Locale_ctype_create() 376 ltype->ctable[TargetBuffer[i]] = MapCtypeMask(ctable[i]); in _Locale_ctype_create() 381 GetStringTypeA(ltype->lc.id, CT_CTYPE1, (const char*)Buffer, 256, ltype->ctable); in _Locale_ctype_create() 382 MapCtypeMasks(ltype->ctable, ltype->ctable + 256); in _Locale_ctype_create() 1031 _STLP_STATIC_ASSERT(sizeof(_Locale_mask_t) == sizeof(ltype->ctable[0])) in _Locale_ctype_table() 1032 return (const _Locale_mask_t*)ltype->ctable; in _Locale_ctype_table()
|
D | c_wlocale_win32.c | 115 static int __isleadbyte(int i, unsigned char *ctable) { in __isleadbyte() argument 117 return (ctable[c / CHAR_BIT] & (0x01 << c % CHAR_BIT)); in __isleadbyte()
|
/external/webkit/WebCore/platform/graphics/android/ |
D | ImageAndroid.cpp | 143 SkColorTable* ctable = bm.getColorTable(); in checkForSolidColor() local 144 if (!ctable) { in checkForSolidColor() 147 color = (*ctable)[*bm.getAddr8(0, 0)]; in checkForSolidColor()
|
/external/skia/src/gl/ |
D | SkGL.cpp | 217 SkColorTable* ctable = bitmap.getColorTable(); in build_compressed_data() local 220 memcpy(dst, ctable->lockColors(), ctable->count() * sizeof(SkPMColor)); in build_compressed_data() 221 ctable->unlockColors(false); in build_compressed_data()
|