Home
last modified time | relevance | path

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

/external/skia/src/codec/
DSkJpegCodec.cpp36 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()
[all …]
DSkJpegCodec.h93 SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* decoderMgr);