Home
last modified time | relevance | path

Searched refs:chunkReader (Results 1 – 8 of 8) sorted by relevance

/third_party/skia/src/codec/
DSkAndroidCodec.cpp66 SkPngChunkReader* chunkReader) { in MakeFromStream() argument
67 auto codec = SkCodec::MakeFromStream(std::move(stream), nullptr, chunkReader); in MakeFromStream()
107 SkPngChunkReader* chunkReader) { in MakeFromData() argument
112 return MakeFromStream(SkMemoryStream::Make(std::move(data)), chunkReader); in MakeFromData()
DSkPngCodec.cpp61 SkPngChunkReader* chunkReader = (SkPngChunkReader*)png_get_user_chunk_ptr(png_ptr); in sk_read_user_chunk() local
63 return chunkReader->readChunk((const char*)chunk->name, chunk->data, chunk->size) ? 1 : -1; in sk_read_user_chunk()
777 static SkCodec::Result read_header(SkStream* stream, SkPngChunkReader* chunkReader, in read_header() argument
793 AutoCleanPng autoClean(png_ptr, stream, chunkReader, outCodec); in read_header()
810 if (chunkReader) { in read_header()
812 png_set_read_user_chunk_fn(png_ptr, (png_voidp) chunkReader, sk_read_user_chunk); in read_header()
988 SkPngChunkReader* chunkReader, void* png_ptr, void* info_ptr, int bitDepth) in SkPngCodec() argument
990 , fPngChunkReader(SkSafeRef(chunkReader)) in SkPngCodec()
1199 Result* result, SkPngChunkReader* chunkReader) { in MakeFromStream() argument
1201 *result = read_header(stream.get(), chunkReader, &outCodec, nullptr, nullptr); in MakeFromStream()
DSkCodec.cpp88 SkPngChunkReader* chunkReader, SelectionPolicy selectionPolicy) { in MakeFromStream() argument
137 return SkPngCodec::MakeFromStream(std::move(stream), outResult, chunkReader); in MakeFromStream()
/third_party/flutter/skia/src/codec/
DSkPngCodec.cpp62 SkPngChunkReader* chunkReader = (SkPngChunkReader*)png_get_user_chunk_ptr(png_ptr); in sk_read_user_chunk() local
64 return chunkReader->readChunk((const char*)chunk->name, chunk->data, chunk->size) ? 1 : -1; in sk_read_user_chunk()
779 static SkCodec::Result read_header(SkStream* stream, SkPngChunkReader* chunkReader, in read_header() argument
795 AutoCleanPng autoClean(png_ptr, stream, chunkReader, outCodec); in read_header()
812 if (chunkReader) { in read_header()
814 png_set_read_user_chunk_fn(png_ptr, (png_voidp) chunkReader, sk_read_user_chunk); in read_header()
973 SkPngChunkReader* chunkReader, void* png_ptr, void* info_ptr, int bitDepth) in SkPngCodec() argument
975 , fPngChunkReader(SkSafeRef(chunkReader)) in SkPngCodec()
1185 Result* result, SkPngChunkReader* chunkReader) { in MakeFromStream() argument
1187 *result = read_header(stream.get(), chunkReader, &outCodec, nullptr, nullptr); in MakeFromStream()
DSkAndroidCodec.cpp79 SkPngChunkReader* chunkReader) { in MakeFromStream() argument
80 auto codec = SkCodec::MakeFromStream(std::move(stream), nullptr, chunkReader); in MakeFromStream()
120 SkPngChunkReader* chunkReader) { in MakeFromData() argument
125 return MakeFromStream(SkMemoryStream::Make(std::move(data)), chunkReader); in MakeFromData()
DSkCodec.cpp68 SkPngChunkReader* chunkReader, SelectionPolicy selectionPolicy) { in MakeFromStream() argument
117 return SkPngCodec::MakeFromStream(std::move(stream), outResult, chunkReader); in MakeFromStream()
/third_party/flutter/skia/tests/
DCodecTest.cpp802 ChunkReader chunkReader(r); in DEF_TEST() local
805 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(wStream.detachAsData(), &chunkReader)); in DEF_TEST()
831 REPORTER_ASSERT(r, chunkReader.allHaveBeenSeen()); in DEF_TEST()
834 chunkReader.reset(); in DEF_TEST()
835 REPORTER_ASSERT(r, !chunkReader.allHaveBeenSeen()); in DEF_TEST()
838 REPORTER_ASSERT(r, chunkReader.allHaveBeenSeen()); in DEF_TEST()
/third_party/skia/tests/
DCodecTest.cpp852 ChunkReader chunkReader(r); in DEF_TEST() local
855 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(wStream.detachAsData(), &chunkReader)); in DEF_TEST()
881 REPORTER_ASSERT(r, chunkReader.allHaveBeenSeen()); in DEF_TEST()
884 chunkReader.reset(); in DEF_TEST()
885 REPORTER_ASSERT(r, !chunkReader.allHaveBeenSeen()); in DEF_TEST()
888 REPORTER_ASSERT(r, chunkReader.allHaveBeenSeen()); in DEF_TEST()