8#ifndef SkJpegSourceMgr_codec_DEFINED
9#define SkJpegSourceMgr_codec_DEFINED
13#ifdef SK_CODEC_DECODES_JPEG_GAINMAPS
21#ifdef SK_CODEC_DECODES_JPEG_GAINMAPS
27#ifdef SK_CODEC_DECODES_JPEG_GAINMAPS
41 static std::unique_ptr<SkJpegSourceMgr>
Make(
SkStream*
stream,
size_t bufferSize = 1024);
45 virtual void initSource(
const uint8_t*& nextInputByte,
size_t& bytesInBuffer) = 0;
46 virtual bool fillInputBuffer(
const uint8_t*& nextInputByte,
size_t& bytesInBuffer) = 0;
48 const uint8_t*& nextInputByte,
49 size_t& bytesInBuffer) = 0;
51#ifdef SK_CODEC_DECODES_JPEG_GAINMAPS
54 virtual const std::vector<SkJpegSegment>& getAllSegments() = 0;
71#ifdef SK_CODEC_DECODES_JPEG_GAINMAPS
73 std::unique_ptr<SkJpegSegmentScanner> fScanner;
virtual ~SkJpegSourceMgr()
virtual bool skipInputBytes(size_t bytes, const uint8_t *&nextInputByte, size_t &bytesInBuffer)=0
virtual bool fillInputBuffer(const uint8_t *&nextInputByte, size_t &bytesInBuffer)=0
virtual void initSource(const uint8_t *&nextInputByte, size_t &bytesInBuffer)=0
SkJpegSourceMgr(SkStream *stream)
static std::unique_ptr< SkJpegSourceMgr > Make(SkStream *stream, size_t bufferSize=1024)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size