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

123

/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
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 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...]
H A DSkAutoPixmapStorage.h55 void reset(const SkImageInfo& info, const void* addr, size_t rb, SkColorTable* ctable = NULL) {
57 this->INHERITED::reset(info, addr, rb, ctable);
H A DSkImageGenerator.cpp18 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 DSkConvertPixels.cpp165 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 DSkBitmap.cpp292 void SkBitmap::setPixels(void* p, SkColorTable* ctable) { argument
303 sk_sp<SkPixelRef> pr(SkMallocPixelRef::NewDirect(fInfo, p, fRowBytes, ctable));
313 bool SkBitmap::tryAllocPixels(Allocator* allocator, SkColorTable* ctable) { argument
319 return allocator->allocPixelRef(this, ctable);
354 SkColorTable* ctable) {
355 if (kIndex_8_SkColorType == requestedInfo.colorType() && nullptr == ctable) {
370 sk_sp<SkPixelRef> pr(factory->create(correctedInfo, correctedInfo.minRowBytes(), ctable));
423 pixmap.rowBytes(), pixmap.ctable(),
469 SkColorTable* ctable) {
476 sk_sp<SkPixelRef> pr(SkMallocPixelRef::NewAllocate(info, dst->rowBytes(), ctable));
353 tryAllocPixels(const SkImageInfo& requestedInfo, SkPixelRefFactory* factory, SkColorTable* ctable) argument
468 allocPixelRef(SkBitmap* dst, SkColorTable* ctable) argument
782 sk_sp<SkColorTable> ctable; local
1020 sk_sp<SkColorTable> ctable; local
[all...]
H A DSkPictureImageGenerator.h20 bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[],
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;
/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/src/image/
H A DSkImageShaderContext.h23 SkColorTable* ctable; member in struct:SkImageShaderContext
/external/skia/src/codec/
H A DSkSwizzler.h21 * @param ctable Unowned pointer to an array of up to 256 colors for an
39 static SkSwizzler* CreateSwizzler(const SkEncodedInfo& encodedInfo, const SkPMColor* ctable,
97 * @param ctable Colors (used for kIndex source).
104 const SkPMColor ctable[]);
110 const SkPMColor ctable[]);
114 int deltaSrc, int offset, const SkPMColor ctable[]);
210 SkSwizzler(RowProc fastProc, RowProc proc, const SkPMColor* ctable, int srcOffset,
H A DSkSwizzler.cpp16 const SkPMColor ctable[]) {
25 const SkPMColor ctable[]) {
35 const SkPMColor ctable[]) {
45 const SkPMColor ctable[]) {
55 const SkPMColor ctable[]) {
66 const SkPMColor ctable[]) {
85 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) {
110 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) {
131 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) {
154 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) {
15 copy(void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
24 sample1(void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
34 sample2(void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
44 sample4(void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
54 sample6(void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
65 sample8(void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
206 swizzle_small_index_to_index( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
227 swizzle_small_index_to_565( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
248 swizzle_small_index_to_n32( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
271 swizzle_index_to_n32( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
284 swizzle_index_to_n32_skipZ( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
299 swizzle_index_to_565( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bytesPerPixel, int deltaSrc, int offset, const SkPMColor ctable[]) argument
312 swizzle_gray_to_n32( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
324 fast_swizzle_gray_to_n32( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
337 swizzle_gray_to_565( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bytesPerPixel, int deltaSrc, int offset, const SkPMColor ctable[]) argument
351 swizzle_grayalpha_to_n32_unpremul( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
363 fast_swizzle_grayalpha_to_n32_unpremul( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
376 swizzle_grayalpha_to_n32_premul( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
389 fast_swizzle_grayalpha_to_n32_premul( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
404 swizzle_bgr_to_565( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
418 swizzle_rgb_to_rgba( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
430 swizzle_rgb_to_bgra( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
442 fast_swizzle_rgb_to_rgba( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
453 fast_swizzle_rgb_to_bgra( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
464 swizzle_rgb_to_565( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bytesPerPixel, int deltaSrc, int offset, const SkPMColor ctable[]) argument
478 swizzle_rgba_to_rgba_premul( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
490 swizzle_rgba_to_bgra_premul( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
502 fast_swizzle_rgba_to_rgba_premul( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
513 fast_swizzle_rgba_to_bgra_premul( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
524 swizzle_rgba_to_bgra_unpremul( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
537 fast_swizzle_rgba_to_bgra_unpremul( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
550 swizzle_rgb16_to_rgba( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
565 swizzle_rgb16_to_bgra( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
580 swizzle_rgb16_to_565( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
595 swizzle_rgba16_to_rgba_unpremul( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
610 swizzle_rgba16_to_rgba_premul( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
625 swizzle_rgba16_to_bgra_unpremul( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
640 swizzle_rgba16_to_bgra_premul( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
700 swizzle_cmyk_to_rgba( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
716 swizzle_cmyk_to_bgra( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
732 fast_swizzle_cmyk_to_rgba( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
743 fast_swizzle_cmyk_to_bgra( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
754 swizzle_cmyk_to_565( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
771 SkipLeadingGrayAlphaZerosThen( void* dst, const uint8_t* src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
790 SkipLeading8888ZerosThen( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int dstWidth, int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) argument
808 CreateSwizzler(const SkEncodedInfo& encodedInfo, const SkPMColor* ctable, const SkImageInfo& dstInfo, const SkCodec::Options& options, const SkIRect* frame, bool skipFormatConversion) argument
1225 SkSwizzler(RowProc fastProc, RowProc proc, const SkPMColor* ctable, int srcOffset, int srcWidth, int dstOffset, int dstWidth, int srcBPP, int dstBPP) argument
[all...]
H A DSkCodecImageGenerator.h26 bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[],
H A DSkCodecImageGenerator.cpp39 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 DSkWbmpCodec.cpp100 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/tools/
H A DResources.cpp37 sk_sp<SkColorTable> ctable(new SkColorTable(ctStorage, 256));
38 int count = ctable->count();
39 return dst->tryAllocPixels(gen->getInfo(), nullptr, ctable.get()) &&
41 const_cast<SkPMColor*>(ctable->readColors()), &count);
/external/skia/samplecode/
H A DSampleTinyBitmap.cpp22 SkColorTable* ctable = new SkColorTable(c, N); local
27 nullptr, ctable);
28 ctable->unref();
59 SkAutoLockPixels alp(*bm); // needed for ctable
/external/skia/src/ports/
H A DSkImageGeneratorCG.h27 bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[],
H A DSkImageGeneratorWIC.h44 bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[],
/external/skia/src/images/
H A DSkPNGImageEncoder.cpp122 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/skia/include/core/
H A DSkImageGenerator.h76 * SkPMColor values in ctable. On success the generator must copy N colors into that storage,
85 SkPMColor ctable[], int* ctableCount);
171 SkPMColor ctable[], int* ctableCount);
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);
67 SkColorTable* ctable() const { return fCTable; } function in class:SkPixmap
H A DSkBitmap.h249 void allocPixels(const SkImageInfo& info, SkPixelRefFactory* factory, SkColorTable* ctable) { argument
250 if (!this->tryAllocPixels(info, factory, ctable)) {
336 @param ctable ColorTable (or null) that matches the specified pixels
338 void setPixels(void* p, SkColorTable* ctable = NULL);
369 @param ctable ColorTable (or null) to use with the pixels that will
374 bool SK_WARN_UNUSED_RESULT tryAllocPixels(SkColorTable* ctable = NULL) {
375 return this->tryAllocPixels(NULL, ctable);
378 void allocPixels(SkColorTable* ctable = NULL) {
379 this->allocPixels(NULL, ctable);
393 @param ctable ColorTabl
402 allocPixels(Allocator* allocator, SkColorTable* ctable) argument
[all...]
/external/skia/bench/
H A DRepeatTileBench.cpp65 SkColorTable* ctable = new SkColorTable(storage, 216); local
68 nullptr, ctable); local
69 ctable->unref();

Completed in 2425 milliseconds

123