HomeSort by relevance Sort by last modified time
    Searched refs:dstInfo (Results 1 - 25 of 35) sorted by null

1 2

  /external/skia/platform_tools/android/examples/hello_skia_app/jni/
helloskia.cpp 24 AndroidBitmapInfo dstInfo;
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/include/codec/
SkCodec.h 71 * @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,
SkScanlineDecoder.h 80 const SkImageInfo& dstInfo() const { return fDstInfo; }
  /external/skia/src/codec/
SkJpegCodec.h 52 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,
SkCodec.cpp 90 SkScanlineDecoder* SkCodec::getScanlineDecoder(const SkImageInfo& dstInfo, const Options* options,
99 fScanlineDecoder.reset(this->onGetScanlineDecoder(dstInfo, *options, ctable, ctableCount));
103 SkScanlineDecoder* SkCodec::getScanlineDecoder(const SkImageInfo& dstInfo) {
104 SkASSERT(kIndex_8_SkColorType != dstInfo.colorType());
105 if (kIndex_8_SkColorType == dstInfo.colorType()) {
108 return this->getScanlineDecoder(dstInfo, NULL, NULL, NULL);
SkCodec_libbmp.h 66 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);
SkJpegCodec.cpp 284 void SkJpegCodec::initializeSwizzler(const SkImageInfo& dstInfo,
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,
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.width() * rowsDecoded)
    [all...]
SkCodec_libico.h 41 Result onGetPixels(const SkImageInfo& dstInfo, void* dst,
SkCodec_libbmp.cpp 574 SkCodec::Result SkBmpCodec::onGetPixels(const SkImageInfo& dstInfo,
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,
747 const int width = dstInfo.width()
    [all...]
SkCodecPriv.h 38 static inline void copy_color_table(const SkImageInfo& dstInfo, SkColorTable* colorTable,
40 if (kIndex_8_SkColorType == dstInfo.colorType()) {
SkCodec_libpng.h 33 SkScanlineDecoder* onGetScanlineDecoder(const SkImageInfo& dstInfo, const Options& options,
SkCodec_libgif.cpp 240 SkCodec::Result SkGifCodec::onGetPixels(const SkImageInfo& dstInfo,
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, dstRowBytes
    [all...]
SkCodec_libpng.cpp 596 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, this))
    [all...]
SkSwizzler.cpp 458 void SkSwizzler::Fill(void* dstStartRow, const SkImageInfo& dstInfo, size_t dstRowBytes,
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++) {
SkSwizzler.h 143 * 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,
SkCodec_libico.cpp 228 SkCodec::Result SkIcoCodec::onGetPixels(const SkImageInfo& dstInfo,
237 if (dstInfo.dimensions() ==
241 result = fEmbeddedCodecs->operator[](i)->getPixels(dstInfo,
  /external/skia/src/core/
SkConfig8888.h 18 static bool CopyPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
SkConfig8888.cpp 181 bool SkPixelInfo::CopyPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB,
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.colorType() &
    [all...]
SkBitmapDevice.cpp 158 const SkImageInfo dstInfo = fBitmap.info().makeWH(srcInfo.width(), srcInfo.height());
163 if (SkPixelInfo::CopyPixels(dstInfo, dstPixels, dstRowBytes, srcInfo, srcPixels, srcRowBytes)) {
170 bool SkBitmapDevice::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
172 return fBitmap.readPixels(dstInfo, dstPixels, dstRowBytes, x, y);
  /external/skia/src/image/
SkImage.cpp 40 bool SkImage::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
42 SkReadPixelsRec rec(dstInfo, dstPixels, dstRowBytes, srcX, srcY);
128 bool SkImage_Base::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
130 if (!raster_canvas_supports(dstInfo)) {
135 bm.installPixels(dstInfo, dstPixels, dstRowBytes);
SkImage_Base.h 46 virtual bool onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
SkSurface.cpp 173 bool SkSurface::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
175 return this->getCanvas()->readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY);
SkImage_Raster.cpp 125 bool SkImage_Raster::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
128 return shallowCopy.readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY);
  /external/skia/include/core/
SkImage.h 114 * 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,
SkSurface.h 206 * 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 1201 milliseconds

1 2