Lines Matching refs:decoderMgr
36 SkAutoTDelete<JpegDecoderMgr> decoderMgr(new JpegDecoderMgr(stream)); in ReadHeader() local
39 if (setjmp(decoderMgr->getJmpBuf())) { in ReadHeader()
40 return decoderMgr->returnFalse("setjmp"); in ReadHeader()
44 decoderMgr->init(); in ReadHeader()
47 if (JPEG_HEADER_OK != jpeg_read_header(decoderMgr->dinfo(), true)) { in ReadHeader()
48 return decoderMgr->returnFalse("read_header"); in ReadHeader()
53 const SkColorType colorType = decoderMgr->getColorType(); in ReadHeader()
56 const SkImageInfo& imageInfo = SkImageInfo::Make(decoderMgr->dinfo()->image_width, in ReadHeader()
57 decoderMgr->dinfo()->image_height, colorType, kOpaque_SkAlphaType); in ReadHeader()
58 *codecOut = new SkJpegCodec(imageInfo, stream, decoderMgr.detach()); in ReadHeader()
61 *decoderMgrOut = decoderMgr.detach(); in ReadHeader()
79 JpegDecoderMgr* decoderMgr) in SkJpegCodec() argument
81 , fDecoderMgr(decoderMgr) in SkJpegCodec()
82 , fReadyState(decoderMgr->dinfo()->global_state) in SkJpegCodec()
152 JpegDecoderMgr* decoderMgr = nullptr; in onRewind() local
153 if (!ReadHeader(this->stream(), nullptr, &decoderMgr)) { in onRewind()
156 SkASSERT(nullptr != decoderMgr); in onRewind()
157 fDecoderMgr.reset(decoderMgr); in onRewind()