Home
last modified time | relevance | path

Searched refs:dstInfo (Results 1 – 25 of 53) sorted by relevance

123

/external/skia/src/codec/
DSkBmpStandardCodec.cpp37 SkCodec::Result SkBmpStandardCodec::onGetPixels(const SkImageInfo& dstInfo, in onGetPixels() argument
47 if (dstInfo.dimensions() != this->getInfo().dimensions()) { in onGetPixels()
51 if (!conversion_possible(dstInfo, this->getInfo())) { in onGetPixels()
56 Result result = this->prepareToDecode(dstInfo, opts, inputColorPtr, inputColorCount); in onGetPixels()
60 int rows = this->decodeRows(dstInfo, dst, dstRowBytes, opts); in onGetPixels()
61 if (rows != dstInfo.height()) { in onGetPixels()
155 void SkBmpStandardCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& opts) { in initializeSwizzler() argument
189 fSwizzler.reset(SkSwizzler::CreateSwizzler(config, colorPtr, dstInfo, opts)); in initializeSwizzler()
193 SkCodec::Result SkBmpStandardCodec::prepareToDecode(const SkImageInfo& dstInfo, in prepareToDecode() argument
197 if (!this->createColorTable(dstInfo.alphaType(), inputColorCount)) { in prepareToDecode()
[all …]
DSkBmpRLECodec.cpp37 SkCodec::Result SkBmpRLECodec::onGetPixels(const SkImageInfo& dstInfo, in onGetPixels() argument
47 if (!conversion_possible(dstInfo, this->getInfo())) { in onGetPixels()
52 Result result = this->prepareToDecode(dstInfo, opts, inputColorPtr, inputColorCount); in onGetPixels()
58 int rows = this->decodeRows(dstInfo, dst, dstRowBytes, opts); in onGetPixels()
59 if (rows != dstInfo.height()) { in onGetPixels()
63 *rowsDecoded = dstInfo.height(); in onGetPixels()
202 const SkImageInfo& dstInfo, uint32_t x, uint32_t y, in setPixel() argument
204 if (dst && is_coord_necessary(x, fSampleX, dstInfo.width())) { in setPixel()
206 uint32_t row = this->getDstRow(y, dstInfo.height()); in setPixel()
210 switch (dstInfo.colorType()) { in setPixel()
[all …]
DSkBmpMaskCodec.cpp27 SkCodec::Result SkBmpMaskCodec::onGetPixels(const SkImageInfo& dstInfo, in onGetPixels() argument
37 if (dstInfo.dimensions() != this->getInfo().dimensions()) { in onGetPixels()
42 if (!conversion_possible(dstInfo, this->getInfo())) { in onGetPixels()
47 Result result = this->prepareToDecode(dstInfo, opts, inputColorPtr, inputColorCount); in onGetPixels()
52 int rows = this->decodeRows(dstInfo, dst, dstRowBytes, opts); in onGetPixels()
53 if (rows != dstInfo.height()) { in onGetPixels()
60 SkCodec::Result SkBmpMaskCodec::prepareToDecode(const SkImageInfo& dstInfo, in prepareToDecode() argument
63 fMaskSwizzler.reset(SkMaskSwizzler::CreateMaskSwizzler(dstInfo, this->getInfo(), fMasks, in prepareToDecode()
73 int SkBmpMaskCodec::decodeRows(const SkImageInfo& dstInfo, in decodeRows() argument
78 const int height = dstInfo.height(); in decodeRows()
DSkGifCodec.cpp390 void SkGifCodec::initializeColorTable(const SkImageInfo& dstInfo, SkPMColor* inputColorPtr, argument
448 copy_color_table(dstInfo, this->fColorTable, inputColorPtr, inputColorCount);
451 SkCodec::Result SkGifCodec::prepareToDecode(const SkImageInfo& dstInfo, SkPMColor* inputColorPtr, argument
454 if (!conversion_possible(dstInfo, this->getInfo())) {
460 this->initializeColorTable(dstInfo, inputColorPtr, inputColorCount);
462 this->initializeSwizzler(dstInfo, opts);
466 void SkGifCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& opts) { argument
469 fSwizzler.reset(SkSwizzler::CreateSwizzler(SkSwizzler::kIndex, colorPtr, dstInfo, opts,
481 SkCodec::Result SkGifCodec::onGetPixels(const SkImageInfo& dstInfo, argument
487 Result result = this->prepareToDecode(dstInfo, inputColorPtr, inputColorCount, opts);
[all …]
DSkBmpStandardCodec.h47 Result onGetPixels(const SkImageInfo& dstInfo, void* dst,
55 SkCodec::Result prepareToDecode(const SkImageInfo& dstInfo,
75 void initializeSwizzler(const SkImageInfo& dstInfo, const Options& opts);
77 int decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes,
85 void decodeIcoMask(SkStream* stream, const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes);
DSkBmpRLECodec.h47 Result onGetPixels(const SkImageInfo& dstInfo, void* dst,
51 SkCodec::Result prepareToDecode(const SkImageInfo& dstInfo,
78 const SkImageInfo& dstInfo, uint32_t x, uint32_t y,
84 const SkImageInfo& dstInfo, uint32_t x, uint32_t y,
90 int decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes,
DSkCodec.cpp226 SkCodec::Result SkCodec::startScanlineDecode(const SkImageInfo& dstInfo, in startScanlineDecode() argument
231 if (kIndex_8_SkColorType == dstInfo.colorType()) { in startScanlineDecode()
252 SkIRect size = SkIRect::MakeSize(dstInfo.dimensions()); in startScanlineDecode()
259 if (options->fSubset->top() != 0 || options->fSubset->height() != dstInfo.height()) { in startScanlineDecode()
265 if (!this->dimensionsSupported(dstInfo.dimensions())) { in startScanlineDecode()
269 const Result result = this->onStartScanlineDecode(dstInfo, *options, ctable, ctableCount); in startScanlineDecode()
275 fDstInfo = dstInfo; in startScanlineDecode()
280 SkCodec::Result SkCodec::startScanlineDecode(const SkImageInfo& dstInfo) { in startScanlineDecode() argument
281 return this->startScanlineDecode(dstInfo, nullptr, nullptr, nullptr); in startScanlineDecode()
296 this->fillIncompleteImage(this->dstInfo(), dst, rowBytes, this->options().fZeroInitialized, in getScanlines()
DSkWbmpCodec.cpp191 SkCodec::Result SkWbmpCodec::onStartScanlineDecode(const SkImageInfo& dstInfo, in onStartScanlineDecode() argument
198 if (!valid_color_type(dstInfo.colorType(), dstInfo.alphaType()) || in onStartScanlineDecode()
199 !valid_alpha(dstInfo.alphaType(), this->getInfo().alphaType())) { in onStartScanlineDecode()
204 setup_color_table(dstInfo.colorType(), inputColorTable, inputColorCount); in onStartScanlineDecode()
207 if (kIndex_8_SkColorType == dstInfo.colorType()) { in onStartScanlineDecode()
212 fSwizzler.reset(this->initializeSwizzler(dstInfo, get_color_ptr(fColorTable.get()), options)); in onStartScanlineDecode()
DSkJpegCodec.cpp276 SkCodec::Result SkJpegCodec::onGetPixels(const SkImageInfo& dstInfo, in onGetPixels() argument
294 if (!this->setOutputColorSpace(dstInfo)) { in onGetPixels()
309 this->initializeSwizzler(dstInfo, options); in onGetPixels()
313 uint32_t dstHeight = dstInfo.height(); in onGetPixels()
348 void SkJpegCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& options) { in initializeSwizzler() argument
355 switch (dstInfo.colorType()) { in initializeSwizzler()
384 fSwizzler.reset(SkSwizzler::CreateSwizzler(srcConfig, nullptr, dstInfo, swizzlerOptions)); in initializeSwizzler()
396 this->initializeSwizzler(this->dstInfo(), this->options()); in getSampler()
400 SkCodec::Result SkJpegCodec::onStartScanlineDecode(const SkImageInfo& dstInfo, in onStartScanlineDecode() argument
409 if (!this->setOutputColorSpace(dstInfo)) { in onStartScanlineDecode()
[all …]
DSkGifCodec.h113 void initializeColorTable(const SkImageInfo& dstInfo, SkPMColor* colorPtr,
120 Result prepareToDecode(const SkImageInfo& dstInfo, SkPMColor* inputColorPtr,
132 void initializeSwizzler(const SkImageInfo& dstInfo,
145 Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& opts,
DSkIcoCodec.cpp236 SkCodec::Result SkIcoCodec::onGetPixels(const SkImageInfo& dstInfo, in onGetPixels() argument
248 index = this->chooseCodec(dstInfo.dimensions(), index); in onGetPixels()
254 result = embeddedCodec->getPixels(dstInfo, dst, dstRowBytes, &opts, colorTable, in onGetPixels()
262 *rowsDecoded = dstInfo.height(); in onGetPixels()
276 SkCodec::Result SkIcoCodec::onStartScanlineDecode(const SkImageInfo& dstInfo, in onStartScanlineDecode() argument
281 index = this->chooseCodec(dstInfo.dimensions(), index); in onStartScanlineDecode()
287 result = embeddedCodec->startScanlineDecode(dstInfo, &options, colorTable, colorCount); in onStartScanlineDecode()
DSkBmpMaskCodec.h37 Result onGetPixels(const SkImageInfo& dstInfo, void* dst,
41 SkCodec::Result prepareToDecode(const SkImageInfo& dstInfo,
52 int decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes,
DSkWebpCodec.cpp160 SkCodec::Result SkWebpCodec::onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, in onGetPixels() argument
163 if (!webp_conversion_possible(dstInfo, this->getInfo())) { in onGetPixels()
213 SkISize dstDimensions = dstInfo.dimensions(); in onGetPixels()
221 config.output.colorspace = webp_decode_mode(dstInfo.colorType(), in onGetPixels()
222 dstInfo.alphaType() == kPremul_SkAlphaType); in onGetPixels()
225 config.output.u.RGBA.size = dstInfo.getSafeSize(rowBytes); in onGetPixels()
DSkSwizzler.cpp666 const SkImageInfo& dstInfo, in CreateSwizzler() argument
669 if (dstInfo.colorType() == kUnknown_SkColorType || kUnknown == sc) { in CreateSwizzler()
681 switch (dstInfo.colorType()) { in CreateSwizzler()
701 switch (dstInfo.colorType()) { in CreateSwizzler()
716 switch (dstInfo.colorType()) { in CreateSwizzler()
739 switch (dstInfo.colorType()) { in CreateSwizzler()
756 switch (dstInfo.colorType()) { in CreateSwizzler()
758 if (dstInfo.alphaType() == kUnpremul_SkAlphaType) { in CreateSwizzler()
785 switch (dstInfo.colorType()) { in CreateSwizzler()
797 switch (dstInfo.colorType()) { in CreateSwizzler()
[all …]
DSkBmpCodec.h101 virtual SkCodec::Result prepareToDecode(const SkImageInfo& dstInfo,
128 virtual int decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes,
133 Result onStartScanlineDecode(const SkImageInfo& dstInfo, const SkCodec::Options&,
DSkJpegCodec.h45 Result onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options&,
103 void initializeSwizzler(const SkImageInfo& dstInfo, const Options& options);
105 Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& options,
DSkMaskSwizzler.cpp228 SkMaskSwizzler* SkMaskSwizzler::CreateMaskSwizzler(const SkImageInfo& dstInfo, in CreateMaskSwizzler() argument
236 switch (dstInfo.colorType()) { in CreateMaskSwizzler()
241 switch (dstInfo.alphaType()) { in CreateMaskSwizzler()
261 switch (dstInfo.colorType()) { in CreateMaskSwizzler()
266 switch (dstInfo.alphaType()) { in CreateMaskSwizzler()
286 switch (dstInfo.colorType()) { in CreateMaskSwizzler()
291 switch (dstInfo.alphaType()) { in CreateMaskSwizzler()
316 int srcWidth = dstInfo.width(); in CreateMaskSwizzler()
DSkIcoCodec.h39 Result onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options&,
50 Result onStartScanlineDecode(const SkImageInfo& dstInfo, const SkCodec::Options& options,
/external/skia/src/core/
DSkConfig8888.cpp170 bool SkPixelInfo::CopyPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in CopyPixels() argument
173 if (srcInfo.dimensions() != dstInfo.dimensions()) { in CopyPixels()
181 if ((srcInfo == dstInfo) && !ctable) { in CopyPixels()
192 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) { in CopyPixels()
194 dstPI.fColorType = dstInfo.colorType(); in CopyPixels()
195 dstPI.fAlphaType = dstInfo.alphaType(); in CopyPixels()
210 if (srcInfo.colorType() == dstInfo.colorType()) { in CopyPixels()
218 if (srcInfo.alphaType() != dstInfo.alphaType()) { in CopyPixels()
234 if (kGray_8_SkColorType == srcInfo.colorType() && 4 == dstInfo.bytesPerPixel()) { in CopyPixels()
238 if (kGray_8_SkColorType == dstInfo.colorType() && 4 == srcInfo.bytesPerPixel()) { in CopyPixels()
[all …]
DSkPixmap.cpp94 const SkImageInfo dstInfo = requestedDstInfo.makeWH(srcR.width(), srcR.height()); in readPixels() local
104 dstPixels = ((char*)dstPixels - y * dstRB - x * dstInfo.bytesPerPixel()); in readPixels()
106 const SkImageInfo srcInfo = this->info().makeWH(dstInfo.width(), dstInfo.height()); in readPixels()
108 return SkPixelInfo::CopyPixels(dstInfo, dstPixels, dstRB, in readPixels()
/external/skia/platform_tools/android/examples/hello_skia_app/jni/
Dhelloskia.cpp24 AndroidBitmapInfo dstInfo; in Java_com_example_HelloSkiaActivity_drawIntoBitmap() local
26 AndroidBitmap_getInfo(env, dstBitmap, &dstInfo); in Java_com_example_HelloSkiaActivity_drawIntoBitmap()
29 SkImageInfo info = SkImageInfo::MakeN32Premul(dstInfo.width, dstInfo.height); in Java_com_example_HelloSkiaActivity_drawIntoBitmap()
32 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterDirect(info, dstPixels, dstInfo.stride)); in Java_com_example_HelloSkiaActivity_drawIntoBitmap()
/external/skia/src/image/
DSkImage_Generator.cpp42 bool SkImage_Generator::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in onReadPixels() argument
47 return bm.readPixels(dstInfo, dstPixels, dstRB, srcX, srcY); in onReadPixels()
52 if (fCache->directGeneratePixels(dstInfo, dstPixels, dstRB, srcX, srcY)) { in onReadPixels()
60 return bm.readPixels(dstInfo, dstPixels, dstRB, srcX, srcY); in onReadPixels()
DSkImage.cpp51 bool SkImage::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in readPixels() argument
53 SkReadPixelsRec rec(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in readPixels()
225 bool SkImage_Base::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in onReadPixels() argument
227 if (!raster_canvas_supports(dstInfo)) { in onReadPixels()
232 bm.installPixels(dstInfo, dstPixels, dstRowBytes); in onReadPixels()
/external/skia/include/codec/
DSkCodec.h370 Result startScanlineDecode(const SkImageInfo& dstInfo, const SkCodec::Options* options,
377 Result startScanlineDecode(const SkImageInfo& dstInfo);
618 const SkImageInfo& dstInfo() const { return fDstInfo; } in dstInfo() function
678 void fillIncompleteImage(const SkImageInfo& dstInfo, void* dst, size_t rowBytes,
/external/skia/src/android/
DSkBitmapRegionCanvas.cpp93 SkImageInfo dstInfo = decodeInfo.makeWH(outWidth, outHeight); in decodeRegion() local
94 bitmap->setInfo(dstInfo, dstInfo.minRowBytes()); in decodeRegion()

123