Lines Matching refs:decodeInfo
381 static bool get_decode_info(SkImageInfo* decodeInfo, SkColorType canvasColorType,
388 *decodeInfo = decodeInfo->makeColorType(kGray_8_SkColorType);
396 *decodeInfo = decodeInfo->makeColorType(kBGRA_8888_SkColorType);
398 *decodeInfo = decodeInfo->makeColorType(kRGBA_8888_SkColorType);
403 kOpaque_SkAlphaType != decodeInfo->alphaType()) {
407 *decodeInfo = decodeInfo->makeColorType(canvasColorType);
411 *decodeInfo = decodeInfo->makeAlphaType(dstAlphaType);
444 SkImageInfo decodeInfo = codec->getInfo();
445 if (!get_decode_info(&decodeInfo, canvas->imageInfo().colorType(), fDstColorType,
459 if (size == decodeInfo.dimensions() && 1.0f != fScale) {
468 decodeInfo = decodeInfo.makeDimensions(size);
470 const int bpp = decodeInfo.bytesPerPixel();
472 const size_t safeSize = decodeInfo.computeByteSize(rowBytes);
481 SkImageInfo bitmapInfo = decodeInfo;
483 if (kRGBA_8888_SkColorType == decodeInfo.colorType() ||
484 kBGRA_8888_SkColorType == decodeInfo.colorType()) {
495 decodeInfo = decodeInfo.makeDimensions(dims);
526 ? androidCodec->getAndroidPixels(decodeInfo, pixels.get(), rowBytes,
528 : codec->getPixels(decodeInfo, pixels.get(), rowBytes, &androidOptions);
551 const int xTranslate = (i % factor) * decodeInfo.width();
552 const int yTranslate = (i / factor) * decodeInfo.height();
561 if (i > 0 && (decodeInfo.colorType() == kRGB_565_SkColorType)) {
575 switch (codec->getPixels(decodeInfo, pixels.get(), rowBytes, &options)) {
592 uint32_t height = decodeInfo.height();
607 if (SkCodec::kSuccess == codec->startIncrementalDecode(decodeInfo, dst,
612 codec->fillIncompleteImage(decodeInfo, dst, rowBytes,
628 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo)) {
641 const int height = decodeInfo.height();
649 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, &options)) {
674 const SkCodec::Result startResult = codec->startScanlineDecode(decodeInfo);
696 const int width = decodeInfo.width();
697 const int height = decodeInfo.height();
706 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, &options)) {
738 // where the last one ended. So we'll add decodeInfo.width() and height().
752 decodeInfo = decodeInfo.makeWH(scaledW, scaledH);
755 const SkCodec::Result result = codec->getPixels(decodeInfo, dst, subsetRowBytes,
765 x, y, decodeInfo.width(), decodeInfo.height(),
772 top += decodeInfo.height();
775 left += decodeInfo.width();
849 SkImageInfo decodeInfo = codec->getInfo();
850 if (!get_decode_info(&decodeInfo, canvas->imageInfo().colorType(), fDstColorType,
863 decodeInfo = decodeInfo.makeDimensions(size);
865 int bpp = decodeInfo.bytesPerPixel();
870 SkImageInfo bitmapInfo = decodeInfo;
872 if (kRGBA_8888_SkColorType == decodeInfo.colorType() ||
873 kBGRA_8888_SkColorType == decodeInfo.colorType()) {
881 switch (codec->getAndroidPixels(decodeInfo, pixels.get(), rowBytes, &options)) {
986 SkImageInfo decodeInfo = gen->getInfo().makeAlphaType(fDstAlphaType);
988 int bpp = decodeInfo.bytesPerPixel();
989 size_t rowBytes = decodeInfo.width() * bpp;
990 SkAutoMalloc pixels(decodeInfo.height() * rowBytes);
991 if (!gen->getPixels(decodeInfo, pixels.get(), rowBytes)) {
1002 set_bitmap_color_space(&decodeInfo);
1003 draw_to_canvas(canvas, decodeInfo, pixels.get(), rowBytes,