Searched refs:NewFromStream (Results 1 - 25 of 35) sorted by relevance

12

/external/skia/tests/
H A DExifTest.cpp19 std::unique_ptr<SkCodec> codec(SkCodec::NewFromStream(stream.release()));
25 codec.reset(SkCodec::NewFromStream(stream.release()));
H A DBadIcoTest.cpp35 std::unique_ptr<SkCodec> codec(SkCodec::NewFromStream(stream.release()));
H A DCodecExactReadTest.cpp70 std::unique_ptr<SkCodec> codec(SkCodec::NewFromStream(new UnowningStream(&stream)));
H A DCodecPartialTest.cpp67 std::unique_ptr<SkCodec> partialCodec(SkCodec::NewFromStream(stream));
169 partialCodec.reset(SkCodec::NewFromStream(stream));
197 std::unique_ptr<SkCodec> fullCodec(SkCodec::NewFromStream(stream));
236 std::unique_ptr<SkCodec> partialCodec(SkCodec::NewFromStream(haltingStream));
290 std::unique_ptr<SkCodec> partialCodec(SkCodec::NewFromStream(
381 codec.reset(SkCodec::NewFromStream(stream));
440 std::unique_ptr<SkCodec> codec(SkCodec::NewFromStream(stream, &result));
H A DCodecTest.cpp279 codec.reset(SkCodec::NewFromStream(stream.release()));
415 androidCodec.reset(SkAndroidCodec::NewFromStream(stream.release()));
444 codec.reset(SkCodec::NewFromStream(bufferedStream));
529 SkCodec* codec = SkCodec::NewFromStream(new SkMemoryStream(stream, len, false));
533 SkAndroidCodec::NewFromStream(new SkMemoryStream(stream, len, false));
537 // Ensure that SkCodec::NewFromStream handles freeing the passed in SkStream,
540 // No codec should claim this as their format, so this tests SkCodec::NewFromStream.
543 // internal version of NewFromStream, which must also delete the stream on failure.
563 SkCodec* codec = SkCodec::NewFromStream(nullptr);
566 SkAndroidCodec* androidCodec = SkAndroidCodec::NewFromStream(nullpt
[all...]
H A DYUVTest.cpp23 std::unique_ptr<SkCodec> codec(SkCodec::NewFromStream(stream.release()));
/external/skia/src/android/
H A DSkBitmapRegionDecoder.cpp26 SkAndroidCodec::NewFromStream(streamDeleter.release()));
/external/skia/src/codec/
H A DSkRawCodec.h31 static SkCodec* NewFromStream(SkStream*, Result*);
52 * Called only by NewFromStream, takes ownership of dngImage.
H A DSkWbmpCodec.h24 static SkCodec* NewFromStream(SkStream*, Result*);
H A DSkBmpCodec.h31 static SkCodec* NewFromStream(SkStream*, Result*);
115 static SkCodec* NewFromStream(SkStream*, Result*, bool inIco);
H A DSkJpegCodec.h34 static SkCodec* NewFromStream(SkStream*, Result*);
66 static SkCodec* NewFromStream(SkStream*, Result*, sk_sp<SkColorSpace> defaultColorSpace);
95 * Called only by NewFromStream
H A DSkCodec.cpp32 SkCodec* (*NewFromStream)(SkStream*, SkCodec::Result*); member in struct:DecoderProc
37 { SkJpegCodec::IsJpeg, SkJpegCodec::NewFromStream },
40 { SkWebpCodec::IsWebp, SkWebpCodec::NewFromStream },
42 { SkGifCodec::IsGif, SkGifCodec::NewFromStream },
44 { SkIcoCodec::IsIco, SkIcoCodec::NewFromStream },
46 { SkBmpCodec::IsBmp, SkBmpCodec::NewFromStream },
47 { SkWbmpCodec::IsWbmp, SkWbmpCodec::NewFromStream },
49 { SkHeifCodec::IsHeif, SkHeifCodec::NewFromStream },
53 SkCodec* SkCodec::NewFromStream(SkStream* stream, function in class:SkCodec
99 return SkPngCodec::NewFromStream(streamDelete
[all...]
H A DSkGifCodec.h32 static SkCodec* NewFromStream(SkStream*, Result*);
128 * Called only by NewFromStream
H A DSkHeifCodec.h27 static SkCodec* NewFromStream(SkStream*, Result*);
44 * Called only by NewFromStream
H A DSkIcoCodec.h28 static SkCodec* NewFromStream(SkStream*, Result*);
79 * Constructor called by NewFromStream
H A DSkPngCodec.h26 static SkCodec* NewFromStream(SkStream*, Result*,
H A DSkWebpCodec.h29 static SkCodec* NewFromStream(SkStream*, Result*);
H A DSkAndroidCodec.cpp68 SkAndroidCodec* SkAndroidCodec::NewFromStream(SkStream* stream, SkPngChunkReader* chunkReader) { function in class:SkAndroidCodec
69 std::unique_ptr<SkCodec> codec(SkCodec::NewFromStream(stream, nullptr, chunkReader));
107 return NewFromStream(new SkMemoryStream(data), chunkReader);
H A DSkBmpCodec.cpp70 SkCodec* SkBmpCodec::NewFromStream(SkStream* stream, Result* result) { function in class:SkBmpCodec
71 return SkBmpCodec::NewFromStream(stream, result, false);
79 return SkBmpCodec::NewFromStream(stream, result, true);
582 SkCodec* SkBmpCodec::NewFromStream(SkStream* stream, Result* result, bool inIco) { function in class:SkBmpCodec
H A DSkIcoCodec.cpp29 SkCodec* SkIcoCodec::NewFromStream(SkStream* stream, Result* result) { function in class:SkIcoCodec
158 codec = SkPngCodec::NewFromStream(embeddedStream.release(), &dummyResult);
200 * Called only by NewFromStream
H A DSkRawCodec.cpp448 static SkDngImage* NewFromStream(SkRawStream* stream) { function in class:SkDngImage
633 SkCodec* SkRawCodec::NewFromStream(SkStream* stream, Result* result) { function in class:SkRawCodec
675 return SkJpegCodec::NewFromStream(memoryStream, result, std::move(colorSpace));
685 std::unique_ptr<SkDngImage> dngImage(SkDngImage::NewFromStream(rawStream.release()));
/external/skia/gm/
H A Dbitmapimage.cpp39 std::unique_ptr<SkCodec> codec(SkCodec::NewFromStream(GetResourceAsStream(path)));
H A DanimatedGif.cpp126 fCodec.reset(SkCodec::NewFromStream(stream.release()));
/external/skia/include/codec/
H A DSkAndroidCodec.h32 static SkAndroidCodec* NewFromStream(SkStream*, SkPngChunkReader* = NULL);
H A DSkCodec.h45 * An SkStream passed to NewFromStream must be able to use this many
142 static SkCodec* NewFromStream(SkStream*, Result* = nullptr,

Completed in 1276 milliseconds

12