Home
last modified time | relevance | path

Searched refs:decoderMgr (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/codec/
DSkJpegCodec.cpp125 SkAutoTDelete<JpegDecoderMgr> decoderMgr(SkNEW_ARGS(JpegDecoderMgr, (stream))); in ReadHeader() local
128 if (setjmp(decoderMgr->getJmpBuf())) { in ReadHeader()
129 return decoderMgr->returnFalse("setjmp"); in ReadHeader()
133 decoderMgr->init(); in ReadHeader()
136 if (JPEG_HEADER_OK != jpeg_read_header(decoderMgr->dinfo(), true)) { in ReadHeader()
137 return decoderMgr->returnFalse("read_header"); in ReadHeader()
142 const SkColorType colorType = decoderMgr->getColorType(); in ReadHeader()
145 const SkImageInfo& imageInfo = SkImageInfo::Make(decoderMgr->dinfo()->image_width, in ReadHeader()
146 decoderMgr->dinfo()->image_height, colorType, kOpaque_SkAlphaType); in ReadHeader()
147 *codecOut = SkNEW_ARGS(SkJpegCodec, (imageInfo, stream, decoderMgr.detach())); in ReadHeader()
[all …]
DSkJpegCodec.h95 SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* decoderMgr);