Home
last modified time | relevance | path

Searched refs:ctable (Results 1 – 25 of 45) sorted by relevance

12

/external/chromium_org/third_party/skia/src/core/
DSkMallocPixelRef.cpp12 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) { in is_valid() argument
25 if (kIndex8_SkColorType == info.fColorType && NULL == ctable) { in is_valid()
28 if (kIndex8_SkColorType != info.fColorType && NULL != ctable) { in is_valid()
38 SkColorTable* ctable) { in NewDirect() argument
39 if (!is_valid(info, ctable)) { in NewDirect()
42 return SkNEW_ARGS(SkMallocPixelRef, (info, addr, rowBytes, ctable, false)); in NewDirect()
47 SkColorTable* ctable) { in NewAllocate() argument
48 if (!is_valid(info, ctable)) { in NewAllocate()
79 return SkNEW_ARGS(SkMallocPixelRef, (info, addr, rowBytes, ctable, true)); in NewAllocate()
85 size_t rowBytes, SkColorTable* ctable, in SkMallocPixelRef() argument
[all …]
DSkSpriteBlitter_RGB16.cpp145 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->lockCo…
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()->lockCo…
160 #define SkSPRITE_BLIT_PIXEL(dst, src) D16_S32A_Blend_Pixel(dst, ctable[src], src_scale)
173 const uint16_t* SK_RESTRICT ctable) { in blitrow_d16_si8() argument
176 *dst++ = ctable[*src++]; in blitrow_d16_si8()
183 *dst++ = ctable[*src++]; in blitrow_d16_si8()
194 *dst++ = ctable[s4 & 0xFF]; in blitrow_d16_si8()
195 *dst++ = ctable[(s4 >> 8) & 0xFF]; in blitrow_d16_si8()
196 *dst++ = ctable[(s4 >> 16) & 0xFF]; in blitrow_d16_si8()
[all …]
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);
DSkPixelRef.cpp151 void SkPixelRef::setPreLocked(void* pixels, SkColorTable* ctable) { in setPreLocked() argument
156 fColorTable = ctable; in setPreLocked()
/external/skia/src/core/
DSkMallocPixelRef.cpp12 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) { in is_valid() argument
25 if (kIndex8_SkColorType == info.fColorType && NULL == ctable) { in is_valid()
28 if (kIndex8_SkColorType != info.fColorType && NULL != ctable) { in is_valid()
38 SkColorTable* ctable) { in NewDirect() argument
39 if (!is_valid(info, ctable)) { in NewDirect()
42 return SkNEW_ARGS(SkMallocPixelRef, (info, addr, rowBytes, ctable, false)); in NewDirect()
47 SkColorTable* ctable) { in NewAllocate() argument
48 if (!is_valid(info, ctable)) { in NewAllocate()
79 return SkNEW_ARGS(SkMallocPixelRef, (info, addr, rowBytes, ctable, true)); in NewAllocate()
85 size_t rowBytes, SkColorTable* ctable, in SkMallocPixelRef() argument
[all …]
DSkSpriteBlitter_RGB16.cpp145 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->lockCo…
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()->lockCo…
160 #define SkSPRITE_BLIT_PIXEL(dst, src) D16_S32A_Blend_Pixel(dst, ctable[src], src_scale)
173 const uint16_t* SK_RESTRICT ctable) { in blitrow_d16_si8() argument
176 *dst++ = ctable[*src++]; in blitrow_d16_si8()
183 *dst++ = ctable[*src++]; in blitrow_d16_si8()
194 *dst++ = ctable[s4 & 0xFF]; in blitrow_d16_si8()
195 *dst++ = ctable[(s4 >> 8) & 0xFF]; in blitrow_d16_si8()
196 *dst++ = ctable[(s4 >> 16) & 0xFF]; in blitrow_d16_si8()
[all …]
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);
DSkPixelRef.cpp151 void SkPixelRef::setPreLocked(void* pixels, SkColorTable* ctable) { in setPreLocked() argument
156 fColorTable = ctable; in setPreLocked()
/external/skia/include/core/
DSkBitmap.h270 void setPixels(void* p, SkColorTable* ctable = NULL);
306 bool allocPixels(SkColorTable* ctable = NULL) {
307 return this->allocPixels(NULL, ctable);
329 bool allocPixels(Allocator* allocator, SkColorTable* ctable);
746 explicit SkAutoLockColors(SkColorTable* ctable) { in SkAutoLockColors() argument
747 fCTable = ctable; in SkAutoLockColors()
748 fColors = ctable ? ctable->lockColors() : NULL; in SkAutoLockColors()
764 const SkPMColor* lockColors(SkColorTable* ctable) { in lockColors() argument
768 fCTable = ctable; in lockColors()
769 fColors = ctable ? ctable->lockColors() : NULL; in lockColors()
/external/chromium_org/third_party/skia/include/core/
DSkBitmap.h270 void setPixels(void* p, SkColorTable* ctable = NULL);
306 bool allocPixels(SkColorTable* ctable = NULL) {
307 return this->allocPixels(NULL, ctable);
329 bool allocPixels(Allocator* allocator, SkColorTable* ctable);
746 explicit SkAutoLockColors(SkColorTable* ctable) { in SkAutoLockColors() argument
747 fCTable = ctable; in SkAutoLockColors()
748 fColors = ctable ? ctable->lockColors() : NULL; in SkAutoLockColors()
764 const SkPMColor* lockColors(SkColorTable* ctable) { in lockColors() argument
768 fCTable = ctable; in lockColors()
769 fColors = ctable ? ctable->lockColors() : NULL; in lockColors()
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DDiscardablePixelRef.cpp42 bool DiscardablePixelRefAllocator::allocPixelRef(SkBitmap* dst, SkColorTable* ctable) in allocPixelRef() argument
45 ASSERT(!ctable); in allocPixelRef()
92 void* DiscardablePixelRef::onLockPixels(SkColorTable** ctable) in onLockPixels() argument
97 *ctable = 0; in onLockPixels()
/external/chromium_org/third_party/skia/src/images/
DSkScaledBitmapSampler.cpp358 int width, int deltaSrc, int, const SkPMColor ctable[]) { in Sample_Index_D8888() argument
363 SkPMColor c = ctable[*src]; in Sample_Index_D8888()
374 const SkPMColor ctable[]) { in Sample_Index_D8888_SkipZ() argument
379 SkPMColor c = ctable[*src]; in Sample_Index_D8888_SkipZ()
403 int width, int deltaSrc, int, const SkPMColor ctable[]) { in Sample_Index_D565() argument
407 dst[x] = SkPixel32ToPixel16(ctable[*src]); in Sample_Index_D565()
415 int deltaSrc, int y, const SkPMColor ctable[]) { in Sample_Index_D565_D() argument
421 SkPMColor c = ctable[*src]; in Sample_Index_D565_D()
439 int deltaSrc, int y, const SkPMColor ctable[]) { in Sample_Index_D4444() argument
444 SkPMColor c = ctable[*src]; in Sample_Index_D4444()
[all …]
DSkImageEncoder_argb.cpp23 const SkPMColor* SK_RESTRICT ctable);
62 const SkPMColor* SK_RESTRICT ctable) { in Index8_To_ARGB() argument
65 const uint32_t c = ctable[*src++]; in Index8_To_ARGB()
/external/skia/src/images/
DSkScaledBitmapSampler.cpp358 int width, int deltaSrc, int, const SkPMColor ctable[]) { in Sample_Index_D8888() argument
363 SkPMColor c = ctable[*src]; in Sample_Index_D8888()
374 const SkPMColor ctable[]) { in Sample_Index_D8888_SkipZ() argument
379 SkPMColor c = ctable[*src]; in Sample_Index_D8888_SkipZ()
403 int width, int deltaSrc, int, const SkPMColor ctable[]) { in Sample_Index_D565() argument
407 dst[x] = SkPixel32ToPixel16(ctable[*src]); in Sample_Index_D565()
415 int deltaSrc, int y, const SkPMColor ctable[]) { in Sample_Index_D565_D() argument
421 SkPMColor c = ctable[*src]; in Sample_Index_D565_D()
439 int deltaSrc, int y, const SkPMColor ctable[]) { in Sample_Index_D4444() argument
444 SkPMColor c = ctable[*src]; in Sample_Index_D4444()
[all …]
DSkImageEncoder_argb.cpp23 const SkPMColor* SK_RESTRICT ctable);
62 const SkPMColor* SK_RESTRICT ctable) { in Index8_To_ARGB() argument
65 const uint32_t c = ctable[*src++]; in Index8_To_ARGB()
/external/skia/gm/
Dtinybitmap.cpp18 SkColorTable* ctable = new SkColorTable(c, SK_ARRAY_COUNT(c)); in make_bitmap() local
22 bm.allocPixels(ctable); in make_bitmap()
23 ctable->unref(); in make_bitmap()
Dbitmapfilters.cpp21 SkColorTable* ctable = new SkColorTable(colorsPM, 4); in make_bm() local
24 bm->allocPixels(ctable); in make_bm()
25 ctable->unref(); in make_bm()
/external/opencv/cvaux/src/
Dcvbgfg_acmmm2003.cpp138 buf_size = pixel_count*params.N2c*sizeof(p_model->pixel_stat[0].ctable[0]); in cvCreateFGDStatModel()
139 CV_CALL( p_model->pixel_stat[0].ctable = (CvBGPixelCStatTable*)cvAlloc(buf_size) ); in cvCreateFGDStatModel()
140 memset( p_model->pixel_stat[0].ctable, 0, buf_size ); in cvCreateFGDStatModel()
149 p_model->pixel_stat[k].ctable = p_model->pixel_stat[0].ctable + k*params.N2c; in cvCreateFGDStatModel()
195 cvFree( &model->pixel_stat[0].ctable ); in icvReleaseFGDStatModel()
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; in icvUpdateFGDStatModel() local
491 CvBGPixelCStatTable* ctable = stat->ctable; in icvUpdateFGDStatModel() local
[all …]
/external/stlport/src/c_locale_dummy/
Dc_locale_dummy.c54 static _Locale_mask_t ctable[256]; variable
63 if (isalpha(c)) ctable[(unsigned char)c] |= _Locale_ALPHA; in _Locale_init()
64 if (iscntrl(c)) ctable[(unsigned char)c] |= _Locale_CNTRL; in _Locale_init()
65 if (isdigit(c)) ctable[(unsigned char)c] |= _Locale_DIGIT; in _Locale_init()
66 if (isprint(c)) ctable[(unsigned char)c] |= _Locale_PRINT; in _Locale_init()
67 if (ispunct(c)) ctable[(unsigned char)c] |= _Locale_PUNCT; in _Locale_init()
68 if (isspace(c)) ctable[(unsigned char)c] |= _Locale_SPACE; in _Locale_init()
69 if (isxdigit(c)) ctable[(unsigned char)c] |= _Locale_XDIGIT; in _Locale_init()
70 if (isupper(c)) ctable[(unsigned char)c] |= _Locale_UPPER; in _Locale_init()
71 if (islower(c)) ctable[(unsigned char)c] |= _Locale_LOWER; in _Locale_init()
[all …]
/external/chromium_org/third_party/skia/src/gpu/
DSkGrPixelRef.cpp26 void* SkROLockPixelsPixelRef::onLockPixels(SkColorTable** ctable) { in onLockPixels() argument
27 if (ctable) { in onLockPixels()
28 *ctable = NULL; in onLockPixels()
DSkGr.cpp34 SkColorTable* ctable = bitmap.getColorTable(); in build_compressed_data() local
38 const uint32_t* colorTableSrc = reinterpret_cast<const uint32_t*>(ctable->lockColors()); in build_compressed_data()
41 ctable->count(), 1); in build_compressed_data()
42 ctable->unlockColors(); in build_compressed_data()
/external/skia/src/gpu/
DSkGrPixelRef.cpp26 void* SkROLockPixelsPixelRef::onLockPixels(SkColorTable** ctable) { in onLockPixels() argument
27 if (ctable) { in onLockPixels()
28 *ctable = NULL; in onLockPixels()
DSkGr.cpp34 SkColorTable* ctable = bitmap.getColorTable(); in build_compressed_data() local
38 const uint32_t* colorTableSrc = reinterpret_cast<const uint32_t*>(ctable->lockColors()); in build_compressed_data()
41 ctable->count(), 1); in build_compressed_data()
42 ctable->unlockColors(); in build_compressed_data()
/external/skia/bench/
DRepeatTileBench.cpp71 SkColorTable* ctable = new SkColorTable(storage, 216, aType); in convert_to_index666() local
73 dst->allocPixels(ctable); in convert_to_index666()
74 ctable->unref(); in convert_to_index666()
/external/stlport/src/c_locale_win32/
Dc_locale_win32.c186 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()

12