Home
last modified time | relevance | path

Searched refs:rowsDecoded (Results 1 - 22 of 22) sorted by relevance

/third_party/skia/fuzz/oss_fuzz/
H A DFuzzIncrementalImage.cpp31 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 DSkPngCodec.cpp532 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 DSkSampledCodec.cpp114 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 DSkWebpCodec.cpp488 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 DSkIcoCodec.cpp297 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 DSkBmpMaskCodec.cpp30 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 DSkPngCodec.h109 virtual Result decodeAllRows(void* dst, size_t rowBytes, int* rowsDecoded) = 0;
111 virtual Result decode(int* rowsDecoded) = 0;
H A DSkWbmpCodec.cpp117 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 DSkWuffsCodec.cpp222 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 DSkIcoCodec.h70 Result onIncrementalDecode(int* rowsDecoded) override;
H A DSkBmpStandardCodec.cpp40 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 DSkCodec.cpp436 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 DSkHeifCodec.h50 int* rowsDecoded) override;
H A DSkHeifCodec.cpp381 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 DSkBmpRLECodec.cpp41 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 DSkRawCodec.cpp685 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 DSkJpegCodec.cpp554 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 DSkLibGifCodec.cpp273 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 DSkLibGifCodec.h114 * @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 DSkCodec.h453 * @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 DCodecTest.cpp1421 // 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 DDMSrcSink.cpp609 int rowsDecoded; in draw() local
610 auto result = codec->incrementalDecode(&rowsDecoded); in draw()
614 rowsDecoded); in draw()

Completed in 24 milliseconds