Searched refs:ctable (Results 1 - 25 of 34) sorted by relevance

12

/external/skia/samplecode/
H A DSampleTinyBitmap.cpp18 SkColorTable* ctable = new SkColorTable(N); local
20 SkPMColor* c = ctable->lockColors();
24 ctable->unlockColors(true);
26 bm.allocPixels(ctable);
27 ctable->unref();
59 SkAutoLockPixels alp(*bm); // needed for ctable
61 SkColorTable* ctable = bm->getColorTable(); local
62 if (ctable) {
63 ctable->setIsOpaque(isOpaque);
H A DSampleDitherBitmap.cpp58 SkColorTable* ctable = new SkColorTable(256); local
60 SkPMColor* c = ctable->lockColors();
64 ctable->unlockColors(true);
66 bm.allocPixels(ctable);
67 ctable->unref();
103 SkAutoLockPixels alp(*bm); // needed for ctable
105 SkColorTable* ctable = bm->getColorTable(); local
106 if (ctable) {
107 ctable->setIsOpaque(isOpaque);
H A DSampleBlur.cpp18 SkColorTable* ctable = new SkColorTable(256); local
20 SkPMColor* c = ctable->lockColors();
24 ctable->unlockColors(true);
26 bm.allocPixels(ctable);
27 ctable->unref();
H A DSampleFilter.cpp29 SkColorTable* ctable = new SkColorTable(colors, 4); local
31 bm->allocPixels(ctable);
32 ctable->unref();
H A DSampleEncode.cpp67 SkColorTable* ctable = new SkColorTable(colors, 256); local
68 bm->allocPixels(ctable);
69 ctable->unref();
/external/skia/gm/
H A Dtinybitmap.cpp19 SkColorTable* ctable = new SkColorTable(1); local
20 SkPMColor* c = ctable->lockColors();
22 ctable->unlockColors(true);
25 bm.allocPixels(ctable);
26 ctable->unref();
H A Dbitmapfilters.cpp21 SkColorTable* ctable = new SkColorTable(colorsPM, 4); local
24 bm->allocPixels(ctable);
25 ctable->unref();
/external/skia/src/core/
H A DSkProcSpriteBlitter.cpp14 typedef void (*Proc)(void* dst, const void* src, int count, const SkPMColor ctable[]);
26 const SkPMColor* ctable = NULL;
29 ctable = fSource.getColorTable()->lockColors();
33 proc(dst, src, width, ctable);
H A DSkSpriteBlitter_RGB16.cpp145 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->lockColors()
146 #define SkSPRITE_BLIT_PIXEL(dst, src) D16_S32A_Opaque_Pixel(dst, ctable[src])
159 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->lockColors(); unsigned src_scale = SkAlpha255To256(fSrcAlpha);
160 #define SkSPRITE_BLIT_PIXEL(dst, src) D16_S32A_Blend_Pixel(dst, ctable[src], src_scale)
173 const uint16_t* SK_RESTRICT ctable) {
176 *dst++ = ctable[*src++];
183 *dst++ = ctable[*src++];
194 *dst++ = ctable[s4 & 0xFF];
195 *dst++ = ctable[(s4 >> 8) & 0xFF];
196 *dst++ = ctable[(s
171 blitrow_d16_si8(uint16_t* SK_RESTRICT dst, const uint8_t* SK_RESTRICT src, int count, const uint16_t* SK_RESTRICT ctable) argument
[all...]
H A DSkMallocPixelRef.cpp13 SkColorTable* ctable) {
19 fCTable = ctable;
20 SkSafeRef(ctable);
12 SkMallocPixelRef(void* storage, size_t size, SkColorTable* ctable) argument
H A DSkPixelRef.cpp79 void SkPixelRef::setPreLocked(void* pixels, SkColorTable* ctable) { argument
83 fColorTable = ctable;
H A DSkBitmap.cpp109 1. no pixelref, in which case we just copy/ref the pixels/ctable
110 2. unlocked pixelref, pixels/ctable should be null
115 SkSafeRef(fColorTable); // ref the user's ctable if present
116 } else { // we have a pixelref, so pixels/ctable reflect it
354 void SkBitmap::setPixels(void* p, SkColorTable* ctable) { argument
357 SkRefCnt_SafeAssign(fColorTable, ctable);
362 bool SkBitmap::allocPixels(Allocator* allocator, SkColorTable* ctable) { argument
368 return allocator->allocPixelRef(this, ctable);
430 SkColorTable* ctable) {
441 dst->setPixelRef(new SkMallocPixelRef(addr, size.get32(), ctable))
429 allocPixelRef(SkBitmap* dst, SkColorTable* ctable) argument
908 SkColorTable* ctable = (dstConfig == kIndex8_Config) ? local
1484 SkColorTable* ctable = NULL; local
[all...]
/external/skia/include/core/
H A DSkMallocPixelRef.h24 SkMallocPixelRef(void* addr, size_t size, SkColorTable* ctable);
H A DSkBitmap.h234 @param ctable ColorTable (or null) that matches the specified pixels
236 void setPixels(void* p, SkColorTable* ctable = NULL);
268 @param ctable ColorTable (or null) to use with the pixels that will
273 bool allocPixels(SkColorTable* ctable = NULL) {
274 return this->allocPixels(NULL, ctable);
289 @param ctable ColorTable (or null) to use with the pixels that will
296 bool allocPixels(Allocator* allocator, SkColorTable* ctable);
775 explicit SkAutoLockColors(SkColorTable* ctable) { argument
776 fCTable = ctable;
777 fColors = ctable
793 lockColors(SkColorTable* ctable) argument
[all...]
/external/skia/src/images/
H A DSkCreateRLEPixelRef.cpp15 RLEPixelRef(SkBitmap::RLEPixels* rlep, SkColorTable* ctable);
28 RLEPixelRef::RLEPixelRef(SkBitmap::RLEPixels* rlep, SkColorTable* ctable) argument
31 fCTable = ctable;
32 SkSafeRef(ctable);
H A DSkImageDecoder_libgif.cpp225 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)) {
H A DSkScaledBitmapSampler.cpp204 int width, int deltaSrc, int, const SkPMColor ctable[]) {
209 SkPMColor c = ctable[*src];
219 int width, int deltaSrc, int, const SkPMColor ctable[]) {
223 dst[x] = SkPixel32ToPixel16(ctable[*src]);
231 int deltaSrc, int y, const SkPMColor ctable[]) {
237 SkPMColor c = ctable[*src];
247 int deltaSrc, int y, const SkPMColor ctable[]) {
252 SkPMColor c = ctable[*src];
262 int deltaSrc, int y, const SkPMColor ctable[]) {
269 SkPMColor c = ctable[*sr
202 Sample_Index_D8888(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int, const SkPMColor ctable[]) argument
217 Sample_Index_D565(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int, const SkPMColor ctable[]) argument
229 Sample_Index_D565_D(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
245 Sample_Index_D4444(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
260 Sample_Index_D4444_D(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
335 begin(SkBitmap* dst, SrcConfig sc, bool dither, const SkPMColor ctable[]) argument
[all...]
/external/skia/bench/
H A DRepeatTileBench.cpp56 SkColorTable* ctable = new SkColorTable(216); local
57 SkPMColor* colors = ctable->lockColors();
69 ctable->unlockColors(true);
71 dst->allocPixels(ctable);
72 ctable->unref();
H A DBitmapBench.cpp60 SkColorTable* ctable = new SkColorTable(216); local
61 SkPMColor* colors = ctable->lockColors();
73 ctable->unlockColors(true);
75 dst->allocPixels(ctable);
76 ctable->unref();
/external/skia/src/gpu/
H A DSkGr.cpp21 Ganesh wants a full 256 palette entry, even though Skia's ctable is only as big
33 SkColorTable* ctable = bitmap.getColorTable(); local
36 memcpy(dst, ctable->lockColors(), ctable->count() * sizeof(SkPMColor));
37 ctable->unlockColors(false);
H A DSkGrTexturePixelRef.cpp27 void* SkROLockPixelsPixelRef::onLockPixels(SkColorTable** ctable) { argument
28 if (ctable) {
29 *ctable = NULL;
/external/stlport/src/c_locale_dummy/
H A Dc_locale_dummy.c50 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[(unsigne
[all...]
/external/opencv/cvaux/src/
H A Dcvbgfg_acmmm2003.cpp138 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 local
491 CvBGPixelCStatTable* ctable = stat->ctable; local
[all...]
/external/skia/tests/
H A DBitmapCopyTest.cpp42 SkColorTable* ctable = bitmap.getColorTable(); local
43 unsigned ctableFlags = ctable ? ctable->getFlags() : 0;
47 if (ctable) {
48 ctable->setFlags(ctableFlags & ~SkColorTable::kColorsAreOpaque_Flag);
58 if (ctable) {
59 ctable->setFlags(ctableFlags | SkColorTable::kColorsAreOpaque_Flag);
67 if (ctable) {
68 ctable->setFlags(ctableFlags);
/external/webkit/Source/WebCore/platform/graphics/android/
H A DImageAndroid.cpp142 SkColorTable* ctable = bm.getColorTable(); local
143 if (!ctable) {
146 color = (*ctable)[*bm.getAddr8(0, 0)];

Completed in 734 milliseconds

12