/third_party/flutter/skia/fuzz/ |
D | FuzzMain.cpp | 429 SkImageInfo decodeInfo = codec->getInfo(); in fuzz_img() local 431 decodeInfo = decodeInfo.makeWH(size.width(), size.height()); in fuzz_img() 437 if (!bitmap.tryAllocPixelsFlags(decodeInfo, SkBitmap::kZeroPixels_AllocFlag)) { in fuzz_img() 439 decodeInfo.width(), decodeInfo.height()); in fuzz_img() 445 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), &options)) { in fuzz_img() 466 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo)) { in fuzz_img() 473 uint32_t height = decodeInfo.height(); in fuzz_img() 481 const int height = decodeInfo.height(); in fuzz_img() 488 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo) in fuzz_img() 511 const SkCodec::Result startResult = codec->startScanlineDecode(decodeInfo); in fuzz_img() [all …]
|
/third_party/skia/fuzz/ |
D | FuzzMain.cpp | 481 SkImageInfo decodeInfo = codec->getInfo(); in fuzz_img() local 483 decodeInfo = decodeInfo.makeDimensions(size); in fuzz_img() 489 if (!bitmap.tryAllocPixelsFlags(decodeInfo, SkBitmap::kZeroPixels_AllocFlag)) { in fuzz_img() 491 decodeInfo.width(), decodeInfo.height()); in fuzz_img() 497 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), &options)) { in fuzz_img() 519 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo)) { in fuzz_img() 526 uint32_t height = decodeInfo.height(); in fuzz_img() 534 const int height = decodeInfo.height(); in fuzz_img() 541 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo) in fuzz_img() 564 const SkCodec::Result startResult = codec->startScanlineDecode(decodeInfo); in fuzz_img() [all …]
|
/third_party/flutter/skia/dm/ |
D | DMSrcSink.cpp | 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() 399 SkImageInfo decodeInfo = codec->getInfo(); in draw() local 400 if (!get_decode_info(&decodeInfo, canvas->imageInfo().colorType(), fDstColorType, in draw() 407 if (size == decodeInfo.dimensions() && 1.0f != fScale) { in draw() [all …]
|
/third_party/flutter/skia/src/android/ |
D | SkAnimatedImage.cpp | 37 auto decodeInfo = requestedInfo; in Make() local 39 || scaledSize.width() >= decodeInfo.width() in Make() 40 || scaledSize.height() >= decodeInfo.height()) { in Make() 43 decodeInfo = decodeInfo.makeWH(dims.width(), dims.height()); in Make() 47 decodeInfo, cropRect, std::move(postProcess))); in Make() 61 const auto decodeInfo = codec->getInfo(); in Make() local 62 const auto scaledSize = decodeInfo.dimensions(); in Make() 65 decodeInfo, cropRect, nullptr)); in Make() 77 SkImageInfo decodeInfo, SkIRect cropRect, sk_sp<SkPicture> postProcess) in SkAnimatedImage() argument 80 , fDecodeInfo(decodeInfo) in SkAnimatedImage()
|
D | SkBitmapRegionCodec.cpp | 53 SkImageInfo decodeInfo = SkImageInfo::Make(scaledSize.width(), scaledSize.height(), in decodeRegion() local 72 SkImageInfo outInfo = decodeInfo.makeWH(scaledOutWidth, scaledOutHeight); in decodeRegion() 106 SkCodec::Result result = fCodec->getAndroidPixels(decodeInfo, dst, bitmap->rowBytes(), in decodeRegion()
|
/third_party/skia/dm/ |
D | DMSrcSink.cpp | 381 static bool get_decode_info(SkImageInfo* decodeInfo, SkColorType canvasColorType, in get_decode_info() argument 388 *decodeInfo = decodeInfo->makeColorType(kGray_8_SkColorType); in get_decode_info() 396 *decodeInfo = decodeInfo->makeColorType(kBGRA_8888_SkColorType); in get_decode_info() 398 *decodeInfo = decodeInfo->makeColorType(kRGBA_8888_SkColorType); in get_decode_info() 403 kOpaque_SkAlphaType != decodeInfo->alphaType()) { in get_decode_info() 407 *decodeInfo = decodeInfo->makeColorType(canvasColorType); in get_decode_info() 411 *decodeInfo = decodeInfo->makeAlphaType(dstAlphaType); in get_decode_info() 444 SkImageInfo decodeInfo = codec->getInfo(); in draw() local 445 if (!get_decode_info(&decodeInfo, canvas->imageInfo().colorType(), fDstColorType, in draw() 459 if (size == decodeInfo.dimensions() && 1.0f != fScale) { in draw() [all …]
|
/third_party/skia/src/android/ |
D | SkAnimatedImage.cpp | 47 auto decodeInfo = codec->getInfo(); in Make() local 50 decodeInfo = decodeInfo.makeWH(decodeInfo.height(), decodeInfo.width()); in Make() 52 const auto cropRect = SkIRect::MakeSize(decodeInfo.dimensions()); in Make() 53 return Make(std::move(codec), decodeInfo, cropRect, nullptr); in Make()
|
/third_party/skia/client_utils/android/ |
D | BitmapRegionDecoder.cpp | 83 SkImageInfo decodeInfo = in decodeRegion() local 102 SkImageInfo outInfo = decodeInfo.makeWH(scaledOutWidth, scaledOutHeight); in decodeRegion() 136 SkCodec::Result result = fCodec->getAndroidPixels(decodeInfo, dst, bitmap->rowBytes(), in decodeRegion()
|
/third_party/flutter/skia/src/codec/ |
D | SkBmpRLECodec.cpp | 306 SkImageInfo decodeInfo = dstInfo; in decodeRows() local 309 decodeInfo = decodeInfo.makeColorType(kXformSrcColorType); in decodeRows() 320 int decodedHeight = this->decodeRLE(decodeInfo, decodeDst, decodeRowBytes); in decodeRows()
|
/third_party/skia/src/codec/ |
D | SkBmpRLECodec.cpp | 309 SkImageInfo decodeInfo = dstInfo; in decodeRows() local 312 decodeInfo = decodeInfo.makeColorType(kXformSrcColorType); in decodeRows() 323 int decodedHeight = this->decodeRLE(decodeInfo, decodeDst, decodeRowBytes); in decodeRows()
|
/third_party/flutter/skia/tests/ |
D | CodecAnimTest.cpp | 317 auto decodeInfo = info; in DEF_TEST() local 319 decodeInfo = info.makeAlphaType(frameInfos[index].fAlphaType); in DEF_TEST() 321 bm->allocPixels(decodeInfo); in DEF_TEST() 331 const auto result = codec->getPixels(decodeInfo, bm->getPixels(), bm->rowBytes(), in DEF_TEST()
|
/third_party/skia/tests/ |
D | CodecAnimTest.cpp | 405 auto decodeInfo = info; in DEF_TEST() local 407 decodeInfo = info.makeAlphaType(frameInfos[index].fAlphaType); in DEF_TEST() 409 bm->allocPixels(decodeInfo); in DEF_TEST() 419 const auto result = codec->getPixels(decodeInfo, bm->getPixels(), bm->rowBytes(), in DEF_TEST()
|
/third_party/flutter/skia/include/android/ |
D | SkAnimatedImage.h | 158 SkImageInfo decodeInfo, SkIRect cropRect, sk_sp<SkPicture> postProcess);
|