Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SkJpegSourceMgr Class Referenceabstract

#include <SkJpegSourceMgr.h>

Inheritance diagram for SkJpegSourceMgr:
SkJpegBufferedSourceMgr SkJpegMemorySourceMgr

Public Member Functions

virtual ~SkJpegSourceMgr ()
 
virtual void initSource (const uint8_t *&nextInputByte, size_t &bytesInBuffer)=0
 
virtual bool fillInputBuffer (const uint8_t *&nextInputByte, size_t &bytesInBuffer)=0
 
virtual bool skipInputBytes (size_t bytes, const uint8_t *&nextInputByte, size_t &bytesInBuffer)=0
 

Static Public Member Functions

static std::unique_ptr< SkJpegSourceMgrMake (SkStream *stream, size_t bufferSize=1024)
 

Protected Member Functions

 SkJpegSourceMgr (SkStream *stream)
 

Protected Attributes

SkStream *const fStream
 

Detailed Description

Definition at line 37 of file SkJpegSourceMgr.h.

Constructor & Destructor Documentation

◆ ~SkJpegSourceMgr()

SkJpegSourceMgr::~SkJpegSourceMgr ( )
virtualdefault

◆ SkJpegSourceMgr()

SkJpegSourceMgr::SkJpegSourceMgr ( SkStream stream)
protected

Definition at line 437 of file SkJpegSourceMgr.cpp.

Member Function Documentation

◆ fillInputBuffer()

virtual bool SkJpegSourceMgr::fillInputBuffer ( const uint8_t *&  nextInputByte,
size_t &  bytesInBuffer 
)
pure virtual

◆ initSource()

virtual void SkJpegSourceMgr::initSource ( const uint8_t *&  nextInputByte,
size_t &  bytesInBuffer 
)
pure virtual

◆ Make()

std::unique_ptr< SkJpegSourceMgr > SkJpegSourceMgr::Make ( SkStream stream,
size_t  bufferSize = 1024 
)
static

Definition at line 425 of file SkJpegSourceMgr.cpp.

425 {
426#ifdef SK_CODEC_DECODES_JPEG_GAINMAPS
427 if (!stream->hasPosition()) {
428 return std::make_unique<SkJpegUnseekableSourceMgr>(stream, bufferSize);
429 }
430#endif
431 if (stream->hasLength() && stream->getMemoryBase()) {
432 return std::make_unique<SkJpegMemorySourceMgr>(stream);
433 }
434 return std::make_unique<SkJpegBufferedSourceMgr>(stream, bufferSize);
435}

◆ skipInputBytes()

virtual bool SkJpegSourceMgr::skipInputBytes ( size_t  bytes,
const uint8_t *&  nextInputByte,
size_t &  bytesInBuffer 
)
pure virtual

Member Data Documentation

◆ fStream

SkStream* const SkJpegSourceMgr::fStream
protected

Definition at line 69 of file SkJpegSourceMgr.h.


The documentation for this class was generated from the following files: