8#ifndef SkJpegDecoderMgr_DEFINED
9#define SkJpegDecoderMgr_DEFINED
69 jpeg_decompress_struct*
dinfo() {
return &fDInfo; }
76 struct SourceMgr : jpeg_source_mgr {
77 static void InitSource(j_decompress_ptr
dinfo);
78 static void SkipInputData(j_decompress_ptr
dinfo,
long num_bytes_long);
79 static boolean FillInputBuffer(j_decompress_ptr
dinfo);
80 static void TermSource(j_decompress_ptr
dinfo);
82 SourceMgr(std::unique_ptr<SkJpegSourceMgr> mgr);
83 std::unique_ptr<SkJpegSourceMgr> fSourceMgr;
86 jpeg_decompress_struct fDInfo;
89 jpeg_progress_mgr fProgressMgr;
SkJpegSourceMgr * getSourceMgr()
jpeg_decompress_struct * dinfo()
skjpeg_error_mgr * errorMgr()
JpegDecoderMgr(SkStream *stream)
SkCodec::Result returnFailure(const char caller[], SkCodec::Result result)
bool returnFalse(const char caller[])
bool getEncodedColor(SkEncodedInfo::Color *outColor)