/external/skia/src/core/ |
SkMallocPixelRef.cpp | 18 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) { 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) { [all...] |
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[s4 & 0xFF] [all...] |
SkImageGenerator.cpp | 17 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 we built earlier, with the correct colors [all...] |
SkPixelRef.cpp | 91 static void validate_pixels_ctable(const SkImageInfo& info, const SkColorTable* ctable) { 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) { 104 validate_pixels_ctable(fInfo, ctable); 108 fRec.fColorTable = ctable;
|
SkBitmap.cpp | 254 void SkBitmap::setPixels(void* p, SkColorTable* ctable) { 265 SkPixelRef* pr = SkMallocPixelRef::NewDirect(fInfo, p, fRowBytes, ctable); 278 bool SkBitmap::tryAllocPixels(Allocator* allocator, SkColorTable* ctable) { 284 return allocator->allocPixelRef(this, ctable); 319 SkColorTable* ctable) { 320 if (kIndex_8_SkColorType == requestedInfo.colorType() && nullptr == ctable) { 335 SkPixelRef* pr = factory->create(correctedInfo, correctedInfo.minRowBytes(), ctable); 388 pixmap.rowBytes(), pixmap.ctable(), 439 SkColorTable* ctable) { 446 SkPixelRef* pr = SkMallocPixelRef::NewAllocate(info, dst->rowBytes(), ctable); 643 const SkColorTable* ctable = pmap.ctable(); local 882 SkAutoTUnref<SkColorTable> ctable; local 1181 SkAutoTUnref<SkColorTable> ctable; local [all...] |
/external/skia/src/codec/ |
SkSwizzler.cpp | 15 const SkPMColor ctable[]) { 24 const SkPMColor ctable[]) { 34 const SkPMColor ctable[]) { 44 const SkPMColor ctable[]) { 63 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { 88 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { 109 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { 132 int bpp, int deltaSrc, int offset, const SkPMColor* /*ctable*/) { 157 int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) { 178 int bpp, int deltaSrc, int offset, const SkPMColor ctable[]) { [all...] |
SkSwizzler.h | 91 * @param ctable Unowned pointer to an array of up to 256 colors for an 107 static SkSwizzler* CreateSwizzler(SrcConfig, const SkPMColor* ctable, 152 * @param ctable Colors (used for kIndex source). 159 const SkPMColor ctable[]); 165 const SkPMColor ctable[]); 169 int deltaSrc, int offset, const SkPMColor ctable[]); 265 SkSwizzler(RowProc fastProc, RowProc proc, const SkPMColor* ctable, int srcOffset,
|
SkCodecImageGenerator.h | 26 bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[],
|
SkWbmpCodec.h | 34 SkSwizzler* initializeSwizzler(const SkImageInfo& info, const SkPMColor* ctable,
|
SkCodec.cpp | 153 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);
|
SkWbmpCodec.cpp | 98 SkSwizzler* SkWbmpCodec::initializeSwizzler(const SkImageInfo& info, const SkPMColor* ctable, 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));
|
/frameworks/base/core/jni/android/graphics/ |
Bitmap.h | 51 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable); 53 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable); 55 size_t rowBytes, SkColorTable* ctable); 72 void reconfigure(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable);
|
GraphicsJNI.h | 98 SkColorTable* ctable); 101 SkColorTable* ctable); 104 SkColorTable* ctable, int fd, void* addr, size_t size, bool readOnly); 112 static bool allocatePixels(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable); 133 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) override; 190 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) override; 220 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable);
|
Bitmap.cpp | 39 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) 43 reconfigure(info, rowBytes, ctable); 53 void reconfigure(const SkImageInfo& newInfo, size_t rowBytes, SkColorTable* ctable) { 55 ctable = nullptr; 58 if (mColorTable != ctable) { 60 mColorTable = ctable; 131 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) 136 mPixelRef.reset(new WrappedPixelRef(this, address, info, rowBytes, ctable)); 143 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) 148 mPixelRef.reset(new WrappedPixelRef(this, address, info, rowBytes, ctable)); 979 SkColorTable* ctable = NULL; local 1101 SkColorTable* ctable = bitmap.getColorTable(); local 1226 SkColorTable* ctable = bitmap.getColorTable(); local [all...] |
/external/skia/gm/ |
tinybitmap.cpp | 18 SkColorTable* ctable = new SkColorTable(c, SK_ARRAY_COUNT(c)); local 23 nullptr, ctable); 24 ctable->unref();
|
bitmapfilters.cpp | 20 SkColorTable* ctable = new SkColorTable(colorsPM, 4); local 24 nullptr, ctable); 25 ctable->unref();
|
/external/skia/samplecode/ |
SampleTinyBitmap.cpp | 22 SkColorTable* ctable = new SkColorTable(c, N); local 27 nullptr, ctable); 28 ctable->unref(); 60 SkAutoLockPixels alp(*bm); // needed for ctable
|
SampleBlur.cpp | 24 SkColorTable* ctable = new SkColorTable(c, 256); local 28 nullptr, ctable); 29 ctable->unref();
|
SampleDitherBitmap.cpp | 61 SkColorTable* ctable = new SkColorTable(c, 256); local 65 nullptr, ctable); 66 ctable->unref(); 103 SkAutoLockPixels alp(*bm); // needed for ctable
|
/external/skia/include/core/ |
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); 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);
|
SkBitmap.h | 245 void allocPixels(const SkImageInfo& info, SkPixelRefFactory* factory, SkColorTable* ctable) { 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 ColorTable (or null) to use with the pixels that wil [all...] |
/external/skia/src/image/ |
SkImage_Raster.cpp | 114 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);
|
/external/skia/src/images/ |
SkScaledBitmapSampler.cpp | 366 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[*src] [all...] |
/external/skia/bench/ |
RepeatTileBench.cpp | 66 SkColorTable* ctable = new SkColorTable(storage, 216); local 69 nullptr, ctable); local 70 ctable->unref();
|
/external/skia/include/codec/ |
SkCodec.h | 260 * SkPMColor values in ctable. On success the generator must copy N colors into that storage, 272 SkPMColor ctable[], int* ctableCount); 361 * @param ctable A pointer to a color table. When dstInfo.colorType() is 371 SkPMColor ctable[], int* ctableCount); 531 SkPMColor ctable[], int* ctableCount, 656 const SkCodec::Options& /*options*/, SkPMColor* /*ctable*/, int* /*ctableCount*/) {
|