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

12

/external/skia/src/core/
H A DSkMallocPixelRef.cpp18 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) { argument
30 if (kIndex8_SkColorType == info.fColorType && NULL == ctable) {
33 if (kIndex8_SkColorType != info.fColorType && ctable) {
43 SkColorTable* ctable) {
44 if (!is_valid(info, ctable)) {
48 (info, addr, rowBytes, ctable, NULL, NULL));
54 SkColorTable* ctable) {
55 if (!is_valid(info, ctable)) {
88 (info, addr, rowBytes, ctable,
94 SkColorTable* ctable,
40 NewDirect(const SkImageInfo& info, void* addr, size_t rowBytes, SkColorTable* ctable) argument
52 NewAllocate(const SkImageInfo& info, size_t requestedRowBytes, SkColorTable* ctable) argument
92 NewWithProc(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable, void* addr, SkMallocPixelRef::ReleaseProc proc, void* context) argument
109 NewWithData(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable, SkData* data) argument
135 SkMallocPixelRef(const SkImageInfo& info, void* storage, size_t rowBytes, SkColorTable* ctable, bool ownsPixels) argument
157 SkMallocPixelRef(const SkImageInfo& info, void* storage, size_t rowBytes, SkColorTable* ctable, SkMallocPixelRef::ReleaseProc proc, void* context) argument
205 create(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument
[all...]
H A DSkSpriteBlitter_RGB16.cpp145 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->readColors()
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()->readColors(); 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 DSkImageGenerator.cpp12 SkPMColor ctable[], int* ctableCount) {
24 if (NULL == ctable || NULL == ctableCount) {
32 ctable = NULL;
40 const Result result = this->onGetPixels(info, pixels, rowBytes, *options, ctable, ctableCount);
10 getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options* options, SkPMColor ctable[], int* ctableCount) argument
/external/skia/gm/
H A Dtinybitmap.cpp18 SkColorTable* ctable = new SkColorTable(c, SK_ARRAY_COUNT(c)); local
23 NULL, ctable);
24 ctable->unref();
H A Dbitmapfilters.cpp22 SkColorTable* ctable = new SkColorTable(colorsPM, 4); local
26 NULL, ctable);
27 ctable->unref();
/external/skia/src/codec/
H A DSkSwizzler.cpp26 int bitsPerPixel, int y, const SkPMColor ctable[]) {
38 UPDATE_RESULT_ALPHA(ctable[index] >> SK_A32_SHIFT);
49 int bitsPerPixel, int y, const SkPMColor ctable[]) {
61 SkPMColor c = ctable[index];
75 int bytesPerPixel, int y, const SkPMColor ctable[]) {
84 UPDATE_RESULT_ALPHA(ctable[src[x]] >> SK_A32_SHIFT);
91 int bytesPerPixel, int y, const SkPMColor ctable[]) {
96 SkPMColor c = ctable[src[x]];
105 int bytesPerPixel, int y, const SkPMColor ctable[]) {
110 SkPMColor c = ctable[sr
24 swizzle_small_index_to_index( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bitsPerPixel, int y, const SkPMColor ctable[]) argument
47 swizzle_small_index_to_n32( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bitsPerPixel, int y, const SkPMColor ctable[]) argument
73 swizzle_index_to_index( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
89 swizzle_index_to_n32( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
103 swizzle_index_to_n32_skipZ( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
123 swizzle_gray_to_n32( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
134 swizzle_gray_to_gray( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
143 swizzle_bgrx_to_n32( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
157 swizzle_bgra_to_n32_unpremul( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
172 swizzle_bgra_to_n32_premul( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
188 swizzle_rgbx_to_n32( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
200 swizzle_rgba_to_n32_premul( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
215 swizzle_rgba_to_n32_unpremul( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
230 swizzle_rgba_to_n32_premul_skipZ( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
274 CreateSwizzler(SkSwizzler::SrcConfig sc, const SkPMColor* ctable, const SkImageInfo& info, void* dst, size_t dstRowBytes, SkImageGenerator::ZeroInitialized zeroInit) argument
414 SkSwizzler(RowProc proc, const SkPMColor* ctable, int deltaSrc, const SkImageInfo& info, void* dst, size_t rowBytes) argument
[all...]
H A DSkSwizzler.h127 static SkSwizzler* CreateSwizzler(SrcConfig, const SkPMColor* ctable,
231 * @param ctable Colors (used for kIndex source).
236 const SkPMColor ctable[]);
249 SkSwizzler(RowProc proc, const SkPMColor* ctable, int deltaSrc,
H A DSkCodec.cpp91 SkPMColor ctable[], int* ctableCount) {
99 fScanlineDecoder.reset(this->onGetScanlineDecoder(dstInfo, *options, ctable, ctableCount));
90 getScanlineDecoder(const SkImageInfo& dstInfo, const Options* options, SkPMColor ctable[], int* ctableCount) argument
H A DSkCodec_wbmp.cpp107 SkPMColor ctable[],
127 ctable[0] = BLACK;
128 ctable[1] = WHITE;
103 onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options&, SkPMColor ctable[], int* ctableCount) argument
H A DSkCodec_libpng.h34 SkPMColor ctable[], int* ctableCount) override;
H A DSkJpegCodec.h60 SkPMColor ctable[], int* ctableCount) override;
/external/skia/samplecode/
H A DSampleTinyBitmap.cpp22 SkColorTable* ctable = new SkColorTable(c, N); local
27 NULL, ctable);
28 ctable->unref();
60 SkAutoLockPixels alp(*bm); // needed for ctable
H A DSampleBlur.cpp24 SkColorTable* ctable = new SkColorTable(c, 256); local
28 NULL, ctable);
29 ctable->unref();
H A DSampleDitherBitmap.cpp60 SkColorTable* ctable = new SkColorTable(c, 256); local
64 NULL, ctable);
65 ctable->unref();
102 SkAutoLockPixels alp(*bm); // needed for ctable
H A DSampleFilter.cpp30 SkColorTable* ctable = new SkColorTable(colors, 4); local
33 NULL, ctable);
34 ctable->unref();
/external/skia/src/ports/
H A DSkImageGenerator_skia.cpp24 bool allocPixelRef(SkBitmap* bm, SkColorTable* ctable) override {
31 return bm->installPixels(bmi, fMemory, fRowBytes, ctable, NULL, NULL);
71 SkColorTable* ctable = bm.getColorTable(); variable
72 if (NULL == ctable) {
75 const int count = ctable->count();
76 memcpy(ctableEntries, ctable->readColors(), count * sizeof(SkPMColor));
/external/skia/include/core/
H A DSkImageGenerator.h164 * SkPMColor values in ctable. On success the generator must copy N colors into that storage,
173 SkPMColor ctable[], int* ctableCount);
210 SkPMColor ctable[], int* ctableCount);
214 SkPMColor ctable[], int* ctableCount);
H A DSkBitmap.h227 void allocPixels(const SkImageInfo& info, SkPixelRefFactory* factory, SkColorTable* ctable) { argument
228 if (!this->tryAllocPixels(info, factory, ctable)) {
303 @param ctable ColorTable (or null) that matches the specified pixels
305 void setPixels(void* p, SkColorTable* ctable = NULL);
336 @param ctable ColorTable (or null) to use with the pixels that will
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);
360 @param ctable ColorTabl
369 allocPixels(Allocator* allocator, SkColorTable* ctable) argument
[all...]
H A DSkMallocPixelRef.h78 SkColorTable* ctable,
/external/skia/include/codec/
H A DSkCodec.h75 * @param ctable A pointer to a color table. When dstInfo.colorType() is
91 SkPMColor ctable[], int* ctableCount);
131 * @param ctable A pointer to a color table. When dstInfo.colorType() is
143 SkPMColor ctable[],
141 onGetScanlineDecoder(const SkImageInfo& dstInfo, const Options& options, SkPMColor ctable[], int* ctableCount) argument
/external/skia/src/images/
H A DSkDecodingImageGenerator.cpp43 SkPMColor ctable[], int* ctableCount) override;
197 SkColorTable* ctable = bitmap.getColorTable(); local
198 if (NULL == ctable) {
201 const int count = ctable->count();
202 memcpy(ctableEntries, ctable->readColors(), count * sizeof(SkPMColor));
H A DSkScaledBitmapSampler.cpp366 int width, int deltaSrc, int, const SkPMColor ctable[]) {
371 SkPMColor c = ctable[*src];
382 const SkPMColor ctable[]) {
387 SkPMColor c = ctable[*src];
411 int width, int deltaSrc, int, const SkPMColor ctable[]) {
415 dst[x] = SkPixel32ToPixel16(ctable[*src]);
423 int deltaSrc, int y, const SkPMColor ctable[]) {
429 SkPMColor c = ctable[*src];
448 int deltaSrc, int y, const SkPMColor ctable[]) {
453 SkPMColor c = ctable[*sr
364 Sample_Index_D8888(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int, const SkPMColor ctable[]) argument
379 Sample_Index_D8888_SkipZ(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int, const SkPMColor ctable[]) argument
409 Sample_Index_D565(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int, const SkPMColor ctable[]) argument
421 Sample_Index_D565_D(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
446 Sample_Index_D4444(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
461 Sample_Index_D4444_D(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
478 Sample_Index_D4444_SkipZ(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
495 Sample_Index_D4444_D_SkipZ(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
626 begin(SkBitmap* dst, SrcConfig sc, const Options& opts, const SkPMColor ctable[]) argument
730 begin(SkBitmap* dst, SrcConfig sc, const SkImageDecoder& decoder, const SkPMColor ctable[]) argument
[all...]
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 NULL, ctable); local
70 ctable->unref();
/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...]

Completed in 1357 milliseconds

12