Home
last modified time | relevance | path

Searched refs:SkColorTable (Results 1 – 25 of 59) sorted by relevance

123

/external/skia/src/core/
DSkColorTable.cpp16 void SkColorTable::init(const SkPMColor colors[], int count) { in init()
25 SkColorTable::SkColorTable(const SkPMColor colors[], int count) { in SkColorTable() function in SkColorTable
35 SkColorTable::SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc) in SkColorTable() function in SkColorTable
43 SkColorTable::~SkColorTable() { in ~SkColorTable()
50 const uint16_t* SkColorTable::read16BitCache() const { in read16BitCache()
63 SkColorTable::SkColorTable(SkReadBuffer& buffer) {
85 void SkColorTable::writeToBuffer(SkWriteBuffer& buffer) const { in writeToBuffer()
89 SkColorTable* SkColorTable::Create(SkReadBuffer& buffer) { in Create()
96 return new SkColorTable(nullptr, 0); in Create()
110 return new SkColorTable(colors.detach(), count, kAllocatedWithMalloc); in Create()
DSkMallocPixelRef.cpp18 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) { in is_valid()
43 SkColorTable* ctable) { in NewDirect()
54 SkColorTable* ctable) { in NewUsing()
92 SkColorTable* ctable) { in NewAllocate()
99 SkColorTable* ctable) { in NewZeroed()
105 SkColorTable* ctable, in NewWithProc()
121 SkColorTable* ctable, in NewWithData()
145 size_t rowBytes, SkColorTable* ctable, in SkMallocPixelRef()
167 size_t rowBytes, SkColorTable* ctable, in SkMallocPixelRef()
215 SkColorTable* ctable) { in create()
[all …]
DSkConfig8888.h13 class SkColorTable; variable
22 SkColorTable* srcCTable = nullptr);
DSkBitmap.cpp254 void SkBitmap::setPixels(void* p, SkColorTable* ctable) { in setPixels()
278 bool SkBitmap::tryAllocPixels(Allocator* allocator, SkColorTable* ctable) { in tryAllocPixels()
319 SkColorTable* ctable) { in tryAllocPixels()
356 SkColorTable* ct, void (*releaseProc)(void* addr, void* context), in installPixels()
439 SkColorTable* ctable) { in allocPixelRef()
643 const SkColorTable* ctable = pmap.ctable(); in compute_is_opaque()
882 SkAutoTUnref<SkColorTable> ctable; in copyTo()
999 const SkColorTable* ct = pmap.ctable(); in get_bitmap_alpha()
1118 const SkColorTable* ct = pmap.ctable(); in write_raw_pixels()
1181 SkAutoTUnref<SkColorTable> ctable; in ReadRawPixels()
[all …]
DSkResourceCache.cpp84 SkColorTable*);
98 SkColorTable* fCTable;
106 SkColorTable* ctable) in SkOneShotDiscardablePixelRef()
165 bool allocPixelRef(SkBitmap*, SkColorTable*) override;
171 bool SkResourceCacheDiscardableAllocator::allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { in allocPixelRef()
/external/skia/include/core/
DSkMallocPixelRef.h30 size_t rowBytes, SkColorTable*);
43 size_t rowBytes, SkColorTable*);
49 size_t rowBytes, SkColorTable*);
67 size_t rowBytes, SkColorTable*,
83 SkColorTable* ctable,
90 SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable*) override;
95 SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable*) override;
100 SkMallocPixelRef(const SkImageInfo&, void* addr, size_t rb, SkColorTable*,
113 SkColorTable*);
116 SkColorTable* fCTable;
[all …]
DSkColorTable.h25 class SK_API SkColorTable : public SkRefCnt {
29 SkColorTable(const SkPMColor colors[], int count);
30 virtual ~SkColorTable();
55 static SkColorTable* Create(SkReadBuffer&);
62 SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc);
DSkBitmap.h243 … bool SK_WARN_UNUSED_RESULT tryAllocPixels(const SkImageInfo&, SkPixelRefFactory*, SkColorTable*);
245 void allocPixels(const SkImageInfo& info, SkPixelRefFactory* factory, SkColorTable* ctable) { in allocPixels()
297 bool installPixels(const SkImageInfo&, void* pixels, size_t rowBytes, SkColorTable*,
334 void setPixels(void* p, SkColorTable* ctable = NULL);
370 bool SK_WARN_UNUSED_RESULT tryAllocPixels(SkColorTable* ctable = NULL) {
374 void allocPixels(SkColorTable* ctable = NULL) {
396 bool SK_WARN_UNUSED_RESULT tryAllocPixels(Allocator* allocator, SkColorTable* ctable);
398 void allocPixels(Allocator* allocator, SkColorTable* ctable) { in allocPixels()
480 SkColorTable* getColorTable() const { return fColorTable; } in getColorTable()
708 virtual bool allocPixelRef(SkBitmap*, SkColorTable*) = 0;
[all …]
DSkPixelRef.h22 class SkColorTable; variable
53 SkColorTable* colorTable() const { return fRec.fColorTable; } in colorTable()
65 SkColorTable* fColorTable;
194 SkColorTable* fCTable; // should be NULL unless colortype is kIndex8
337 void setPreLocked(void*, size_t rowBytes, SkColorTable*);
406 virtual SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable*) = 0;
DSkPixmap.h15 class SkColorTable; variable
30 SkColorTable* ctable = NULL)
42 SkColorTable* ctable = NULL);
64 SkColorTable* ctable() const { return fCTable; } in ctable()
183 SkColorTable* fCTable;
225 void reset(const SkImageInfo& info, const void* addr, size_t rb, SkColorTable* ctable = NULL) {
DSkImage.h20 class SkColorTable; variable
50 SkColorTable* ctable = NULL);
/external/skia/src/image/
DSkImage_Raster.cpp66 SkImage_Raster(const SkImageInfo&, SkData*, size_t rb, SkColorTable*);
114 SkColorTable* ctable) in SkImage_Raster()
199 SkColorTable* ctable) { in NewRasterCopy()
222 SkColorTable* ctable = nullptr; in NewRasterData()
233 SkColorTable* ctable = nullptr; in NewFromRaster()
/external/skia/tests/
DCodecPriv.h21 SkAutoTUnref<SkColorTable> colorTable(nullptr); in decode_memory()
27 colorTable.reset(new SkColorTable(colors, maxColors)); in decode_memory()
/external/skia/gm/
Dtinybitmap.cpp18 SkColorTable* ctable = new SkColorTable(c, SK_ARRAY_COUNT(c)); in make_bitmap()
Dbitmapfilters.cpp20 SkColorTable* ctable = new SkColorTable(colorsPM, 4); in make_bm()
/external/skia/samplecode/
DSampleTinyBitmap.cpp22 SkColorTable* ctable = new SkColorTable(c, N); in make_bitmap()
DSampleFilter.cpp30 SkColorTable* ctable = new SkColorTable(colors, 4); in make_bm()
DSampleBlur.cpp24 SkColorTable* ctable = new SkColorTable(c, 256); in make_bitmap()
DSampleDitherBitmap.cpp61 SkColorTable* ctable = new SkColorTable(c, 256); in make_bitmap()
/external/skia/src/ports/
DSkImageDecoder_empty.cpp17 class SkColorTable;
75 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const { in allocPixelRef()
/external/skia/src/codec/
DSkCodecPriv.h152 inline const SkPMColor* get_color_ptr(SkColorTable* colorTable) { in get_color_ptr()
179 inline void copy_color_table(const SkImageInfo& dstInfo, SkColorTable* colorTable, in copy_color_table()
/external/skia/src/images/
DSkImageDecoder_wbmp.cpp122 SkColorTable* ct = new SkColorTable(colors, 2); in onDecode()
DSkImageDecoder_libpng.cpp89 SkColorTable **colorTablep);
325 SkColorTable* colorTable = nullptr; in onDecode()
637 SkColorTable **colorTablep) { in decodePalette()
698 *colorTablep = new SkColorTable(colorStorage, colorCount); in decodePalette()
766 static inline int pack_palette(SkColorTable* ctable, in pack_palette()
896 SkColorTable* ctable = bitmap->getColorTable(); in onEncode()
956 SkColorTable* ct = bitmap.getColorTable(); in doEncode()
/external/skia/bench/
DRepeatTileBench.cpp66 SkColorTable* ctable = new SkColorTable(storage, 216); in convert_to_index666()
/external/skia/src/android/
DSkBitmapRegionCodec.cpp59 SkAutoTUnref<SkColorTable> colorTable(nullptr); in decodeRegion()
73 colorTable.reset(new SkColorTable(colors, maxColors)); in decodeRegion()

123