#ifdef SK_CODEC_DECODES_JPEG_GAINMAPS class SkData; class SkJpegSegmentScanner; struct SkJpegSegment; #endif// SK_CODEC_DECODES_JPEG_GAINMAPS
/* * Interface to adapt an SkStream to the jpeg_source_mgr interface. This interface has different * implementations for SkStreams with different capabilities.
*/ class SkJpegSourceMgr { public: // Create a source manager. If the source manager will buffer data, |bufferSize| specifies // the size of that buffer. static std::unique_ptr<SkJpegSourceMgr> Make(SkStream* stream, size_t bufferSize = 1024); virtual ~SkJpegSourceMgr();
// Interface called by libjpeg via its jpeg_source_mgr interface. virtualvoid initSource(const uint8_t*& nextInputByte, size_t& bytesInBuffer) = 0; virtualbool fillInputBuffer(const uint8_t*& nextInputByte, size_t& bytesInBuffer) = 0; virtualbool skipInputBytes(size_t bytes, const uint8_t*& nextInputByte,
size_t& bytesInBuffer) = 0;
#ifdef SK_CODEC_DECODES_JPEG_GAINMAPS // Parse this stream all the way through its EndOfImage marker and return the list of segments. // Return false if there is an error or if no EndOfImage marker is found. virtualconst std::vector<SkJpegSegment>& getAllSegments() = 0;
// Return an the data for a subset of this source's stream, with the specified offset and size. // If the returned SkData is a copy (it does not refer directly to memory owned by |fStream|), // then |wasCopied| is set to true. virtual sk_sp<SkData> getSubsetData(size_t offset, size_t size, bool* wasCopied = nullptr) = 0;
// Segments start with a 2 byte marker, followed by a 2 byte parameter length (which includes // those two bytes, followed by parameters. Return the parameters portion of the specified // segment. If possible, the returned SkData will refer to memory owned by |fStream|. virtual sk_sp<SkData> getSegmentParameters(const SkJpegSegment& segment) = 0; #endif// SK_CODEC_DECODES_JPEG_GAINMAPS
#ifdef SK_CODEC_DECODES_JPEG_GAINMAPS // The segment scanner is lazily creatd only when needed.
std::unique_ptr<SkJpegSegmentScanner> fScanner; #endif// SK_CODEC_DECODES_JPEG_GAINMAPS
};
#endif
Messung V0.5
¤ Dauer der Verarbeitung: 0.20 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.