Home | History | Annotate | Download | only in codec

Lines Matching defs:chunkReader

48     SkPngChunkReader* chunkReader = (SkPngChunkReader*)png_get_user_chunk_ptr(png_ptr);
50 return chunkReader->readChunk((const char*)chunk->name, chunk->data, chunk->size) ? 1 : -1;
172 // @param chunkReader SkPngChunkReader, for reading unknown chunks. May be NULL.
188 static bool read_header(SkStream* stream, SkPngChunkReader* chunkReader,
216 // Hookup our chunkReader so we can see any user-chunks the caller may be interested in.
219 if (chunkReader) {
221 png_set_read_user_chunk_fn(png_ptr, (png_voidp) chunkReader, sk_read_user_chunk);
332 SkPngCodec::SkPngCodec(const SkImageInfo& info, SkStream* stream, SkPngChunkReader* chunkReader,
335 , fPngChunkReader(SkSafeRef(chunkReader))
544 SkPngChunkReader* chunkReader, png_structp png_ptr, png_infop info_ptr, int bitDepth)
545 : INHERITED(srcInfo, stream, chunkReader, png_ptr, info_ptr, bitDepth, 1)
609 SkPngChunkReader* chunkReader, png_structp png_ptr, png_infop info_ptr,
611 : INHERITED(srcInfo, stream, chunkReader, png_ptr, info_ptr, bitDepth, numberPasses)
729 SkCodec* SkPngCodec::NewFromStream(SkStream* stream, SkPngChunkReader* chunkReader) {
737 if (!read_header(stream, chunkReader, &png_ptr, &info_ptr, &imageInfo, &bitDepth,
743 return new SkPngScanlineDecoder(imageInfo, streamDeleter.detach(), chunkReader,
747 return new SkPngInterlacedScanlineDecoder(imageInfo, streamDeleter.detach(), chunkReader,