Home
last modified time | relevance | path

Searched refs:decodeInfo (Results 1 – 14 of 14) sorted by relevance

/external/skqp/fuzz/
DFuzzMain.cpp413 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/skia/fuzz/
DFuzzMain.cpp437 SkImageInfo decodeInfo = codec->getInfo(); in fuzz_img() local
439 decodeInfo = decodeInfo.makeDimensions(size); in fuzz_img()
445 if (!bitmap.tryAllocPixelsFlags(decodeInfo, SkBitmap::kZeroPixels_AllocFlag)) { in fuzz_img()
447 decodeInfo.width(), decodeInfo.height()); in fuzz_img()
453 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), &options)) { in fuzz_img()
474 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo)) { in fuzz_img()
481 uint32_t height = decodeInfo.height(); in fuzz_img()
489 const int height = decodeInfo.height(); in fuzz_img()
496 if (SkCodec::kSuccess != codec->startScanlineDecode(decodeInfo) in fuzz_img()
519 const SkCodec::Result startResult = codec->startScanlineDecode(decodeInfo); in fuzz_img()
[all …]
/external/skqp/dm/
DDMSrcSink.cpp336 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/skqp/src/android/
DSkAnimatedImage.cpp27 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()
DSkBitmapRegionCodec.cpp53 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/dm/
DDMSrcSink.cpp344 static bool get_decode_info(SkImageInfo* decodeInfo, SkColorType canvasColorType, in get_decode_info() argument
351 *decodeInfo = decodeInfo->makeColorType(kGray_8_SkColorType); in get_decode_info()
359 *decodeInfo = decodeInfo->makeColorType(kBGRA_8888_SkColorType); in get_decode_info()
361 *decodeInfo = decodeInfo->makeColorType(kRGBA_8888_SkColorType); in get_decode_info()
366 kOpaque_SkAlphaType != decodeInfo->alphaType()) { in get_decode_info()
370 *decodeInfo = decodeInfo->makeColorType(canvasColorType); in get_decode_info()
374 *decodeInfo = decodeInfo->makeAlphaType(dstAlphaType); in get_decode_info()
407 SkImageInfo decodeInfo = codec->getInfo(); in draw() local
408 if (!get_decode_info(&decodeInfo, canvas->imageInfo().colorType(), fDstColorType, in draw()
415 if (size == decodeInfo.dimensions() && 1.0f != fScale) { in draw()
[all …]
/external/skia/src/android/
DSkAnimatedImage.cpp37 auto decodeInfo = requestedInfo; in Make() local
39 || scaledSize.width() >= decodeInfo.width() in Make()
40 || scaledSize.height() >= decodeInfo.height()) { in Make()
43 decodeInfo = decodeInfo.makeDimensions(dims); 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()
DSkBitmapRegionCodec.cpp53 SkImageInfo decodeInfo = 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/skqp/src/codec/
DSkBmpRLECodec.cpp306 SkImageInfo decodeInfo = dstInfo; in decodeRows() local
309 decodeInfo = decodeInfo.makeColorType(kXformSrcColorType); in decodeRows()
320 int decodedHeight = this->decodeRLE(decodeInfo, decodeDst, decodeRowBytes); in decodeRows()
/external/skia/src/codec/
DSkBmpRLECodec.cpp306 SkImageInfo decodeInfo = dstInfo; in decodeRows() local
309 decodeInfo = decodeInfo.makeColorType(kXformSrcColorType); in decodeRows()
320 int decodedHeight = this->decodeRLE(decodeInfo, decodeDst, decodeRowBytes); in decodeRows()
/external/skia/tests/
DCodecAnimTest.cpp325 auto decodeInfo = info; in DEF_TEST() local
327 decodeInfo = info.makeAlphaType(frameInfos[index].fAlphaType); in DEF_TEST()
329 bm->allocPixels(decodeInfo); in DEF_TEST()
339 const auto result = codec->getPixels(decodeInfo, bm->getPixels(), bm->rowBytes(), in DEF_TEST()
/external/skqp/tests/
DCodecAnimTest.cpp313 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/skqp/include/android/
DSkAnimatedImage.h145 SkImageInfo decodeInfo, SkIRect cropRect, sk_sp<SkPicture> postProcess);
/external/skia/include/android/
DSkAnimatedImage.h176 SkImageInfo decodeInfo, SkIRect cropRect, sk_sp<SkPicture> postProcess);