Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkMallocPixelRef.cpp18 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) { in is_valid() argument
30 if (kIndex8_SkColorType == info.fColorType && NULL == ctable) { in is_valid()
33 if (kIndex8_SkColorType != info.fColorType && ctable) { in is_valid()
43 SkColorTable* ctable) { in NewDirect() argument
44 if (!is_valid(info, ctable)) { in NewDirect()
48 (info, addr, rowBytes, ctable, NULL, NULL)); in NewDirect()
54 SkColorTable* ctable) { in NewAllocate() argument
55 if (!is_valid(info, ctable)) { in NewAllocate()
88 (info, addr, rowBytes, ctable, in NewAllocate()
94 SkColorTable* ctable, in NewWithProc() argument
[all …]
DSkSpriteBlitter_RGB16.cpp145 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->readCo…
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()->readCo…
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 …]
DSkImageGenerator.cpp12 SkPMColor ctable[], int* ctableCount) { in getPixels() argument
24 if (NULL == ctable || NULL == ctableCount) { in getPixels()
32 ctable = NULL; in getPixels()
40 const Result result = this->onGetPixels(info, pixels, rowBytes, *options, ctable, ctableCount); in getPixels()
DSkBitmap.cpp245 void SkBitmap::setPixels(void* p, SkColorTable* ctable) { in setPixels() argument
256 SkPixelRef* pr = SkMallocPixelRef::NewDirect(fInfo, p, fRowBytes, ctable); in setPixels()
269 bool SkBitmap::tryAllocPixels(Allocator* allocator, SkColorTable* ctable) { in tryAllocPixels() argument
275 return allocator->allocPixelRef(this, ctable); in tryAllocPixels()
310 SkColorTable* ctable) { in tryAllocPixels() argument
311 if (kIndex_8_SkColorType == requestedInfo.colorType() && NULL == ctable) { in tryAllocPixels()
326 SkPixelRef* pr = factory->create(correctedInfo, correctedInfo.minRowBytes(), ctable); in tryAllocPixels()
413 SkColorTable* ctable) { in allocPixelRef() argument
420 SkPixelRef* pr = SkMallocPixelRef::NewAllocate(info, dst->rowBytes(), ctable); in allocPixelRef()
969 SkAutoTUnref<SkColorTable> ctable; in copyTo() local
[all …]
DSkConfig8888.cpp183 SkColorTable* ctable) { in CopyPixels() argument
253 if (NULL == ctable) { in CopyPixels()
256 table = ctable->readColors(); in CopyPixels()
290 if (!bm.installPixels(srcInfo, const_cast<void*>(srcPixels), srcRB, ctable, NULL, NULL)) { in CopyPixels()
/external/skia/src/codec/
DSkSwizzler.cpp26 int bitsPerPixel, int y, const SkPMColor ctable[]) { in swizzle_small_index_to_index() argument
38 UPDATE_RESULT_ALPHA(ctable[index] >> SK_A32_SHIFT); in swizzle_small_index_to_index()
49 int bitsPerPixel, int y, const SkPMColor ctable[]) { in swizzle_small_index_to_n32() argument
61 SkPMColor c = ctable[index]; in swizzle_small_index_to_n32()
75 int bytesPerPixel, int y, const SkPMColor ctable[]) { in swizzle_index_to_index() argument
84 UPDATE_RESULT_ALPHA(ctable[src[x]] >> SK_A32_SHIFT); in swizzle_index_to_index()
91 int bytesPerPixel, int y, const SkPMColor ctable[]) { in swizzle_index_to_n32() argument
96 SkPMColor c = ctable[src[x]]; in swizzle_index_to_n32()
105 int bytesPerPixel, int y, const SkPMColor ctable[]) { in swizzle_index_to_n32_skipZ() argument
110 SkPMColor c = ctable[src[x]]; in swizzle_index_to_n32_skipZ()
[all …]
DSkSwizzler.h127 static SkSwizzler* CreateSwizzler(SrcConfig, const SkPMColor* ctable,
236 const SkPMColor ctable[]);
249 SkSwizzler(RowProc proc, const SkPMColor* ctable, int deltaSrc,
DSkCodec_wbmp.cpp107 SkPMColor ctable[], in onGetPixels() argument
127 ctable[0] = BLACK; in onGetPixels()
128 ctable[1] = WHITE; in onGetPixels()
DSkCodec_libpng.cpp430 SkPMColor ctable[], in initializeSwizzler() argument
468 copy_color_table(requestedInfo, fColorTable, ctable, ctableCount); in initializeSwizzler()
516 SkPMColor ctable[], int* ctableCount) { in onGetPixels() argument
529 options, ctable, ctableCount); in onGetPixels()
648 const Options& options, SkPMColor ctable[], int* ctableCount) { in onGetScanlineDecoder() argument
666 if (this->initializeSwizzler(dstInfo, NULL, dstInfo.minRowBytes(), options, ctable, in onGetScanlineDecoder()
DSkCodec.cpp91 SkPMColor ctable[], int* ctableCount) { in getScanlineDecoder() argument
99 fScanlineDecoder.reset(this->onGetScanlineDecoder(dstInfo, *options, ctable, ctableCount)); in getScanlineDecoder()
/external/skia/src/ports/
DSkImageGenerator_skia.cpp24 bool allocPixelRef(SkBitmap* bm, SkColorTable* ctable) override { in allocPixelRef() argument
31 return bm->installPixels(bmi, fMemory, fRowBytes, ctable, NULL, NULL); in allocPixelRef()
71 SkColorTable* ctable = bm.getColorTable(); in onGetPixels() local
72 if (NULL == ctable) { in onGetPixels()
75 const int count = ctable->count(); in onGetPixels()
76 memcpy(ctableEntries, ctable->readColors(), count * sizeof(SkPMColor)); in onGetPixels()
/external/skia/src/images/
DSkScaledBitmapSampler.cpp366 int width, int deltaSrc, int, const SkPMColor ctable[]) { in Sample_Index_D8888() argument
371 SkPMColor c = ctable[*src]; in Sample_Index_D8888()
382 const SkPMColor ctable[]) { in Sample_Index_D8888_SkipZ() argument
387 SkPMColor c = ctable[*src]; in Sample_Index_D8888_SkipZ()
411 int width, int deltaSrc, int, const SkPMColor ctable[]) { in Sample_Index_D565() argument
415 dst[x] = SkPixel32ToPixel16(ctable[*src]); in Sample_Index_D565()
423 int deltaSrc, int y, const SkPMColor ctable[]) { in Sample_Index_D565_D() argument
429 SkPMColor c = ctable[*src]; in Sample_Index_D565_D()
448 int deltaSrc, int y, const SkPMColor ctable[]) { in Sample_Index_D4444() argument
453 SkPMColor c = ctable[*src]; in Sample_Index_D4444()
[all …]
DSkDecodingImageGenerator.cpp43 SkPMColor ctable[], int* ctableCount) override;
197 SkColorTable* ctable = bitmap.getColorTable(); in onGetPixels() local
198 if (NULL == ctable) { in onGetPixels()
201 const int count = ctable->count(); in onGetPixels()
202 memcpy(ctableEntries, ctable->readColors(), count * sizeof(SkPMColor)); in onGetPixels()
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/include/core/
DSkBitmap.h227 void allocPixels(const SkImageInfo& info, SkPixelRefFactory* factory, SkColorTable* ctable) { in allocPixels() argument
228 if (!this->tryAllocPixels(info, factory, ctable)) { in allocPixels()
305 void setPixels(void* p, SkColorTable* ctable = NULL);
341 bool SK_WARN_UNUSED_RESULT tryAllocPixels(SkColorTable* ctable = NULL) {
342 return this->tryAllocPixels(NULL, ctable);
345 void allocPixels(SkColorTable* ctable = NULL) {
346 this->allocPixels(NULL, ctable);
367 bool SK_WARN_UNUSED_RESULT tryAllocPixels(Allocator* allocator, SkColorTable* ctable);
369 void allocPixels(Allocator* allocator, SkColorTable* ctable) { in allocPixels() argument
370 if (!this->tryAllocPixels(allocator, ctable)) { in allocPixels()
DSkImageGenerator.h173 SkPMColor ctable[], int* ctableCount);
210 SkPMColor ctable[], int* ctableCount);
214 SkPMColor ctable[], int* ctableCount);
/external/skia/gm/
Dtinybitmap.cpp18 SkColorTable* ctable = new SkColorTable(c, SK_ARRAY_COUNT(c)); in make_bitmap() local
23 NULL, ctable); in make_bitmap()
24 ctable->unref(); in make_bitmap()
Dbitmapfilters.cpp22 SkColorTable* ctable = new SkColorTable(colorsPM, 4); in make_bm() local
26 NULL, ctable); in make_bm()
27 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/skia/samplecode/
DSampleTinyBitmap.cpp22 SkColorTable* ctable = new SkColorTable(c, N); in make_bitmap() local
27 NULL, ctable); in make_bitmap()
28 ctable->unref(); in make_bitmap()
DSampleFilter.cpp30 SkColorTable* ctable = new SkColorTable(colors, 4); in make_bm() local
33 NULL, ctable); in make_bm()
34 ctable->unref(); in make_bm()
DSampleBlur.cpp24 SkColorTable* ctable = new SkColorTable(c, 256); in make_bitmap() local
28 NULL, ctable); in make_bitmap()
29 ctable->unref(); in make_bitmap()
DSampleDitherBitmap.cpp60 SkColorTable* ctable = new SkColorTable(c, 256); in make_bitmap() local
64 NULL, ctable); in make_bitmap()
65 ctable->unref(); in make_bitmap()
/external/skia/include/codec/
DSkCodec.h91 SkPMColor ctable[], int* ctableCount);
143 SkPMColor ctable[], in onGetScanlineDecoder() argument
/external/skia/bench/
DRepeatTileBench.cpp66 SkColorTable* ctable = new SkColorTable(storage, 216); in convert_to_index666() local
69 NULL, ctable); in convert_to_index666()
70 ctable->unref(); in convert_to_index666()

12