/external/skia/fuzz/ |
D | FuzzMain.cpp | 471 SkImageInfo decodeInfo = codec->getInfo(); in fuzz_img() local 473 decodeInfo = decodeInfo.makeDimensions(size); in fuzz_img() 479 if (!bitmap.tryAllocPixelsFlags(decodeInfo, SkBitmap::kZeroPixels_AllocFlag)) { in fuzz_img() 481 decodeInfo.width(), decodeInfo.height()); in fuzz_img() 487 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), &options)) { in fuzz_img() 509 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo)) { in fuzz_img() 516 uint32_t height = decodeInfo.height(); in fuzz_img() 524 const int height = decodeInfo.height(); in fuzz_img() 531 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo) in fuzz_img() 554 const SkCodec::Result startResult = codec->startScanlineDecode(decodeInfo); in fuzz_img() [all …]
|
/external/skqp/fuzz/ |
D | FuzzMain.cpp | 413 SkImageInfo decodeInfo = codec->getInfo(); in fuzz_img() local 415 decodeInfo = decodeInfo.makeWH(size.width(), size.height()); in fuzz_img() 421 if (!bitmap.tryAllocPixelsFlags(decodeInfo, SkBitmap::kZeroPixels_AllocFlag)) { in fuzz_img() 423 decodeInfo.width(), decodeInfo.height()); in fuzz_img() 429 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), &options)) { in fuzz_img() 450 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo)) { in fuzz_img() 457 uint32_t height = decodeInfo.height(); in fuzz_img() 465 const int height = decodeInfo.height(); in fuzz_img() 472 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo) in fuzz_img() 495 const SkCodec::Result startResult = codec->startScanlineDecode(decodeInfo); in fuzz_img() [all …]
|
/external/skqp/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() 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() [all …]
|
/external/skia/dm/ |
D | DMSrcSink.cpp | 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() [all …]
|
/external/skqp/src/android/ |
D | SkAnimatedImage.cpp | 27 auto decodeInfo = codec->getInfo(); in Make() local 29 && scaledSize.width() < decodeInfo.width() in Make() 30 && scaledSize.height() < decodeInfo.height()) { in Make() 32 decodeInfo = decodeInfo.makeWH(decodeSize.width(), decodeSize.height()); in Make() 36 decodeInfo, cropRect, std::move(postProcess))); in Make() 50 const auto decodeInfo = codec->getInfo(); in Make() local 51 const auto scaledSize = decodeInfo.dimensions(); in Make() 54 decodeInfo, cropRect, nullptr)); in Make() 66 SkImageInfo decodeInfo, SkIRect cropRect, sk_sp<SkPicture> postProcess) in SkAnimatedImage() argument 69 , 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()
|
/external/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()
|
/external/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()
|
/external/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()
|
/external/skqp/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()
|
/external/skqp/tests/ |
D | CodecAnimTest.cpp | 313 auto decodeInfo = info; in DEF_TEST() local 315 decodeInfo = info.makeAlphaType(frameInfos[index].fAlphaType); in DEF_TEST() 317 bm->allocPixels(decodeInfo); in DEF_TEST() 327 const auto result = codec->getPixels(decodeInfo, bm->getPixels(), bm->rowBytes(), in DEF_TEST()
|
/external/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()
|
/external/skqp/include/android/ |
D | SkAnimatedImage.h | 145 SkImageInfo decodeInfo, SkIRect cropRect, sk_sp<SkPicture> postProcess);
|