Lines Matching refs:stream
87 std::unique_ptr<SkStream> stream, Result* outResult,
94 if (!stream) {
108 size_t bytesRead = stream->peek(buffer, bytesToRead);
112 // Assume that if bytesRead < bytesToRead, but > 0, the stream is shorter
114 // It also is possible the stream uses too small a buffer for peeking, but
122 // It is possible the stream does not support peeking, but does support
125 bytesRead = stream->read(buffer, bytesToRead);
126 if (!stream->rewind()) {
137 return SkPngCodec::MakeFromStream(std::move(stream), outResult, chunkReader);
143 return proc.MakeFromStream(std::move(stream), outResult);
150 return SkHeifCodec::MakeFromStream(std::move(stream), selectionPolicy,
157 return SkRawCodec::MakeFromStream(std::move(stream), outResult);
177 SkCodec::SkCodec(SkEncodedInfo&& info, XformFormat srcFormat, std::unique_ptr<SkStream> stream,
181 , fStream(std::move(stream))
249 // Some codecs do not have a stream. They may hold onto their own data or another codec.
439 // A return value of kIncompleteInput indicates a truncated image stream.
836 // the animation stream), and calls this frame's setter methods with that
840 // the complete image at this frame's point in the animation stream does not