Searched defs:ctable (Results 1 - 25 of 37) sorted by relevance

12

/external/skia/gm/
H A Dtinybitmap.cpp18 SkColorTable* ctable = new SkColorTable(c, SK_ARRAY_COUNT(c)); local
23 nullptr, ctable);
24 ctable->unref();
H A Dbitmapfilters.cpp20 SkColorTable* ctable = new SkColorTable(colorsPM, 4); local
24 nullptr, ctable);
25 ctable->unref();
/external/skia/samplecode/
H A DSampleTinyBitmap.cpp22 SkColorTable* ctable = new SkColorTable(c, N); local
27 nullptr, ctable);
28 ctable->unref();
60 SkAutoLockPixels alp(*bm); // needed for ctable
H A DSampleFilter.cpp30 SkColorTable* ctable = new SkColorTable(colors, 4); local
33 nullptr, ctable);
34 ctable->unref();
H A DSampleBlur.cpp24 SkColorTable* ctable = new SkColorTable(c, 256); local
28 nullptr, ctable);
29 ctable->unref();
H A DSampleDitherBitmap.cpp61 SkColorTable* ctable = new SkColorTable(c, 256); local
65 nullptr, ctable);
66 ctable->unref();
103 SkAutoLockPixels alp(*bm); // needed for ctable
/external/skia/src/codec/
H A DSkCodecImageGenerator.cpp41 SkPMColor ctable[], int* ctableCount) {
43 SkCodec::Result result = fCodec->getPixels(info, pixels, rowBytes, nullptr, ctable,
40 onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) argument
H A DSkCodec.cpp153 const Options* options, SkPMColor ctable[], int* ctableCount) {
165 if (nullptr == ctable || nullptr == ctableCount) {
173 ctable = nullptr;
202 const Result result = this->onGetPixels(info, pixels, rowBytes, *options, ctable, ctableCount,
227 const SkCodec::Options* options, SkPMColor ctable[], int* ctableCount) {
232 if (nullptr == ctable || nullptr == ctableCount) {
240 ctable = nullptr;
269 const Result result = this->onStartScanlineDecode(dstInfo, *options, ctable, ctableCount);
152 getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options* options, SkPMColor ctable[], int* ctableCount) argument
226 startScanlineDecode(const SkImageInfo& dstInfo, const SkCodec::Options* options, SkPMColor ctable[], int* ctableCount) argument
H A DSkWbmpCodec.cpp98 SkSwizzler* SkWbmpCodec::initializeSwizzler(const SkImageInfo& info, const SkPMColor* ctable, argument
100 return SkSwizzler::CreateSwizzler(SkSwizzler::kBit, ctable, info, opts);
122 SkPMColor ctable[],
136 setup_color_table(info.colorType(), ctable, ctableCount);
139 SkAutoTDelete<SkSwizzler> swizzler(this->initializeSwizzler(info, ctable, options));
118 onGetPixels(const SkImageInfo& info, void* dst, size_t rowBytes, const Options& options, SkPMColor ctable[], int* ctableCount, int* rowsDecoded) argument
H A DSkJpegCodec.cpp407 const Options& options, SkPMColor ctable[], int* ctableCount) {
406 onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& options, SkPMColor ctable[], int* ctableCount) argument
/external/skia/src/images/
H A DSkImageEncoder_argb.cpp23 const SkPMColor* SK_RESTRICT ctable);
62 const SkPMColor* SK_RESTRICT ctable) {
65 const uint32_t c = ctable[*src++];
61 Index8_To_ARGB(const uint8_t* in, uint8_t* argb, int width, const SkPMColor* SK_RESTRICT ctable) argument
/external/skia/bench/
H A DRepeatTileBench.cpp66 SkColorTable* ctable = new SkColorTable(storage, 216); local
69 nullptr, ctable); local
70 ctable->unref();
H A DBitmapBench.cpp47 SkColorTable* ctable = new SkColorTable(storage, 216); local
49 nullptr, ctable); local
50 ctable->unref();
/external/skia/src/core/
H A DSkMallocPixelRef.cpp18 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
119 NewWithData(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable, SkData* data) argument
144 SkMallocPixelRef(const SkImageInfo& info, void* storage, size_t rowBytes, SkColorTable* ctable, bool ownsPixels) argument
166 SkMallocPixelRef(const SkImageInfo& info, void* storage, size_t rowBytes, SkColorTable* ctable, SkMallocPixelRef::ReleaseProc proc, void* context) argument
214 create(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument
219 create(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument
[all...]
H A DSkPictureImageGenerator.cpp22 bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[],
67 SkPMColor ctable[], int* ctableCount) {
68 if (info != getInfo() || ctable || ctableCount) {
66 onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) argument
H A DSkConfig8888.cpp172 SkColorTable* ctable) {
181 if ((srcInfo == dstInfo) && !ctable) {
253 if (nullptr == ctable) {
256 table = ctable->readColors();
290 if (!bm.installPixels(srcInfo, const_cast<void*>(srcPixels), srcRB, ctable, nullptr, nullptr)) {
170 CopyPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB, SkColorTable* ctable) argument
H A DSkImageGenerator.cpp17 SkPMColor ctable[], int* ctableCount) {
29 if (nullptr == ctable || nullptr == ctableCount) {
37 ctable = nullptr;
40 const bool success = this->onGetPixels(info, pixels, rowBytes, ctable, ctableCount);
171 SkAutoTUnref<SkColorTable> ctable(new SkColorTable(ctStorage, 256));
172 if (!bitmap->tryAllocPixels(allocator, ctable)) {
178 if (!bitmap->tryAllocPixels(nullptr, ctable)) {
189 // we pass nullptr for the ctable arg, since we are now explicitly N32
210 SkASSERT(!ctable->unique());
212 // Now we need to overwrite the ctable w
16 getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) argument
[all...]
H A DSkPixelRef.cpp91 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 DSkSpriteBlitter_RGB16.cpp140 #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/include/core/
H A DSkPixmap.h30 SkColorTable* ctable = NULL)
31 : fPixels(addr), fCTable(ctable), fRowBytes(rowBytes), fInfo(info)
34 SkASSERT(ctable);
36 SkASSERT(NULL == ctable);
42 SkColorTable* ctable = NULL);
64 SkColorTable* ctable() const { return fCTable; } function in class:SkPixmap
225 void reset(const SkImageInfo& info, const void* addr, size_t rb, SkColorTable* ctable = NULL) {
227 this->INHERITED::reset(info, addr, rb, ctable);
H A DSkBitmap.h245 void allocPixels(const SkImageInfo& info, SkPixelRefFactory* factory, SkColorTable* ctable) { argument
246 if (!this->tryAllocPixels(info, factory, ctable)) {
332 @param ctable ColorTable (or null) that matches the specified pixels
334 void setPixels(void* p, SkColorTable* ctable = NULL);
365 @param ctable ColorTable (or null) to use with the pixels that will
370 bool SK_WARN_UNUSED_RESULT tryAllocPixels(SkColorTable* ctable = NULL) {
371 return this->tryAllocPixels(NULL, ctable);
374 void allocPixels(SkColorTable* ctable = NULL) {
375 this->allocPixels(NULL, ctable);
389 @param ctable ColorTabl
398 allocPixels(Allocator* allocator, SkColorTable* ctable) argument
[all...]
/external/skia/src/image/
H A DSkImage_Raster.cpp114 SkColorTable* ctable)
120 fBitmap.installPixels(info, addr, rowBytes, ctable, release_data, data);
199 SkColorTable* ctable) {
201 if (!SkImage_Raster::ValidArgs(info, rowBytes, ctable != nullptr, &size) || !pixels) {
207 return new SkImage_Raster(info, data, rowBytes, ctable);
222 SkColorTable* ctable = nullptr; local
223 return new SkImage_Raster(info, data, rowBytes, ctable);
233 SkColorTable* ctable = nullptr; local
235 return new SkImage_Raster(info, data, rowBytes, ctable);
113 SkImage_Raster(const Info& info, SkData* data, size_t rowBytes, SkColorTable* ctable) argument
198 NewRasterCopy(const SkImageInfo& info, const void* pixels, size_t rowBytes, SkColorTable* ctable) argument
/external/libnl/lib/route/sch/
H A Dhtb.c269 uint32_t mtu, rtable[RTNL_TC_RTABLE_SIZE], ctable[RTNL_TC_RTABLE_SIZE]; local
340 rtnl_tc_build_rate_table(ctable, mpu, overhead,
343 nla_put(msg, TCA_HTB_CTAB, sizeof(ctable), &ctable);
/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.cpp197 SkColorTable* ctable = nullptr; local
199 ctable = init_ctable();
203 nullptr, ctable); local
205 nullptr, ctable); local
206 SkSafeUnref(ctable);

Completed in 2575 milliseconds

12