Lines Matching refs:decodeInfo
369 static bool get_decode_info(SkImageInfo* decodeInfo, SkColorType canvasColorType, in get_decode_info() argument
376 *decodeInfo = decodeInfo->makeColorType(kGray_8_SkColorType); in get_decode_info()
384 *decodeInfo = decodeInfo->makeColorType(kBGRA_8888_SkColorType); in get_decode_info()
386 *decodeInfo = decodeInfo->makeColorType(kRGBA_8888_SkColorType); in get_decode_info()
391 kOpaque_SkAlphaType != decodeInfo->alphaType()) { in get_decode_info()
395 *decodeInfo = decodeInfo->makeColorType(canvasColorType); in get_decode_info()
399 *decodeInfo = decodeInfo->makeAlphaType(dstAlphaType); in get_decode_info()
432 SkImageInfo decodeInfo = codec->getInfo(); in draw() local
433 if (!get_decode_info(&decodeInfo, canvas->imageInfo().colorType(), fDstColorType, in draw()
447 if (size == decodeInfo.dimensions() && 1.0f != fScale) { in draw()
456 decodeInfo = decodeInfo.makeDimensions(size); in draw()
458 const int bpp = decodeInfo.bytesPerPixel(); in draw()
460 const size_t safeSize = decodeInfo.computeByteSize(rowBytes); in draw()
469 SkImageInfo bitmapInfo = decodeInfo; in draw()
471 if (kRGBA_8888_SkColorType == decodeInfo.colorType() || in draw()
472 kBGRA_8888_SkColorType == decodeInfo.colorType()) { in draw()
483 decodeInfo = decodeInfo.makeDimensions(dims); in draw()
514 ? androidCodec->getAndroidPixels(decodeInfo, pixels.get(), rowBytes, in draw()
516 : codec->getPixels(decodeInfo, pixels.get(), rowBytes, &androidOptions); in draw()
539 const int xTranslate = (i % factor) * decodeInfo.width(); in draw()
540 const int yTranslate = (i / factor) * decodeInfo.height(); in draw()
549 if (i > 0 && (decodeInfo.colorType() == kRGB_565_SkColorType)) { in draw()
563 switch (codec->getPixels(decodeInfo, pixels.get(), rowBytes, &options)) { in draw()
580 uint32_t height = decodeInfo.height(); in draw()
595 if (SkCodec::kSuccess == codec->startIncrementalDecode(decodeInfo, dst, in draw()
600 codec->fillIncompleteImage(decodeInfo, dst, rowBytes, in draw()
616 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo)) { in draw()
629 const int height = decodeInfo.height(); in draw()
637 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, &options)) { in draw()
662 const SkCodec::Result startResult = codec->startScanlineDecode(decodeInfo); in draw()
684 const int width = decodeInfo.width(); in draw()
685 const int height = decodeInfo.height(); in draw()
694 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, &options)) { in draw()
740 decodeInfo = decodeInfo.makeWH(scaledW, scaledH); in draw()
743 const SkCodec::Result result = codec->getPixels(decodeInfo, dst, subsetRowBytes, in draw()
753 x, y, decodeInfo.width(), decodeInfo.height(), in draw()
760 top += decodeInfo.height(); in draw()
763 left += decodeInfo.width(); in draw()
837 SkImageInfo decodeInfo = codec->getInfo(); in draw() local
838 if (!get_decode_info(&decodeInfo, canvas->imageInfo().colorType(), fDstColorType, in draw()
851 decodeInfo = decodeInfo.makeDimensions(size); in draw()
853 int bpp = decodeInfo.bytesPerPixel(); in draw()
858 SkImageInfo bitmapInfo = decodeInfo; in draw()
860 if (kRGBA_8888_SkColorType == decodeInfo.colorType() || in draw()
861 kBGRA_8888_SkColorType == decodeInfo.colorType()) { in draw()
869 switch (codec->getAndroidPixels(decodeInfo, pixels.get(), rowBytes, &options)) { in draw()
974 SkImageInfo decodeInfo = gen->getInfo().makeAlphaType(fDstAlphaType); in draw() local
976 int bpp = decodeInfo.bytesPerPixel(); in draw()
977 size_t rowBytes = decodeInfo.width() * bpp; in draw()
978 SkAutoMalloc pixels(decodeInfo.height() * rowBytes); in draw()
979 if (!gen->getPixels(decodeInfo, pixels.get(), rowBytes)) { in draw()
990 set_bitmap_color_space(&decodeInfo); in draw()
991 draw_to_canvas(canvas, decodeInfo, pixels.get(), rowBytes, in draw()