8#ifndef SkJpegSegmentScan_codec_DEFINED
9#define SkJpegSegmentScan_codec_DEFINED
43 bool isDone()
const {
return fState == State::kDone; }
44 bool hadError()
const {
return fState == State::kError; }
51 const std::vector<SkJpegSegment>&
getSegments()
const;
72 kSegmentParamLengthByte0,
76 kSegmentParamLengthByte1,
86 kEntropyCodedDataSentinel,
89 kPostEntropyCodedDataFill,
95 State fState = State::kStartOfImageByte0;
98 void onByte(uint8_t
byte);
102 void onMarkerSecondByte(uint8_t
byte);
106 void saveCurrentSegment(uint16_t
length);
108 static bool MarkerStandsAlone(uint8_t
marker) {
115 const uint8_t fStopMarker;
121 uint8_t fSegmentParamLengthByte0 = 0;
125 size_t fSegmentParamBytesRemaining = 0;
129 size_t fCurrentSegmentOffset = 0;
130 uint8_t fCurrentSegmentMarker = 0;
132 std::vector<SkJpegSegment> fSegments;
static const char marker[]
static constexpr uint8_t kJpegMarkerEndOfImage
const std::vector< SkJpegSegment > & getSegments() const
static sk_sp< SkData > GetParameters(const SkData *scannedData, const SkJpegSegment &segment)
SkJpegSegmentScanner(uint8_t stopMarker=kJpegMarkerEndOfImage)
void onBytes(const void *data, size_t size)
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
std::shared_ptr< const fml::Mapping > data