Searched refs:dstInfo (Results 1 - 25 of 34) sorted by relevance

12

/external/skia/platform_tools/android/examples/hello_skia_app/jni/
H A Dhelloskia.cpp24 AndroidBitmapInfo dstInfo; local
26 AndroidBitmap_getInfo(env, dstBitmap, &dstInfo);
29 SkImageInfo info = SkImageInfo::MakeN32Premul(dstInfo.width, dstInfo.height);
32 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterDirect(info, dstPixels, dstInfo.stride));
/external/skia/src/codec/
H A DSkCodec.cpp90 SkScanlineDecoder* SkCodec::getScanlineDecoder(const SkImageInfo& dstInfo, const Options* options, argument
99 fScanlineDecoder.reset(this->onGetScanlineDecoder(dstInfo, *options, ctable, ctableCount));
103 SkScanlineDecoder* SkCodec::getScanlineDecoder(const SkImageInfo& dstInfo) { argument
104 SkASSERT(kIndex_8_SkColorType != dstInfo.colorType());
105 if (kIndex_8_SkColorType == dstInfo.colorType()) {
108 return this->getScanlineDecoder(dstInfo, NULL, NULL, NULL);
H A DSkCodec_libbmp.h66 Result onGetPixels(const SkImageInfo& dstInfo, void* dst,
116 Result decodeMask(const SkImageInfo& dstInfo, void* dst,
125 const SkImageInfo& dstInfo, uint32_t x, uint32_t y,
133 const SkImageInfo& dstInfo, uint32_t x, uint32_t y,
141 Result decodeRLE(const SkImageInfo& dstInfo, void* dst,
149 Result decode(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options& opts);
H A DSkJpegCodec.cpp284 void SkJpegCodec::initializeSwizzler(const SkImageInfo& dstInfo, argument
288 fSwizzler.reset(SkSwizzler::CreateSwizzler(srcConfig, NULL, dstInfo, dst, dstRowBytes,
290 fSrcRowBytes = SkSwizzler::BytesPerPixel(srcConfig) * dstInfo.width();
296 SkCodec::Result SkJpegCodec::onGetPixels(const SkImageInfo& dstInfo, argument
314 if (!conversion_possible(dstInfo, this->getInfo())) {
319 if (!this->scaleToDimensions(dstInfo.width(), dstInfo.height())) {
329 this->initializeSwizzler(dstInfo, dst, dstRowBytes, options);
352 uint32_t dstHeight = dstInfo.height();
359 convert_CMYK_to_RGB(srcRows[0], dstInfo
395 SkJpegScanlineDecoder(const SkImageInfo& dstInfo, SkJpegCodec* codec) argument
463 onGetScanlineDecoder(const SkImageInfo& dstInfo, const Options& options, SkPMColor ctable[], int* ctableCount) argument
[all...]
H A DSkJpegCodec.h52 Result onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options&,
59 SkScanlineDecoder* onGetScanlineDecoder(const SkImageInfo& dstInfo, const Options& options,
111 void initializeSwizzler(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes,
H A DSkCodec_libbmp.cpp574 SkCodec::Result SkBmpCodec::onGetPixels(const SkImageInfo& dstInfo, argument
588 if (dstInfo.dimensions() != this->getInfo().dimensions()) {
592 if (!conversion_possible(dstInfo, this->getInfo())) {
599 if (!createColorTable(dstInfo.alphaType(), inputColorCount)) {
605 copy_color_table(dstInfo, fColorTable, inputColorPtr, inputColorCount);
610 return decodeMask(dstInfo, dst, dstRowBytes, opts);
612 return decodeRLE(dstInfo, dst, dstRowBytes, opts);
614 return decode(dstInfo, dst, dstRowBytes, opts);
743 SkCodec::Result SkBmpCodec::decodeMask(const SkImageInfo& dstInfo, argument
747 const int width = dstInfo
815 setRLEPixel(void* dst, size_t dstRowBytes, const SkImageInfo& dstInfo, uint32_t x, uint32_t y, uint8_t index) argument
848 setRLE24Pixel(void* dst, size_t dstRowBytes, const SkImageInfo& dstInfo, uint32_t x, uint32_t y, uint8_t red, uint8_t green, uint8_t blue) argument
883 decodeRLE(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options& opts) argument
[all...]
H A DSkCodec_libico.h41 Result onGetPixels(const SkImageInfo& dstInfo, void* dst,
H A DSkCodecPriv.h38 static inline void copy_color_table(const SkImageInfo& dstInfo, SkColorTable* colorTable, argument
40 if (kIndex_8_SkColorType == dstInfo.colorType()) {
H A DSkCodec_libgif.cpp240 SkCodec::Result SkGifCodec::onGetPixels(const SkImageInfo& dstInfo, argument
260 if (dstInfo.dimensions() != this->getInfo().dimensions()) {
263 if (!conversion_possible(dstInfo, this->getInfo())) {
282 const int32_t width = dstInfo.width();
283 const int32_t height = dstInfo.height();
342 SkColorType dstColorType = dstInfo.colorType();
420 dstInfo.makeWH(innerWidth, innerHeight);
427 SkSwizzler::Fill(dst, dstInfo, dstRowBytes, height, fillIndex, colorTable);
444 SkSwizzler::kIndex, colorTable, dstInfo, dst,
480 SkSwizzler::Fill(swizzler->getDstRow(), dstInfo, dstRowByte
[all...]
H A DSkCodec_libpng.cpp596 SkPngScanlineDecoder(const SkImageInfo& dstInfo, SkPngCodec* codec)
597 : INHERITED(dstInfo)
601 fStorage.reset(dstInfo.width() * SkSwizzler::BytesPerPixel(fCodec->fSrcConfig));
647 SkScanlineDecoder* SkPngCodec::onGetScanlineDecoder(const SkImageInfo& dstInfo,
654 if (dstInfo.dimensions() != this->getInfo().dimensions()) {
658 if (!conversion_possible(dstInfo, this->getInfo())) {
665 // be at least dstInfo.minRowBytes.
666 if (this->initializeSwizzler(dstInfo, NULL, dstInfo.minRowBytes(), options, ctable,
678 return SkNEW_ARGS(SkPngScanlineDecoder, (dstInfo, thi
[all...]
H A DSkCodec_libpng.h33 SkScanlineDecoder* onGetScanlineDecoder(const SkImageInfo& dstInfo, const Options& options,
H A DSkSwizzler.cpp458 void SkSwizzler::Fill(void* dstStartRow, const SkImageInfo& dstInfo, size_t dstRowBytes, argument
461 SkASSERT(numRows <= (uint32_t) dstInfo.height());
464 const size_t bytesToFill = dstInfo.makeWH(dstInfo.width(), numRows).getSafeSize(dstRowBytes);
467 switch(dstInfo.colorType()) {
488 for (int32_t col = 0; col < dstInfo.width(); col++) {
H A DSkSwizzler.h143 * If dstInfo.colorType() is kIndex8, colorOrIndex is assumed to be a uint8_t
147 * If dstInfo.colorType() is kN32, colorOrIndex is treated differently depending on
151 * unpremul, depending on dstInfo.alphaType()). Each 4-byte pixel will be set to
158 * If dstInfo.colorType() is kGray, colorOrIndex is always treated as an 8-bit color.
163 static void Fill(void* dstStartRow, const SkImageInfo& dstInfo, size_t dstRowBytes,
H A DSkCodec_libico.cpp228 SkCodec::Result SkIcoCodec::onGetPixels(const SkImageInfo& dstInfo, argument
237 if (dstInfo.dimensions() ==
241 result = fEmbeddedCodecs->operator[](i)->getPixels(dstInfo,
/external/skia/src/core/
H A DSkConfig8888.h18 static bool CopyPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
H A DSkConfig8888.cpp181 bool SkPixelInfo::CopyPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, argument
184 if (srcInfo.dimensions() != dstInfo.dimensions()) {
192 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) {
194 dstPI.fColorType = dstInfo.colorType();
195 dstPI.fAlphaType = dstInfo.alphaType();
210 if (srcInfo.colorType() == dstInfo.colorType()) {
218 if (srcInfo.alphaType() != dstInfo.alphaType()) {
234 if (kGray_8_SkColorType == srcInfo.colorType() && 4 == dstInfo.bytesPerPixel()) {
238 if (kGray_8_SkColorType == dstInfo.colorType() && 4 == srcInfo.bytesPerPixel()) {
244 if (kARGB_4444_SkColorType == dstInfo
[all...]
H A DSkBitmapDevice.cpp158 const SkImageInfo dstInfo = fBitmap.info().makeWH(srcInfo.width(), srcInfo.height()); local
163 if (SkPixelInfo::CopyPixels(dstInfo, dstPixels, dstRowBytes, srcInfo, srcPixels, srcRowBytes)) {
170 bool SkBitmapDevice::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, argument
172 return fBitmap.readPixels(dstInfo, dstPixels, dstRowBytes, x, y);
/external/skia/include/codec/
H A DSkCodec.h71 * @param dstInfo Info of the destination. If the dimensions do not match
75 * @param ctable A pointer to a color table. When dstInfo.colorType() is
79 * dstInfo.colorType() is kIndex8, this should be non-NULL. It will
90 SkScanlineDecoder* getScanlineDecoder(const SkImageInfo& dstInfo, const Options* options,
97 SkScanlineDecoder* getScanlineDecoder(const SkImageInfo& dstInfo);
127 * @param dstInfo Info of the destination. If the dimensions do not match
131 * @param ctable A pointer to a color table. When dstInfo.colorType() is
135 * dstInfo.colorType() is kIndex8, this should be non-NULL. It will
141 virtual SkScanlineDecoder* onGetScanlineDecoder(const SkImageInfo& dstInfo, argument
H A DSkScanlineDecoder.h80 const SkImageInfo& dstInfo() const { return fDstInfo; } function in class:SkScanlineDecoder
/external/skia/src/image/
H A DSkImage.cpp40 bool SkImage::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, argument
42 SkReadPixelsRec rec(dstInfo, dstPixels, dstRowBytes, srcX, srcY);
128 bool SkImage_Base::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, argument
130 if (!raster_canvas_supports(dstInfo)) {
135 bm.installPixels(dstInfo, dstPixels, dstRowBytes);
H A DSkImage_Base.h46 virtual bool onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
H A DSkSurface.cpp173 bool SkSurface::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, argument
175 return this->getCanvas()->readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY);
H A DSkImage_Raster.cpp125 bool SkImage_Raster::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, argument
128 return shallowCopy.readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY);
/external/skia/include/core/
H A DSkImage.h114 * converting them into the requested format (dstInfo). The image pixels are read
119 * srcR.setXYWH(srcX, srcY, dstInfo.width(), dstInfo.height());
130 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
H A DSkSurface.h206 * converting them into the requested format (dstInfo). The surface pixels are read
211 * srcR.setXYWH(srcX, srcY, dstInfo.width(), dstInfo.height());
222 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,

Completed in 220 milliseconds

12