Lines Matching refs:decodeInfo
336 static bool get_decode_info(SkImageInfo* decodeInfo, SkColorType canvasColorType, in get_decode_info() argument
343 *decodeInfo = decodeInfo->makeColorType(kGray_8_SkColorType); in get_decode_info()
351 *decodeInfo = decodeInfo->makeColorType(kBGRA_8888_SkColorType); in get_decode_info()
353 *decodeInfo = decodeInfo->makeColorType(kRGBA_8888_SkColorType); in get_decode_info()
358 kOpaque_SkAlphaType != decodeInfo->alphaType()) { in get_decode_info()
362 *decodeInfo = decodeInfo->makeColorType(canvasColorType); in get_decode_info()
366 *decodeInfo = decodeInfo->makeAlphaType(dstAlphaType); in get_decode_info()
400 SkImageInfo decodeInfo = codec->getInfo(); in draw() local
401 if (!get_decode_info(&decodeInfo, canvas->imageInfo().colorType(), fDstColorType, in draw()
408 if (size == decodeInfo.dimensions() && 1.0f != fScale) { in draw()
417 decodeInfo = decodeInfo.makeWH(size.width(), size.height()); in draw()
419 const int bpp = decodeInfo.bytesPerPixel(); in draw()
421 const size_t safeSize = decodeInfo.computeByteSize(rowBytes); in draw()
430 SkImageInfo bitmapInfo = decodeInfo; in draw()
432 if (kRGBA_8888_SkColorType == decodeInfo.colorType() || in draw()
433 kBGRA_8888_SkColorType == decodeInfo.colorType()) { in draw()
465 SkCodec::Result result = codec->getPixels(decodeInfo, pixels.get(), in draw()
489 const int xTranslate = (i % factor) * decodeInfo.width(); in draw()
490 const int yTranslate = (i / factor) * decodeInfo.height(); in draw()
499 if (i > 0 && (decodeInfo.colorType() == kRGB_565_SkColorType)) { in draw()
513 switch (codec->getPixels(decodeInfo, pixels.get(), rowBytes, &options)) { in draw()
530 uint32_t height = decodeInfo.height(); in draw()
545 if (SkCodec::kSuccess == codec->startIncrementalDecode(decodeInfo, dst, in draw()
550 codec->fillIncompleteImage(decodeInfo, dst, rowBytes, in draw()
566 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo)) { in draw()
579 const int height = decodeInfo.height(); in draw()
587 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, &options)) { in draw()
612 const SkCodec::Result startResult = codec->startScanlineDecode(decodeInfo); in draw()
634 const int width = decodeInfo.width(); in draw()
635 const int height = decodeInfo.height(); in draw()
644 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo, &options)) { in draw()
690 decodeInfo = decodeInfo.makeWH(scaledW, scaledH); in draw()
693 const SkCodec::Result result = codec->getPixels(decodeInfo, dst, subsetRowBytes, in draw()
703 x, y, decodeInfo.width(), decodeInfo.height(), in draw()
710 top += decodeInfo.height(); in draw()
713 left += decodeInfo.width(); in draw()
784 SkImageInfo decodeInfo = codec->getInfo(); in draw() local
785 if (!get_decode_info(&decodeInfo, canvas->imageInfo().colorType(), fDstColorType, in draw()
798 decodeInfo = decodeInfo.makeWH(size.width(), size.height()); in draw()
800 int bpp = decodeInfo.bytesPerPixel(); in draw()
805 SkImageInfo bitmapInfo = decodeInfo; in draw()
807 if (kRGBA_8888_SkColorType == decodeInfo.colorType() || in draw()
808 kBGRA_8888_SkColorType == decodeInfo.colorType()) { in draw()
816 switch (codec->getAndroidPixels(decodeInfo, pixels.get(), rowBytes, &options)) { in draw()
919 SkImageInfo decodeInfo = gen->getInfo().makeAlphaType(fDstAlphaType); in draw() local
921 int bpp = decodeInfo.bytesPerPixel(); in draw()
922 size_t rowBytes = decodeInfo.width() * bpp; in draw()
923 SkAutoMalloc pixels(decodeInfo.height() * rowBytes); in draw()
924 if (!gen->getPixels(decodeInfo, pixels.get(), rowBytes)) { in draw()
938 set_bitmap_color_space(&decodeInfo); in draw()
939 draw_to_canvas(canvas, decodeInfo, pixels.get(), rowBytes, in draw()
1029 SkImageInfo decodeInfo = codec->getInfo().makeColorType(fColorType).makeColorSpace(dstSpace); in draw() local
1030 if (kUnpremul_SkAlphaType == decodeInfo.alphaType()) { in draw()
1031 decodeInfo = decodeInfo.makeAlphaType(kPremul_SkAlphaType); in draw()
1034 SkImageInfo bitmapInfo = decodeInfo; in draw()
1036 if (kRGBA_8888_SkColorType == decodeInfo.colorType() || in draw()
1037 kBGRA_8888_SkColorType == decodeInfo.colorType()) in draw()
1049 SkCodec::Result r = codec->getPixels(decodeInfo, bitmap.getPixels(), rowBytes); in draw()