Lines Matching refs:decodeInfo

309 bool get_decode_info(SkImageInfo* decodeInfo, SkColorType canvasColorType,  in get_decode_info()  argument
316 *decodeInfo = decodeInfo->makeColorType(kIndex_8_SkColorType); in get_decode_info()
320 kOpaque_SkAlphaType != decodeInfo->alphaType()) { in get_decode_info()
323 *decodeInfo = decodeInfo->makeColorType(kGray_8_SkColorType); in get_decode_info()
327 kOpaque_SkAlphaType != decodeInfo->alphaType()) { in get_decode_info()
330 *decodeInfo = decodeInfo->makeColorType(canvasColorType); in get_decode_info()
378 SkImageInfo decodeInfo = codec->getInfo().makeAlphaType(fDstAlphaType); in draw() local
379 if (!get_decode_info(&decodeInfo, canvas->imageInfo().colorType(), fDstColorType)) { in draw()
385 if (size == decodeInfo.dimensions() && 1.0f != fScale) { in draw()
394 decodeInfo = decodeInfo.makeWH(size.width(), size.height()); in draw()
401 if (kIndex_8_SkColorType == decodeInfo.colorType()) { in draw()
416 if (!bitmap.tryAllocPixels(decodeInfo, factory, colorTable.get())) { in draw()
418 decodeInfo.width(), decodeInfo.height()); in draw()
424 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), &options, in draw()
440 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, NULL, colorPtr, in draw()
447 uint32_t height = decodeInfo.height(); in draw()
457 for (int y = 0; y < decodeInfo.height(); y++) { in draw()
474 const int height = decodeInfo.height(); in draw()
481 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, NULL, colorPtr, in draw()
507 const SkCodec::Result startResult = codec->startScanlineDecode(decodeInfo, nullptr, in draw()
529 const int width = decodeInfo.width(); in draw()
530 const int height = decodeInfo.height(); in draw()
541 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, &opts, in draw()
588 decodeInfo = decodeInfo.makeWH( in draw()
591 size_t rowBytes = decodeInfo.minRowBytes(); in draw()
592 if (!subsetBm.installPixels(decodeInfo, pixels, rowBytes, colorTable.get(), in draw()
596 const SkCodec::Result result = codec->getPixels(decodeInfo, pixels, rowBytes, in draw()
605 x, y, decodeInfo.width(), decodeInfo.height(), in draw()
611 top += decodeInfo.height(); in draw()
614 left += decodeInfo.width(); in draw()
669 SkImageInfo decodeInfo = codec->getInfo().makeAlphaType(fDstAlphaType); in draw() local
670 if (!get_decode_info(&decodeInfo, canvas->imageInfo().colorType(), fDstColorType)) { in draw()
682 decodeInfo = decodeInfo.makeWH(size.width(), size.height()); in draw()
689 if (kIndex_8_SkColorType == decodeInfo.colorType()) { in draw()
697 if (!bitmap.tryAllocPixels(decodeInfo, nullptr, colorTable.get())) { in draw()
699 decodeInfo.width(), decodeInfo.height()); in draw()
710 switch (codec->getAndroidPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), in draw()
755 SkImageInfo subsetDecodeInfo = decodeInfo.makeWH(scaledSubsetSize.width(), in draw()