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

123

/external/chromium_org/third_party/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)) {
87 (info, addr, rowBytes, ctable,
93 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
91 NewWithProc(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable, void* addr, SkMallocPixelRef::ReleaseProc proc, void* context) argument
108 NewWithData(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable, SkData* data) argument
134 SkMallocPixelRef(const SkImageInfo& info, void* storage, size_t rowBytes, SkColorTable* ctable, bool ownsPixels) argument
156 SkMallocPixelRef(const SkImageInfo& info, void* storage, size_t rowBytes, SkColorTable* ctable, SkMallocPixelRef::ReleaseProc proc, void* context) argument
204 create(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument
[all...]
H A DSkProcSpriteBlitter.cpp14 typedef void (*Proc)(void* dst, const void* src, int count, const SkPMColor ctable[]);
26 const SkPMColor* ctable = NULL;
29 ctable = fSource.getColorTable()->lockColors();
33 proc(dst, src, width, ctable);
H A DSkSpriteBlitter_RGB16.cpp145 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->lockColors()
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()->lockColors(); 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.cpp20 SkPMColor ctable[], int* ctableCount) {
32 if (NULL == ctable || NULL == ctableCount) {
40 ctable = NULL;
43 bool success = this->onGetPixels(info, pixels, rowBytes, ctable, ctableCount);
19 getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) argument
H A DSkConfig8888.cpp142 SkColorTable* ctable) {
202 if (NULL == ctable) {
205 table = ctable->lockColors();
227 ctable->unlockColors();
243 if (!bm.installPixels(srcInfo, const_cast<void*>(srcPixels), srcRB, ctable, NULL, NULL)) {
140 CopyPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB, SkColorTable* ctable) argument
/external/skia/src/core/
H A DSkMallocPixelRef.cpp18 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) { argument
31 if (kIndex8_SkColorType == info.fColorType && NULL == ctable) {
34 if (kIndex8_SkColorType != info.fColorType && NULL != ctable) {
44 SkColorTable* ctable) {
45 if (!is_valid(info, ctable)) {
49 (info, addr, rowBytes, ctable, NULL, NULL));
55 SkColorTable* ctable) {
56 if (!is_valid(info, ctable)) {
88 (info, addr, rowBytes, ctable,
94 SkColorTable* ctable,
41 NewDirect(const SkImageInfo& info, void* addr, size_t rowBytes, SkColorTable* ctable) argument
53 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
243 create(const SkImageInfo& info, SkColorTable* ctable) argument
[all...]
H A DSkProcSpriteBlitter.cpp14 typedef void (*Proc)(void* dst, const void* src, int count, const SkPMColor ctable[]);
26 const SkPMColor* ctable = NULL;
29 ctable = fSource.getColorTable()->lockColors();
33 proc(dst, src, width, ctable);
H A DSkSpriteBlitter_RGB16.cpp145 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->lockColors()
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()->lockColors(); 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.cpp20 SkPMColor ctable[], int* ctableCount) {
32 if (NULL == ctable || NULL == ctableCount) {
40 ctable = NULL;
43 bool success = this->onGetPixels(info, pixels, rowBytes, ctable, ctableCount);
19 getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) argument
/external/chromium_org/third_party/skia/gm/
H A Dtinybitmap.cpp18 SkColorTable* ctable = new SkColorTable(c, SK_ARRAY_COUNT(c)); local
23 NULL, ctable);
24 ctable->unref();
/external/skia/gm/
H A Dtinybitmap.cpp18 SkColorTable* ctable = new SkColorTable(c, SK_ARRAY_COUNT(c)); local
23 NULL, ctable);
24 ctable->unref();
/external/chromium_org/third_party/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
/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
/external/chromium_org/third_party/skia/include/core/
H A DSkBitmap.h234 SkColorTable* ctable) {
235 if (!this->tryAllocPixels(info, factory, ctable)) {
312 @param ctable ColorTable (or null) that matches the specified pixels
314 void setPixels(void* p, SkColorTable* ctable = NULL);
345 @param ctable ColorTable (or null) to use with the pixels that will
350 bool SK_WARN_UNUSED_RESULT tryAllocPixels(SkColorTable* ctable = NULL) {
351 return this->tryAllocPixels(NULL, ctable);
354 SK_ALLOCPIXELS_RETURN_TYPE allocPixels(SkColorTable* ctable = NULL) {
355 return this->allocPixels(NULL, ctable);
369 @param ctable ColorTabl
233 allocPixels(const SkImageInfo& info, SkPixelRefFactory* factory, SkColorTable* ctable) argument
378 allocPixels(Allocator* allocator, SkColorTable* ctable) argument
815 SkAutoLockColors(SkColorTable* ctable) argument
833 lockColors(SkColorTable* ctable) argument
[all...]
H A DSkImageGenerator.h95 * SkPMColor values in ctable. On success the generator must copy N colors into that storage,
105 SkPMColor ctable[], int* ctableCount);
132 SkPMColor ctable[], int* ctableCount);
/external/skia/include/core/
H A DSkImageGenerator.h101 * SkPMColor values in ctable. On success the generator must copy N colors into that storage,
111 SkPMColor ctable[], int* ctableCount);
124 SkPMColor ctable[], int* ctableCount);
H A DSkBitmap.h360 @param ctable ColorTable (or null) that matches the specified pixels
362 void setPixels(void* p, SkColorTable* ctable = NULL);
393 @param ctable ColorTable (or null) to use with the pixels that will
398 bool allocPixels(SkColorTable* ctable = NULL) {
399 return this->allocPixels(NULL, ctable);
413 @param ctable ColorTable (or null) to use with the pixels that will
420 bool allocPixels(Allocator* allocator, SkColorTable* ctable);
832 explicit SkAutoLockColors(SkColorTable* ctable) { argument
833 fCTable = ctable;
834 fColors = ctable
850 lockColors(SkColorTable* ctable) argument
[all...]
/external/chromium_org/third_party/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
H A DSkDecodingImageGenerator.cpp47 SkPMColor ctable[], int* ctableCount) SK_OVERRIDE;
195 SkColorTable* ctable = bitmap.getColorTable(); local
196 if (NULL == ctable) {
199 const int count = ctable->count();
200 memcpy(ctableEntries, ctable->lockColors(), count * sizeof(SkPMColor));
201 ctable->unlockColors();
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];
412 int width, int deltaSrc, int, const SkPMColor ctable[]) {
416 dst[x] = SkPixel32ToPixel16(ctable[*src]);
424 int deltaSrc, int y, const SkPMColor ctable[]) {
430 SkPMColor c = ctable[*src];
449 int deltaSrc, int y, const SkPMColor ctable[]) {
454 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
410 Sample_Index_D565(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int, const SkPMColor ctable[]) argument
422 Sample_Index_D565_D(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
447 Sample_Index_D4444(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
462 Sample_Index_D4444_D(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
479 Sample_Index_D4444_SkipZ(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
496 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
627 begin(SkBitmap* dst, SrcConfig sc, const Options& opts, const SkPMColor ctable[]) argument
731 begin(SkBitmap* dst, SrcConfig sc, const SkImageDecoder& decoder, const SkPMColor ctable[]) argument
[all...]
/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
H A DSkDecodingImageGenerator.cpp47 SkPMColor ctable[], int* ctableCount) SK_OVERRIDE;
200 SkColorTable* ctable = bitmap.getColorTable(); local
201 if (NULL == ctable) {
204 const int count = ctable->count();
205 memcpy(ctableEntries, ctable->lockColors(), count * sizeof(SkPMColor));
206 ctable->unlockColors();
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];
412 int width, int deltaSrc, int, const SkPMColor ctable[]) {
416 dst[x] = SkPixel32ToPixel16(ctable[*src]);
424 int deltaSrc, int y, const SkPMColor ctable[]) {
430 SkPMColor c = ctable[*src];
449 int deltaSrc, int y, const SkPMColor ctable[]) {
454 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
410 Sample_Index_D565(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int, const SkPMColor ctable[]) argument
422 Sample_Index_D565_D(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
447 Sample_Index_D4444(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
462 Sample_Index_D4444_D(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
479 Sample_Index_D4444_SkipZ(void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int deltaSrc, int y, const SkPMColor ctable[]) argument
496 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
627 begin(SkBitmap* dst, SrcConfig sc, const Options& opts, const SkPMColor ctable[]) argument
731 begin(SkBitmap* dst, SrcConfig sc, const SkImageDecoder& decoder, const SkPMColor ctable[]) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
H A DDecodingImageGenerator.h55 virtual bool onGetPixels(const SkImageInfo&, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) OVERRIDE;
/external/chromium_org/third_party/skia/bench/
H A DRepeatTileBench.cpp66 SkColorTable* ctable = new SkColorTable(storage, 216, kOpaque_SkAlphaType); local
69 NULL, ctable); local
70 ctable->unref();

Completed in 6210 milliseconds

123