/external/skia/gm/ |
bitmapfilters.cpp | 10 SkColorTable* ctable = new SkColorTable(colors, 4); local 12 bm->allocPixels(ctable); 13 ctable->unref();
|
/external/skia/bench/ |
RepeatTileBench.cpp | 49 SkColorTable* ctable = new SkColorTable(216); local 50 SkPMColor* colors = ctable->lockColors(); 62 ctable->unlockColors(true); 64 dst->allocPixels(ctable); 65 ctable->unref();
|
BitmapBench.cpp | 53 SkColorTable* ctable = new SkColorTable(216); local 54 SkPMColor* colors = ctable->lockColors(); 66 ctable->unlockColors(true); 68 dst->allocPixels(ctable); 69 ctable->unref();
|
/external/skia/tests/ |
BitmapCopyTest.cpp | 35 SkColorTable* ctable = bitmap.getColorTable(); local 36 unsigned ctableFlags = ctable ? ctable->getFlags() : 0; 40 if (ctable) { 41 ctable->setFlags(ctableFlags & ~SkColorTable::kColorsAreOpaque_Flag); 51 if (ctable) { 52 ctable->setFlags(ctableFlags | SkColorTable::kColorsAreOpaque_Flag); 60 if (ctable) { 61 ctable->setFlags(ctableFlags);
|
/external/webkit/WebCore/platform/graphics/android/ |
ImageAndroid.cpp | 143 SkColorTable* ctable = bm.getColorTable(); local 144 if (!ctable) { 147 color = (*ctable)[*bm.getAddr8(0, 0)];
|
/external/skia/src/images/ |
SkImageDecoder_libgif.cpp | 225 SkColorTable* ctable = SkNEW_ARGS(SkColorTable, (colorCount)); local 226 SkPMColor* colorPtr = ctable->lockColors(); 235 ctable->setFlags(ctable->getFlags() | SkColorTable::kColorsAreOpaque_Flag); 238 ctable->unlockColors(true); 240 SkAutoUnref aurts(ctable); 241 if (!this->allocPixelRef(bm, ctable)) {
|
SkImageDecoder_libpng.cpp | 172 // call only if color_type is PALETTE. Returns true if the ctable has alpha 1065 SkColorTable* ctable = bitmap.getColorTable(); local [all...] |
/frameworks/base/core/jni/android/graphics/ |
NinePatchImpl.cpp | 53 SkColorTable* ctable = bitmap.getColorTable(); local 55 (*ctable)[*bitmap.getAddr8(x, y)]);
|
Bitmap.cpp | 162 SkColorTable* ctable) {
165 const SkPMColor* colors = ctable->lockColors();
169 ctable->unlockColors(false);
173 SkColorTable* ctable) {
176 const SkPMColor* colors = ctable->lockColors();
182 ctable->unlockColors(false);
355 SkColorTable* ctable = NULL;
local 361 ctable = new SkColorTable(src, count);
365 if (!GraphicsJNI::setJavaPixelRef(env, bitmap, ctable, true)) {
366 ctable->safeUnref(); 400 SkColorTable* ctable = bitmap->getColorTable(); local 470 SkColorTable* ctable = bitmap->getColorTable(); local [all...] |
/external/skia/src/gl/ |
SkGL.cpp | 209 GL wants a full 256 palette entry, even though my ctable is only as big 212 ctable->count(). 217 SkColorTable* ctable = bitmap.getColorTable(); local 220 memcpy(dst, ctable->lockColors(), ctable->count() * sizeof(SkPMColor)); 221 ctable->unlockColors(false);
|
/external/skia/src/core/ |
SkBitmap.cpp | 113 1. no pixelref, in which case we just copy/ref the pixels/ctable 114 2. unlocked pixelref, pixels/ctable should be null 119 fColorTable->safeRef(); // ref the user's ctable if present 120 } else { // we have a pixelref, so pixels/ctable reflect it 319 void SkBitmap::setPixels(void* p, SkColorTable* ctable) { 322 SkRefCnt_SafeAssign(fColorTable, ctable); 327 bool SkBitmap::allocPixels(Allocator* allocator, SkColorTable* ctable) { 333 return allocator->allocPixelRef(this, ctable); 377 SkColorTable* ctable) { 381 fCTable = ctable; 754 SkColorTable* ctable = (dstConfig == kIndex8_Config) ? local 1287 SkColorTable* ctable = NULL; local [all...] |
/external/stlport/src/c_locale_dummy/ |
c_locale_dummy.c | 50 static _Locale_mask_t ctable[256]; variable 59 if (isalpha(c)) ctable[(unsigned char)c] |= _Locale_ALPHA; 60 if (iscntrl(c)) ctable[(unsigned char)c] |= _Locale_CNTRL; 61 if (isdigit(c)) ctable[(unsigned char)c] |= _Locale_DIGIT; 62 if (isprint(c)) ctable[(unsigned char)c] |= _Locale_PRINT; 63 if (ispunct(c)) ctable[(unsigned char)c] |= _Locale_PUNCT; 64 if (isspace(c)) ctable[(unsigned char)c] |= _Locale_SPACE; 65 if (isxdigit(c)) ctable[(unsigned char)c] |= _Locale_XDIGIT; 66 if (isupper(c)) ctable[(unsigned char)c] |= _Locale_UPPER; 67 if (islower(c)) ctable[(unsigned char)c] |= _Locale_LOWER [all...] |
/frameworks/base/core/jni/android/opengl/ |
util.cpp | 674 SkColorTable* ctable = bitmap.getColorTable(); local 675 memcpy(data, ctable->lockColors(), ctable->count() * sizeof(SkPMColor)); 677 ctable->unlockColors(false);
|
/ndk/sources/android/stlport/src/c_locale_dummy/ |
c_locale_dummy.c | 50 static _Locale_mask_t ctable[256]; variable 59 if (isalpha(c)) ctable[(unsigned char)c] |= _Locale_ALPHA; 60 if (iscntrl(c)) ctable[(unsigned char)c] |= _Locale_CNTRL; 61 if (isdigit(c)) ctable[(unsigned char)c] |= _Locale_DIGIT; 62 if (isprint(c)) ctable[(unsigned char)c] |= _Locale_PRINT; 63 if (ispunct(c)) ctable[(unsigned char)c] |= _Locale_PUNCT; 64 if (isspace(c)) ctable[(unsigned char)c] |= _Locale_SPACE; 65 if (isxdigit(c)) ctable[(unsigned char)c] |= _Locale_XDIGIT; 66 if (isupper(c)) ctable[(unsigned char)c] |= _Locale_UPPER; 67 if (islower(c)) ctable[(unsigned char)c] |= _Locale_LOWER [all...] |
/external/stlport/src/c_locale_win32/ |
c_locale_win32.c | 186 unsigned short ctable[256]; member in struct:_Locale_ctype 353 GetStringTypeW(CT_CTYPE1, wbuffer, 256, ltype->ctable); 354 MapCtypeMasks(ltype->ctable, ltype->ctable + 256); 358 unsigned short ctable[256]; local 360 GetStringTypeA(ltype->lc.id, CT_CTYPE1, (const char*)Buffer, 256, ctable); 376 ltype->ctable[TargetBuffer[i]] = MapCtypeMask(ctable[i]); 381 GetStringTypeA(ltype->lc.id, CT_CTYPE1, (const char*)Buffer, 256, ltype->ctable); 382 MapCtypeMasks(ltype->ctable, ltype->ctable + 256) [all...] |
/libcore/luni/src/main/java/org/apache/xalan/templates/ |
ElemNumber.java | 793 CountersTable ctable = transformer.getCountersTable(); local 815 list[0] = ctable.countNode(xctxt, this, sourceNode); 832 list[lastIndex - i] = ctable.countNode(xctxt, this, target); [all...] |
/ndk/sources/android/stlport/src/c_locale_win32/ |
c_locale_win32.c | 186 unsigned short ctable[256]; member in struct:_Locale_ctype 353 GetStringTypeW(CT_CTYPE1, wbuffer, 256, ltype->ctable); 354 MapCtypeMasks(ltype->ctable, ltype->ctable + 256); 358 unsigned short ctable[256]; local 360 GetStringTypeA(ltype->lc.id, CT_CTYPE1, (const char*)Buffer, 256, ctable); 376 ltype->ctable[TargetBuffer[i]] = MapCtypeMask(ctable[i]); 381 GetStringTypeA(ltype->lc.id, CT_CTYPE1, (const char*)Buffer, 256, ltype->ctable); 382 MapCtypeMasks(ltype->ctable, ltype->ctable + 256) [all...] |