/external/skia/gm/ |
H A D | tinybitmap.cpp | 18 SkColorTable* ctable = new SkColorTable(c, SK_ARRAY_COUNT(c)); local 23 nullptr, ctable); 24 ctable->unref();
|
H A D | bitmapfilters.cpp | 20 SkColorTable* ctable = new SkColorTable(colorsPM, 4); local 24 nullptr, ctable); 25 ctable->unref();
|
/external/skia/samplecode/ |
H A D | SampleTinyBitmap.cpp | 22 SkColorTable* ctable = new SkColorTable(c, N); local 27 nullptr, ctable); 28 ctable->unref(); 59 SkAutoLockPixels alp(*bm); // needed for ctable
|
H A D | SampleFilter.cpp | 29 SkColorTable* ctable = new SkColorTable(colors, 4); local 32 nullptr, ctable); 33 ctable->unref();
|
H A D | SampleBlur.cpp | 23 SkColorTable* ctable = new SkColorTable(c, 256); local 27 nullptr, ctable); 28 ctable->unref();
|
H A D | SampleDitherBitmap.cpp | 59 SkColorTable* ctable = new SkColorTable(c, 256); local 63 nullptr, ctable); 64 ctable->unref(); 101 SkAutoLockPixels alp(*bm); // needed for ctable
|
/external/skia/src/image/ |
H A D | SkImageShaderContext.h | 23 SkColorTable* ctable; member in struct:SkImageShaderContext
|
/external/skia/src/codec/ |
H A D | SkCodecImageGenerator.cpp | 39 SkPMColor ctable[], int* ctableCount) { 40 SkCodec::Result result = fCodec->getPixels(info, pixels, rowBytes, nullptr, ctable, 38 onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) argument
|
H A D | SkWbmpCodec.cpp | 100 SkSwizzler* SkWbmpCodec::initializeSwizzler(const SkImageInfo& info, const SkPMColor* ctable, argument 102 return SkSwizzler::CreateSwizzler(this->getEncodedInfo(), ctable, info, opts); 124 SkPMColor ctable[], 137 setup_color_table(info.colorType(), ctable, ctableCount); 140 std::unique_ptr<SkSwizzler> swizzler(this->initializeSwizzler(info, ctable, options)); 120 onGetPixels(const SkImageInfo& info, void* dst, size_t rowBytes, const Options& options, SkPMColor ctable[], int* ctableCount, int* rowsDecoded) argument
|
/external/skia/src/core/ |
H A D | SkPictureImageGenerator.cpp | 61 SkPMColor ctable[], int* ctableCount) { 62 if (ctable || ctableCount) { 60 onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) argument
|
H A D | SkImageGenerator.cpp | 18 SkPMColor ctable[], int* ctableCount) { 30 if (nullptr == ctable || nullptr == ctableCount) { 38 ctable = nullptr; 41 const bool success = this->onGetPixels(info, pixels, rowBytes, ctable, ctableCount); 130 sk_sp<SkColorTable> ctable(new SkColorTable(ctStorage, 256)); 131 if (!bitmap->tryAllocPixels(allocator, ctable.get())) { 137 if (!bitmap->tryAllocPixels(nullptr, ctable.get())) { 148 // we pass nullptr for the ctable arg, since we are now explicitly N32 169 SkASSERT(!ctable->unique()); 171 // Now we need to overwrite the ctable w 17 getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) argument [all...] |
H A D | SkMallocPixelRef.cpp | 18 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) { argument 30 if (kIndex8_SkColorType == info.fColorType && nullptr == ctable) { 33 if (kIndex8_SkColorType != info.fColorType && ctable) { 43 SkColorTable* ctable) { 44 if (!is_valid(info, ctable)) { 47 return new SkMallocPixelRef(info, addr, rowBytes, ctable, nullptr, nullptr); 54 SkColorTable* ctable) { 55 if (!is_valid(info, ctable)) { 87 return new SkMallocPixelRef(info, addr, rowBytes, ctable, sk_free_releaseproc, nullptr); 92 SkColorTable* ctable) { 40 NewDirect(const SkImageInfo& info, void* addr, size_t rowBytes, SkColorTable* ctable) argument 51 NewUsing(void*(*alloc)(size_t), const SkImageInfo& info, size_t requestedRowBytes, SkColorTable* ctable) argument 90 NewAllocate(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument 97 NewZeroed(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument 103 NewWithProc(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable, void* addr, SkMallocPixelRef::ReleaseProc proc, void* context) argument 122 NewWithData(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable, SkData* data) argument 147 SkMallocPixelRef(const SkImageInfo& info, void* storage, size_t rowBytes, SkColorTable* ctable, bool ownsPixels) argument 169 SkMallocPixelRef(const SkImageInfo& info, void* storage, size_t rowBytes, SkColorTable* ctable, SkMallocPixelRef::ReleaseProc proc, void* context) argument 217 create(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument 222 create(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument [all...] |
H A D | SkConvertPixels.cpp | 165 SkColorTable* ctable, SkTransferFunctionBehavior behavior) { 167 int count = ctable->count(); 171 SkConvertPixels(dstInfoCT, dstCTable, rowBytes, srcInfo8888, ctable->readColors(), rowBytes, 185 SkColorTable* ctable, SkTransferFunctionBehavior behavior) { 188 do_index8(dstInfo, (uint8_t*) dstPixels, dstRB, srcInfo, srcPixels, srcRB, ctable, 193 do_index8(dstInfo, (uint16_t*) dstPixels, dstRB, srcInfo, srcPixels, srcRB, ctable, 198 do_index8(dstInfo, (uint32_t*) dstPixels, dstRB, srcInfo, srcPixels, srcRB, ctable, 202 do_index8(dstInfo, (uint64_t*) dstPixels, dstRB, srcInfo, srcPixels, srcRB, ctable, 212 const void* src, size_t srcRB, SkColorTable* ctable) { 246 SkASSERT(ctable); 163 do_index8(const SkImageInfo& dstInfo, T* dstPixels, size_t dstRB, const SkImageInfo& srcInfo, const uint8_t* srcPixels, size_t srcRB, SkColorTable* ctable, SkTransferFunctionBehavior behavior) argument 183 convert_from_index8(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, const SkImageInfo& srcInfo, const uint8_t* srcPixels, size_t srcRB, SkColorTable* ctable, SkTransferFunctionBehavior behavior) argument 211 convert_to_alpha8(uint8_t* dst, size_t dstRB, const SkImageInfo& srcInfo, const void* src, size_t srcRB, SkColorTable* ctable) argument 378 SkConvertPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB, SkColorTable* ctable, SkTransferFunctionBehavior behavior) argument [all...] |
H A D | SkPixelRef.cpp | 91 static void validate_pixels_ctable(const SkImageInfo& info, const SkColorTable* ctable) { argument 93 return; // can't require ctable if the dimensions are empty 96 SkASSERT(ctable); 98 SkASSERT(nullptr == ctable); 102 void SkPixelRef::setPreLocked(void* pixels, size_t rowBytes, SkColorTable* ctable) { argument 104 validate_pixels_ctable(fInfo, ctable); 108 fRec.fColorTable = ctable;
|
H A D | SkPixmap.cpp | 101 this->ctable(), SkTransferFunctionBehavior::kRespect); 279 SkASSERT(this->ctable()); 280 SkPMColor pmColor = (*this->ctable())[*this->addr8(x, y)]; 339 const SkColorTable* ctable = this->ctable(); local 340 if (nullptr == ctable) { 343 const SkPMColor* table = ctable->readColors(); 345 for (int i = ctable->count() - 1; i >= 0; --i) {
|
H A D | SkSpriteBlitter_RGB16.cpp | 140 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.ctable()->readColors() 141 #define SkSPRITE_BLIT_PIXEL(dst, src) D16_S32A_Opaque_Pixel(dst, ctable[src]) 154 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.ctable()->readColors(); unsigned src_scale = SkAlpha255To256(fSrcAlpha); 155 #define SkSPRITE_BLIT_PIXEL(dst, src) D16_S32A_Blend_Pixel(dst, ctable[src], src_scale) 168 const uint16_t* SK_RESTRICT ctable) { 171 *dst++ = ctable[*src++]; 178 *dst++ = ctable[*src++]; 189 *dst++ = ctable[s 166 blitrow_d16_si8(uint16_t* SK_RESTRICT dst, const uint8_t* SK_RESTRICT src, int count, const uint16_t* SK_RESTRICT ctable) argument [all...] |
/external/skia/src/ports/ |
H A D | SkImageGeneratorCG.cpp | 83 SkPMColor ctable[], int* ctableCount) { 82 onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) argument
|
H A D | SkImageGeneratorWIC.cpp | 140 SkPMColor ctable[], int* ctableCount) { 139 onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) argument
|
/external/skia/bench/ |
H A D | RepeatTileBench.cpp | 65 SkColorTable* ctable = new SkColorTable(storage, 216); local 68 nullptr, ctable); local 69 ctable->unref();
|
H A D | BitmapBench.cpp | 47 SkColorTable* ctable = new SkColorTable(storage, 216); local 49 nullptr, ctable); local 50 ctable->unref();
|
/external/skia/include/core/ |
H A D | SkPixmap.h | 30 SkColorTable* ctable = NULL) 31 : fPixels(addr), fCTable(ctable), fRowBytes(rowBytes), fInfo(info) 34 SkASSERT(ctable); 36 SkASSERT(NULL == ctable); 42 SkColorTable* ctable = NULL); 67 SkColorTable* ctable() const { return fCTable; } function in class:SkPixmap
|
/external/skia/src/images/ |
H A D | SkPNGImageEncoder.cpp | 122 static inline int pack_palette(SkColorTable* ctable, png_color* SK_RESTRICT palette, argument 125 const SkPMColor* colors = ctable->readColors(); 126 const int count = ctable->count(); 132 proc((char*) storage, (const char*) colors, ctable->count(), 4, nullptr); 268 SkColorTable* ctable = pixmap.ctable(); local 269 if (!ctable || ctable->count() == 0) { 274 // When ctable->count() <= 16, we could potentially use 1, 2, 340 SkColorTable* colorTable = pixmap.ctable(); [all...] |
/external/libcups/filter/ |
H A D | rastertoepson.c | 423 static int ctable[6] = { 0, 2, 1, 4, 18, 17 }; local 570 printf("\033(r%c%c%c%c", 2, 0, 1, ctable[plane] & 15); 573 printf("\033r%c", ctable[plane + 1]); 576 printf("\033r%c", ctable[plane]); /* Set color */ 599 putchar(ctable[plane]);
|
/external/libnl/lib/route/qdisc/ |
H A D | htb.c | 213 uint32_t mtu, rtable[RTNL_TC_RTABLE_SIZE], ctable[RTNL_TC_RTABLE_SIZE]; local 232 rtnl_tc_build_rate_table(tc, &htb->ch_ceil, ctable); 261 NLA_PUT(msg, TCA_HTB_CTAB, sizeof(ctable), &ctable);
|
/external/opencv/cvaux/src/ |
H A D | 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 local 491 CvBGPixelCStatTable* ctable = stat->ctable; local [all...] |