/external/skia/samplecode/ |
SampleTinyBitmap.cpp | 11 SkColorTable* ctable = new SkColorTable(N); local 13 SkPMColor* c = ctable->lockColors(); 17 ctable->unlockColors(true); 19 bm.allocPixels(ctable); 20 ctable->unref(); 52 SkAutoLockPixels alp(*bm); // needed for ctable 54 SkColorTable* ctable = bm->getColorTable(); local 55 if (ctable) { 56 ctable->setIsOpaque(isOpaque);
|
SampleExtractAlpha.cpp | 10 SkColorTable* ctable = new SkColorTable(256); local 12 SkPMColor* c = ctable->lockColors(); 16 ctable->unlockColors(true); 18 bm.allocPixels(ctable); 19 ctable->unref();
|
SampleDitherBitmap.cpp | 51 SkColorTable* ctable = new SkColorTable(256); local 53 SkPMColor* c = ctable->lockColors(); 57 ctable->unlockColors(true); 59 bm.allocPixels(ctable); 60 ctable->unref(); 96 SkAutoLockPixels alp(*bm); // needed for ctable 98 SkColorTable* ctable = bm->getColorTable(); local 99 if (ctable) { 100 ctable->setIsOpaque(isOpaque);
|
SampleBlur.cpp | 11 SkColorTable* ctable = new SkColorTable(256); local 13 SkPMColor* c = ctable->lockColors(); 17 ctable->unlockColors(true); 19 bm.allocPixels(ctable); 20 ctable->unref();
|
SampleFilter.cpp | 22 SkColorTable* ctable = new SkColorTable(colors, 4); local 24 bm->allocPixels(ctable); 25 ctable->unref();
|
SampleEncode.cpp | 60 SkColorTable* ctable = new SkColorTable(colors, 256); local 61 bm->allocPixels(ctable); 62 ctable->unref();
|
/external/skia/src/core/ |
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);
|
SkSpriteBlitter_RGB16.cpp | 153 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->lockColors() 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()->lockColors(); unsigned src_scale = SkAlpha255To256(fSrcAlpha); 168 #define SkSPRITE_BLIT_PIXEL(dst, src) D16_S32A_Blend_Pixel(dst, ctable[src], src_scale) 181 SK_RESTRICT const uint16_t* ctable) { 184 *dst++ = ctable[*src++]; 191 *dst++ = ctable[*src++]; 202 *dst++ = ctable[s4 & 0xFF]; 203 *dst++ = ctable[(s4 >> 8) & 0xFF]; 204 *dst++ = ctable[(s4 >> 16) & 0xFF] [all...] |
SkMallocPixelRef.cpp | 6 SkColorTable* ctable) { 12 fCTable = ctable; 13 SkSafeRef(ctable);
|
/frameworks/base/media/tests/omxjpegdecoder/ |
SkOmxPixelRef.cpp | 24 SkOmxPixelRef::SkOmxPixelRef(SkColorTable* ctable, MediaBuffer* buffer, 29 mCTable = ctable;
|
SkOmxPixelRef.h | 29 SkOmxPixelRef(SkColorTable* ctable, MediaBuffer* buffer,
|
/external/skia/include/core/ |
SkMallocPixelRef.h | 31 SkMallocPixelRef(void* addr, size_t size, SkColorTable* ctable);
|
SkBitmap.h | 214 @param ctable ColorTable (or null) that matches the specified pixels 216 void setPixels(void* p, SkColorTable* ctable = NULL); 264 @param ctable ColorTable (or null) to use with the pixels that will 269 bool allocPixels(SkColorTable* ctable = NULL) { 270 return this->allocPixels(NULL, ctable); 285 @param ctable ColorTable (or null) to use with the pixels that will 292 bool allocPixels(Allocator* allocator, SkColorTable* ctable); 731 explicit SkAutoLockColors(SkColorTable* ctable) { 732 fCTable = ctable; 733 fColors = ctable ? ctable->lockColors() : NULL [all...] |
/external/skia/src/images/ |
SkCreateRLEPixelRef.cpp | 8 RLEPixelRef(SkBitmap::RLEPixels* rlep, SkColorTable* ctable); 21 RLEPixelRef::RLEPixelRef(SkBitmap::RLEPixels* rlep, SkColorTable* ctable) 24 fCTable = ctable; 25 SkSafeRef(ctable);
|
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)) {
|
SkScaledBitmapSampler.cpp | 211 int width, int deltaSrc, int, const SkPMColor ctable[]) { 216 SkPMColor c = ctable[*src]; 226 int width, int deltaSrc, int, const SkPMColor ctable[]) { 230 dst[x] = SkPixel32ToPixel16(ctable[*src]); 238 int deltaSrc, int y, const SkPMColor ctable[]) { 244 SkPMColor c = ctable[*src]; 254 int deltaSrc, int y, const SkPMColor ctable[]) { 259 SkPMColor c = ctable[*src]; 269 int deltaSrc, int y, const SkPMColor ctable[]) { 276 SkPMColor c = ctable[*src] [all...] |
/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/src/gpu/ |
SkGr.cpp | 28 Ganesh wants a full 256 palette entry, even though Skia's ctable is only as big 40 SkColorTable* ctable = bitmap.getColorTable(); local 43 memcpy(dst, ctable->lockColors(), ctable->count() * sizeof(SkPMColor)); 44 ctable->unlockColors(false);
|
/external/skia/gm/ |
bitmapfilters.cpp | 14 SkColorTable* ctable = new SkColorTable(colorsPM, 4); local 17 bm->allocPixels(ctable); 18 ctable->unref();
|
/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...] |
/ndk/sources/cxx-stl/stlport/src/c_locale_dummy/ |
c_locale_dummy.c | 54 static _Locale_mask_t ctable[256]; variable 63 if (isalpha(c)) ctable[(unsigned char)c] |= _Locale_ALPHA; 64 if (iscntrl(c)) ctable[(unsigned char)c] |= _Locale_CNTRL; 65 if (isdigit(c)) ctable[(unsigned char)c] |= _Locale_DIGIT; 66 if (isprint(c)) ctable[(unsigned char)c] |= _Locale_PRINT; 67 if (ispunct(c)) ctable[(unsigned char)c] |= _Locale_PUNCT; 68 if (isspace(c)) ctable[(unsigned char)c] |= _Locale_SPACE; 69 if (isxdigit(c)) ctable[(unsigned char)c] |= _Locale_XDIGIT; 70 if (isupper(c)) ctable[(unsigned char)c] |= _Locale_UPPER; 71 if (islower(c)) ctable[(unsigned char)c] |= _Locale_LOWER [all...] |
/frameworks/base/core/jni/android/graphics/ |
Bitmap.cpp | 167 SkColorTable* ctable) {
170 const SkPMColor* colors = ctable->lockColors();
174 ctable->unlockColors(false);
178 SkColorTable* ctable) {
181 const SkPMColor* colors = ctable->lockColors();
187 ctable->unlockColors(false);
375 SkColorTable* ctable = NULL;
local 381 ctable = new SkColorTable(src, count);
385 jbyteArray buffer = GraphicsJNI::allocateJavaPixelRef(env, bitmap, ctable);
387 SkSafeUnref(ctable);
431 SkColorTable* ctable = bitmap->getColorTable(); local 524 SkColorTable* ctable = bitmap->getColorTable(); local [all...] |
/external/opencv/cvaux/src/ |
cvbgfg_acmmm2003.cpp | 138 buf_size = pixel_count*params.N2c*sizeof(p_model->pixel_stat[0].ctable[0]); 139 CV_CALL( p_model->pixel_stat[0].ctable = (CvBGPixelCStatTable*)cvAlloc(buf_size) ); 140 memset( p_model->pixel_stat[0].ctable, 0, buf_size ); 149 p_model->pixel_stat[k].ctable = p_model->pixel_stat[0].ctable + k*params.N2c; 195 cvFree( &model->pixel_stat[0].ctable ); 316 #define V_C(k,l) ctable[k].v[l] 317 #define PV_C(k) ctable[k].Pv 318 #define PVB_C(k) ctable[k].Pvb 366 CvBGPixelCStatTable* ctable = stat->ctable local 491 CvBGPixelCStatTable* ctable = stat->ctable; local [all...] |
/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);
|