/external/skia/src/images/ |
D | SkImageRef.cpp | 57 SkASSERT(SkBitmap::kNo_Config != fBitmap.config()); in getInfo() 59 bitmap->setConfig(fBitmap.config(), fBitmap.width(), fBitmap.height()); in getInfo() 67 bitmap->setIsOpaque(fBitmap.isOpaque()); in isOpaque() 98 if (SkBitmap::kNo_Config != fBitmap.config()) { in prepareBitmap() 99 fConfig = fBitmap.config(); in prepareBitmap() 102 if (NULL != fBitmap.getPixels() || in prepareBitmap() 103 (SkBitmap::kNo_Config != fBitmap.config() && in prepareBitmap() 108 SkASSERT(fBitmap.getPixels() == NULL); in prepareBitmap() 124 if (this->onDecode(codec, fStream, &fBitmap, fConfig, mode)) { in prepareBitmap() 138 fBitmap.reset(); in prepareBitmap() [all …]
|
D | SkImageRefPool.cpp | 34 ref->fBitmap.width(), ref->fBitmap.height(), in justAddedPixels() 35 ref->fBitmap.bytesPerPixel(), in justAddedPixels() 36 ref->fBitmap.getSize(), (int)fRAMUsed); in justAddedPixels() 62 if (!ref->isLocked() && ref->fBitmap.getPixels()) { in setRAMUsed() 70 ref->fBitmap.width(), ref->fBitmap.height(), in setRAMUsed() 71 ref->fBitmap.bytesPerPixel(), in setRAMUsed() 77 ref->fBitmap.setPixels(NULL); in setRAMUsed() 78 SkASSERT(NULL == ref->fBitmap.getPixels()); in setRAMUsed() 184 SkDebugf(" [%3d %3d %d] ram=%d data=%d locked=%d %s\n", ref->fBitmap.width(), in dump() 185 ref->fBitmap.height(), ref->fBitmap.config(), in dump()
|
/external/skia/legacy/src/images/ |
D | SkImageRef.cpp | 60 SkASSERT(SkBitmap::kNo_Config != fBitmap.config()); in getInfo() 62 bitmap->setConfig(fBitmap.config(), fBitmap.width(), fBitmap.height()); in getInfo() 70 bitmap->setIsOpaque(fBitmap.isOpaque()); in isOpaque() 102 if (SkBitmap::kNo_Config != fBitmap.config()) { in prepareBitmap() 103 fConfig = fBitmap.config(); in prepareBitmap() 106 if (NULL != fBitmap.getPixels() || in prepareBitmap() 107 (SkBitmap::kNo_Config != fBitmap.config() && in prepareBitmap() 112 SkASSERT(fBitmap.getPixels() == NULL); in prepareBitmap() 128 if (this->onDecode(codec, fStream, &fBitmap, fConfig, mode)) { in prepareBitmap() 142 fBitmap.reset(); in prepareBitmap() [all …]
|
D | SkImageRefPool.cpp | 34 ref->fBitmap.width(), ref->fBitmap.height(), in justAddedPixels() 35 ref->fBitmap.bytesPerPixel(), in justAddedPixels() 36 ref->fBitmap.getSize(), (int)fRAMUsed); in justAddedPixels() 62 if (!ref->isLocked() && ref->fBitmap.getPixels()) { in setRAMUsed() 70 ref->fBitmap.width(), ref->fBitmap.height(), in setRAMUsed() 71 ref->fBitmap.bytesPerPixel(), in setRAMUsed() 77 ref->fBitmap.setPixels(NULL); in setRAMUsed() 78 SkASSERT(NULL == ref->fBitmap.getPixels()); in setRAMUsed() 184 SkDebugf(" [%3d %3d %d] ram=%d data=%d locked=%d %s\n", ref->fBitmap.width(), in dump() 185 ref->fBitmap.height(), ref->fBitmap.config(), in dump()
|
/external/skia/src/image/ |
D | SkSurface_Raster.cpp | 31 SkBitmap fBitmap; member in SkSurface_Raster 89 fBitmap.setConfig(config, info.fWidth, info.fHeight, rb); in SkSurface_Raster() 90 fBitmap.setPixels(pixels); in SkSurface_Raster() 91 fBitmap.setIsOpaque(isOpaque); in SkSurface_Raster() 100 fBitmap.setConfig(config, info.fWidth, info.fHeight, rb); in SkSurface_Raster() 101 fBitmap.setPixelRef(pr); in SkSurface_Raster() 102 fBitmap.setIsOpaque(isOpaque); in SkSurface_Raster() 106 fBitmap.eraseColor(SK_ColorTRANSPARENT); in SkSurface_Raster() 111 return SkNEW_ARGS(SkCanvas, (fBitmap)); in onNewCanvas() 120 canvas->drawBitmap(fBitmap, x, y, paint); in onDraw() [all …]
|
D | SkImage_Raster.cpp | 62 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef() 67 SkBitmap fBitmap; member in SkImage_Raster 89 fBitmap.setConfig(config, info.fWidth, info.fHeight, rowBytes); in SkImage_Raster() 90 fBitmap.setPixelRef(SkNEW_ARGS(SkDataPixelRef, (data)))->unref(); in SkImage_Raster() 91 fBitmap.setIsOpaque(isOpaque); in SkImage_Raster() 92 fBitmap.setImmutable(); in SkImage_Raster() 100 fBitmap.setConfig(config, info.fWidth, info.fHeight, rowBytes); in SkImage_Raster() 101 fBitmap.setPixelRef(pr); in SkImage_Raster() 102 fBitmap.setIsOpaque(isOpaque); in SkImage_Raster() 103 fBitmap.setImmutable(); in SkImage_Raster() [all …]
|
/external/skia/src/opts/ |
D | SkBitmapProcState_opts_arm.cpp | 28 const uint16_t* SK_RESTRICT table = s.fBitmap->getColorTable()->lock16BitCache(); in SI8_D16_nofilter_DX_arm() 29 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels(); in SI8_D16_nofilter_DX_arm() 33 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in SI8_D16_nofilter_DX_arm() 35 xy[0] * s.fBitmap->rowBytes()); in SI8_D16_nofilter_DX_arm() 39 if (1 == s.fBitmap->width()) { in SI8_D16_nofilter_DX_arm() 103 s.fBitmap->getColorTable()->unlock16BitCache(); in SI8_D16_nofilter_DX_arm() 119 const SkPMColor* SK_RESTRICT table = s.fBitmap->getColorTable()->lockColors(); in SI8_opaque_D32_nofilter_DX_arm() 120 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels(); in SI8_opaque_D32_nofilter_DX_arm() 124 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in SI8_opaque_D32_nofilter_DX_arm() 125 srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fBitmap->rowBytes()); in SI8_opaque_D32_nofilter_DX_arm() [all …]
|
/external/skia/legacy/src/opts/ |
D | SkBitmapProcState_opts_arm.cpp | 28 const uint16_t* SK_RESTRICT table = s.fBitmap->getColorTable()->lock16BitCache(); in SI8_D16_nofilter_DX_arm() 29 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels(); in SI8_D16_nofilter_DX_arm() 33 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in SI8_D16_nofilter_DX_arm() 35 xy[0] * s.fBitmap->rowBytes()); in SI8_D16_nofilter_DX_arm() 39 if (1 == s.fBitmap->width()) { in SI8_D16_nofilter_DX_arm() 103 s.fBitmap->getColorTable()->unlock16BitCache(); in SI8_D16_nofilter_DX_arm() 119 const SkPMColor* SK_RESTRICT table = s.fBitmap->getColorTable()->lockColors(); in SI8_opaque_D32_nofilter_DX_arm() 120 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels(); in SI8_opaque_D32_nofilter_DX_arm() 124 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in SI8_opaque_D32_nofilter_DX_arm() 125 srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fBitmap->rowBytes()); in SI8_opaque_D32_nofilter_DX_arm() [all …]
|
/external/skia/legacy/src/core/ |
D | SkBitmapProcState_sample.h | 36 const char* SK_RESTRICT srcAddr = (const char*)s.fBitmap->getPixels(); in MAKENAME() 37 int i, rb = s.fBitmap->rowBytes(); in MAKENAME() 44 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 45 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 50 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 51 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 57 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 58 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 79 const SRCTYPE* SK_RESTRICT srcAddr = (const SRCTYPE*)s.fBitmap->getPixels(); in MAKENAME() 83 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in MAKENAME() [all …]
|
D | SkBitmapProcState.cpp | 92 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \ 104 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \ 123 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \ 139 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \ 154 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \ 156 #define PREAMBLE(state) const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()… 159 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors(false) 168 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \ 171 … const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()->lockColors() 174 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors(false) [all …]
|
/external/skia/src/core/ |
D | SkBitmapProcState_sample.h | 51 const char* SK_RESTRICT srcAddr = (const char*)s.fBitmap->getPixels(); in MAKENAME() 52 int i, rb = s.fBitmap->rowBytes(); in MAKENAME() 59 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 60 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 65 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 66 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 72 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 73 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 94 const SRCTYPE* SK_RESTRICT srcAddr = (const SRCTYPE*)s.fBitmap->getPixels(); in MAKENAME() 98 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in MAKENAME() [all …]
|
D | SkDevice.cpp | 27 : fBitmap(bitmap), fLeakyProperties(SkDeviceProperties::MakeDefault()) 37 : fBitmap(bitmap), fLeakyProperties(deviceProperties) in SkDevice() 55 fBitmap.setConfig(config, width, height); in SkDevice() 56 fBitmap.allocPixels(); in SkDevice() 57 fBitmap.setIsOpaque(isOpaque); in SkDevice() 59 fBitmap.eraseColor(SK_ColorTRANSPARENT); in SkDevice() 73 fBitmap.setConfig(config, width, height); in SkDevice() 74 fBitmap.allocPixels(); in SkDevice() 75 fBitmap.setIsOpaque(isOpaque); in SkDevice() 77 fBitmap.eraseColor(SK_ColorTRANSPARENT); in SkDevice() [all …]
|
D | SkBitmapProcState_procs.h | 93 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \ 105 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \ 124 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \ 140 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \ 155 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \ 157 #define PREAMBLE(state) const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()… 160 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors(false) 169 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \ 172 … const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()->lockColors() 175 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors(false) [all …]
|
D | SkBitmapProcState.cpp | 102 fBitmap = &fOrigBitmap; in chooseProcs() 118 fBitmap = &fMipBitmap; in chooseProcs() 125 just_trans_clamp(*m, *fBitmap) : just_trans_general(*m); in chooseProcs() 172 valid_for_filtering(fBitmap->width() | fBitmap->height())); in chooseProcs() 197 switch (fBitmap->config()) { in chooseProcs() 324 const int maxX = s.fBitmap->width() - 1; in Clamp_S32_D32_nofilter_trans_shaderproc() 325 const int maxY = s.fBitmap->height() - 1; in Clamp_S32_D32_nofilter_trans_shaderproc() 340 const SkPMColor* row = s.fBitmap->getAddr32(0, iy); in Clamp_S32_D32_nofilter_trans_shaderproc() 398 const int stopX = s.fBitmap->width(); in Repeat_S32_D32_nofilter_trans_shaderproc() 399 const int stopY = s.fBitmap->height(); in Repeat_S32_D32_nofilter_trans_shaderproc() [all …]
|
/external/skia/src/utils/ |
D | SkBitmapTransformer.cpp | 27 SkBitmap::Config bitmapConfig = fBitmap.config(); in isValid() 74 fBitmap.lockPixels(); in copyBitmapToPixelBuffer() 75 int width = fBitmap.width(); in copyBitmapToPixelBuffer() 76 size_t srcRowBytes = fBitmap.rowBytes(); in copyBitmapToPixelBuffer() 78 const char *srcBytes = const_cast<const char *>(static_cast<char*>(fBitmap.getPixels())); in copyBitmapToPixelBuffer() 80 for (int y = 0; y < fBitmap.height(); y++) { in copyBitmapToPixelBuffer() 85 fBitmap.unlockPixels(); in copyBitmapToPixelBuffer()
|
/external/skia/tools/ |
D | skdiff.cpp | 159 const int w = dr->fComparison.fBitmap.width(); in compute_diff() 160 const int h = dr->fComparison.fBitmap.height(); in compute_diff() 161 if (w != dr->fBase.fBitmap.width() || h != dr->fBase.fBitmap.height()) { in compute_diff() 166 SkAutoLockPixels alpDiff(dr->fDifference.fBitmap); in compute_diff() 167 SkAutoLockPixels alpWhite(dr->fWhite.fBitmap); in compute_diff() 179 SkPMColor c0 = *dr->fBase.fBitmap.getAddr32(x, y); in compute_diff() 180 SkPMColor c1 = *dr->fComparison.fBitmap.getAddr32(x, y); in compute_diff() 207 *dr->fDifference.fBitmap.getAddr32(x, y) = outputDifference; in compute_diff() 208 *dr->fWhite.fBitmap.getAddr32(x, y) = PMCOLOR_WHITE; in compute_diff() 210 *dr->fDifference.fBitmap.getAddr32(x, y) = 0; in compute_diff() [all …]
|
D | skdiff_utils.cpp | 66 if (!codec->decode(&stream, &resource.fBitmap, SkBitmap::kARGB_8888_Config, mode)) { in get_bitmap() 141 const int w = drp->fBase.fBitmap.width(); in create_and_write_diff_image() 142 const int h = drp->fBase.fBitmap.height(); in create_and_write_diff_image() 144 if (w != drp->fComparison.fBitmap.width() || h != drp->fComparison.fBitmap.height()) { in create_and_write_diff_image() 147 drp->fDifference.fBitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h); in create_and_write_diff_image() 148 drp->fDifference.fBitmap.allocPixels(); in create_and_write_diff_image() 150 drp->fWhite.fBitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h); in create_and_write_diff_image() 151 drp->fWhite.fBitmap.allocPixels(); in create_and_write_diff_image() 174 if (write_bitmap(drp->fDifference.fFullPath, drp->fDifference.fBitmap)) { in create_and_write_diff_image() 179 if (write_bitmap(drp->fWhite.fFullPath, drp->fWhite.fBitmap)) { in create_and_write_diff_image()
|
/external/skia/legacy/src/animator/ |
D | SkDrawBitmap.cpp | 36 maker.fCanvas->drawBitmap(fBitmap, x, y, maker.fPaint); in draw() 93 fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes); in onEndElement() 94 fBitmap.allocPixels(); in onEndElement() 96 fBitmap.eraseColor(fColor); in onEndElement() 164 value->fOperand.fS32 = fBitmap.height(); in getProperty() 167 value->fOperand.fS32 = fBitmap.width(); in getProperty() 184 fBitmap.reset(); in resolve() 185 SkImageDecoder::DecodeMemory(base64.fData, base64.fLength, &fBitmap); in resolve() 190 fBitmap.reset(); in resolve() 196 SkImageDecoder::DecodeStream(stream, &fBitmap); in resolve()
|
/external/skia/src/animator/ |
D | SkDrawBitmap.cpp | 36 maker.fCanvas->drawBitmap(fBitmap, x, y, maker.fPaint); in draw() 93 fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes); in onEndElement() 94 fBitmap.allocPixels(); in onEndElement() 96 fBitmap.eraseColor(fColor); in onEndElement() 164 value->fOperand.fS32 = fBitmap.height(); in getProperty() 167 value->fOperand.fS32 = fBitmap.width(); in getProperty() 184 fBitmap.reset(); in resolve() 185 SkImageDecoder::DecodeMemory(base64.fData, base64.fLength, &fBitmap); in resolve() 190 fBitmap.reset(); in resolve() 196 SkImageDecoder::DecodeStream(stream, &fBitmap); in resolve()
|
/external/skia/bench/ |
D | BitmapRectBench.cpp | 42 SkBitmap fBitmap; member in BitmapRectBench 58 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h); in BitmapRectBench() 59 fBitmap.allocPixels(); in BitmapRectBench() 60 fBitmap.setIsOpaque(true); in BitmapRectBench() 61 fBitmap.eraseColor(SK_ColorBLACK); in BitmapRectBench() 62 drawIntoBitmap(fBitmap); in BitmapRectBench() 94 canvas->drawBitmapRectToRect(fBitmap, &fSrcR, fDstR, &paint); in onDraw()
|
/external/skia/legacy/src/effects/ |
D | SkTableColorFilter.cpp | 9 fBitmap = NULL; in SkTable_ColorFilter() 49 SkBitmap* fBitmap; member in SkTable_ColorFilter 171 fBitmap = NULL; in SkTable_ColorFilter() 188 if (NULL == fBitmap) { in asComponentTable() 189 fBitmap = new SkBitmap; in asComponentTable() 190 fBitmap->setConfig(SkBitmap::kA8_Config, 256, 4, 256); in asComponentTable() 191 fBitmap->allocPixels(); in asComponentTable() 192 memcpy(fBitmap->getAddr8(0, 0), fStorage, 256 * 4); in asComponentTable() 194 *table = *fBitmap; in asComponentTable()
|
/external/skia/gm/ |
D | matrixconvolution.cpp | 27 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, 80, 80); in make_bitmap() 28 fBitmap.allocPixels(); in make_bitmap() 29 SkDevice device(fBitmap); in make_bitmap() 63 SkIntToScalar(fBitmap.width()), SkIntToScalar(fBitmap.height()))); in draw() 64 canvas->drawBitmap(fBitmap, SkIntToScalar(x), SkIntToScalar(y), &paint); in draw() 89 SkBitmap fBitmap; member in skiagm::MatrixConvolutionGM
|
D | imagefiltersgraph.cpp | 33 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, 100, 100); in make_bitmap() 34 fBitmap.allocPixels(); in make_bitmap() 35 SkDevice device(fBitmap); in make_bitmap() 55 SkAutoTUnref<SkImageFilter> bitmapSource(new SkBitmapSource(fBitmap)); in onDraw() 81 canvas->drawBitmap(fBitmap, 100, 0, &paint); in onDraw() 87 SkBitmap fBitmap; member in ImageFiltersGraphGM
|
D | blend.cpp | 26 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, 80, 80); in make_bitmap() 27 fBitmap.allocPixels(); in make_bitmap() 28 SkDevice device(fBitmap); in make_bitmap() 69 SkIntToScalar(fBitmap.width()), SkIntToScalar(fBitmap.height()))); in drawClippedBitmap() 70 canvas->drawBitmap(fBitmap, SkIntToScalar(x), 0, &paint); in drawClippedBitmap() 97 SkBitmap fBitmap, fCheckerboard; member in skiagm::ImageBlendGM
|
/external/skia/src/effects/ |
D | SkBitmapSource.cpp | 12 fBitmap(bitmap) { in SkBitmapSource() 17 fBitmap.unflatten(buffer); in SkBitmapSource() 22 fBitmap.flatten(buffer); in flatten() 27 *result = fBitmap; in onFilterImage()
|