/third_party/skia/fuzz/oss_fuzz/ |
H A D | FuzzIncrementalImage.cpp | 31 int rowsDecoded; in FuzzIncrementalImageDecode() local 32 result = codec->incrementalDecode(&rowsDecoded); in FuzzIncrementalImageDecode() 36 if (rowsDecoded < bm.height()) { in FuzzIncrementalImageDecode() 37 void* dst = SkTAddOffset<void>(bm.getPixels(), rowsDecoded * bm.rowBytes()); in FuzzIncrementalImageDecode() 38 sk_bzero(dst, (bm.height() - rowsDecoded) * bm.rowBytes()); in FuzzIncrementalImageDecode()
|
/third_party/skia/src/codec/ |
H A D | SkPngCodec.cpp | 532 Result decodeAllRows(void* dst, size_t rowBytes, int* rowsDecoded) override { 547 if (rowsDecoded) { 548 *rowsDecoded = fRowsWrittenToOutput; 571 Result decode(int* rowsDecoded) override { 582 if (rowsDecoded) { 583 *rowsDecoded = fRowsWrittenToOutput; 678 Result decodeAllRows(void* dst, size_t rowBytes, int* rowsDecoded) override { 700 if (rowsDecoded) { 701 *rowsDecoded = fLinesDecoded; 718 Result decode(int* rowsDecoded) overrid 1158 onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, const Options& options, int* rowsDecoded) onGetPixels() argument 1196 onIncrementalDecode(int* rowsDecoded) onIncrementalDecode() argument [all...] |
H A D | SkSampledCodec.cpp | 114 int rowsDecoded = 0; in onGetAndroidPixels() local 115 const SkCodec::Result incResult = this->codec()->incrementalDecode(&rowsDecoded); in onGetAndroidPixels() 123 options.fZeroInitialized, scaledSubsetHeight, rowsDecoded); in onGetAndroidPixels() 239 int rowsDecoded = 0; in sampledDecode() local 240 const SkCodec::Result incResult = this->codec()->incrementalDecode(&rowsDecoded); in sampledDecode() 246 SkASSERT(rowsDecoded <= info.height()); in sampledDecode() 248 info.height(), rowsDecoded); in sampledDecode()
|
H A D | SkWebpCodec.cpp | 488 int rowsDecoded = 0; in onGetPixels() local 492 rowsDecoded = scaledHeight; in onGetPixels() 496 if (!WebPIDecGetRGB(idec, &rowsDecoded, nullptr, nullptr, nullptr) in onGetPixels() 497 || rowsDecoded <= 0) { in onGetPixels() 500 *rowsDecodedPtr = rowsDecoded + dstY; in onGetPixels() 525 for (int y = 0; y < rowsDecoded; y++) { in onGetPixels() 539 for (int y = 0; y < rowsDecoded; y++) { in onGetPixels()
|
H A D | SkIcoCodec.cpp | 297 int* rowsDecoded) { in onGetPixels() 318 *rowsDecoded = dstInfo.height(); in onGetPixels() 410 SkCodec::Result SkIcoCodec::onIncrementalDecode(int* rowsDecoded) { in onIncrementalDecode() argument 412 return fCurrCodec->incrementalDecode(rowsDecoded); in onIncrementalDecode() 294 onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options& opts, int* rowsDecoded) onGetPixels() argument
|
H A D | SkBmpMaskCodec.cpp | 30 int* rowsDecoded) { in onGetPixels() 47 *rowsDecoded = rows; in onGetPixels() 27 onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options& opts, int* rowsDecoded) onGetPixels() argument
|
H A D | SkPngCodec.h | 109 virtual Result decodeAllRows(void* dst, size_t rowBytes, int* rowsDecoded) = 0; 111 virtual Result decode(int* rowsDecoded) = 0;
|
H A D | SkWbmpCodec.cpp | 117 int* rowsDecoded) { in onGetPixels() 134 *rowsDecoded = y; in onGetPixels() 113 onGetPixels(const SkImageInfo& info, void* dst, size_t rowBytes, const Options& options, int* rowsDecoded) onGetPixels() argument
|
H A D | SkWuffsCodec.cpp | 222 Result onIncrementalDecode(int* rowsDecoded) override; 404 int* rowsDecoded) { in onGetPixels() 409 return this->onIncrementalDecode(rowsDecoded); in onGetPixels() 573 SkCodec::Result SkWuffsCodec::onIncrementalDecode(int* rowsDecoded) { in onIncrementalDecode() argument 578 if (rowsDecoded) { in onIncrementalDecode() 579 *rowsDecoded = dstInfo().height(); in onIncrementalDecode() 400 onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, const Options& options, int* rowsDecoded) onGetPixels() argument
|
H A D | SkIcoCodec.h | 70 Result onIncrementalDecode(int* rowsDecoded) override;
|
H A D | SkBmpStandardCodec.cpp | 40 int* rowsDecoded) { in onGetPixels() 56 *rowsDecoded = rows; in onGetPixels() 37 onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options& opts, int* rowsDecoded) onGetPixels() argument
|
H A D | SkCodec.cpp | 436 int rowsDecoded = 0; in getPixels() local 437 const Result result = this->onGetPixels(info, pixels, rowBytes, *options, &rowsDecoded); in getPixels() 443 // setting rowsDecoded equal to the height. in getPixels() 444 if ((kIncompleteInput == result || kErrorInInput == result) && rowsDecoded != info.height()) { in getPixels() 452 rowsDecoded); in getPixels()
|
H A D | SkHeifCodec.h | 50 int* rowsDecoded) override;
|
H A D | SkHeifCodec.cpp | 381 int* rowsDecoded) { in onGetPixels() 408 *rowsDecoded = rows; in onGetPixels() 378 onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options& options, int* rowsDecoded) onGetPixels() argument
|
H A D | SkBmpRLECodec.cpp | 41 int* rowsDecoded) { in onGetPixels() 55 // We set rowsDecoded equal to the height because the background has already in onGetPixels() 58 *rowsDecoded = dstInfo.height(); in onGetPixels() 38 onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options& opts, int* rowsDecoded) onGetPixels() argument
|
H A D | SkRawCodec.cpp | 685 int* rowsDecoded) { in onGetPixels() 735 *rowsDecoded = i; in onGetPixels() 743 *rowsDecoded = i; in onGetPixels() 683 onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options& options, int* rowsDecoded) onGetPixels() argument
|
H A D | SkJpegCodec.cpp | 554 int* rowsDecoded) { in onGetPixels() 588 *rowsDecoded = rows; in onGetPixels() 551 onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options& options, int* rowsDecoded) onGetPixels() argument
|
/third_party/skia/third_party/externals/libgifcodec/ |
H A D | SkLibGifCodec.cpp | 273 int* rowsDecoded) { in onGetPixels() 297 return this->decodeFrame(true, opts, rowsDecoded); in onGetPixels() 316 SkCodec::Result SkLibGifCodec::onIncrementalDecode(int* rowsDecoded) { in onIncrementalDecode() argument 324 return this->decodeFrame(firstCallToIncrementalDecode, options, rowsDecoded); in onIncrementalDecode() 327 SkCodec::Result SkLibGifCodec::decodeFrame(bool firstAttempt, const Options& opts, int* rowsDecoded) { in decodeFrame() argument 335 // rowsDecoded reports how many rows have been initialized, so a layer above in decodeFrame() 337 // (or it is already filled for us), so we report rowsDecoded to be the full in decodeFrame() 379 if (rowsDecoded) { in decodeFrame() 380 *rowsDecoded = fRowsDecoded; in decodeFrame() 270 onGetPixels(const SkImageInfo& dstInfo, void* pixels, size_t dstRowBytes, const Options& opts, int* rowsDecoded) onGetPixels() argument
|
H A D | SkLibGifCodec.h | 114 * @param rowsDecoded Out-parameter to report the total number of rows 121 Result decodeFrame(bool firstAttempt, const Options& opts, int* rowsDecoded);
|
/third_party/skia/include/codec/ |
H A D | SkCodec.h | 453 * @param rowsDecoded Optional output variable returning the total number of 462 Result incrementalDecode(int* rowsDecoded = nullptr) { in incrementalDecode() 466 return this->onIncrementalDecode(rowsDecoded); in incrementalDecode() 767 * @param rowsDecoded When the encoded image stream is incomplete, this function 768 * will return kIncompleteInput and rowsDecoded will be set to 774 int* rowsDecoded) = 0;
|
/third_party/skia/tests/ |
H A D | CodecTest.cpp | 1421 // This is an arbitrary value. The important fact is that it is not zero, and rowsDecoded in DEF_TEST() 1423 int rowsDecoded = 77; in DEF_TEST() local 1424 result = codec->incrementalDecode(&rowsDecoded); in DEF_TEST() 1426 REPORTER_ASSERT(r, rowsDecoded == 0); in DEF_TEST()
|
/third_party/skia/dm/ |
H A D | DMSrcSink.cpp | 609 int rowsDecoded; in draw() local 610 auto result = codec->incrementalDecode(&rowsDecoded); in draw() 614 rowsDecoded); in draw()
|