Definition at line 51 of file SkJpegSourceMgr.cpp.
◆ SkJpegMemorySourceMgr()
SkJpegMemorySourceMgr::SkJpegMemorySourceMgr |
( |
SkStream * |
stream | ) |
|
|
inline |
◆ ~SkJpegMemorySourceMgr()
SkJpegMemorySourceMgr::~SkJpegMemorySourceMgr |
( |
| ) |
|
|
inlineoverride |
◆ fillInputBuffer()
bool SkJpegMemorySourceMgr::fillInputBuffer |
( |
const uint8_t *& |
nextInputByte, |
|
|
size_t & |
bytesInBuffer |
|
) |
| |
|
inlineoverridevirtual |
◆ initSource()
void SkJpegMemorySourceMgr::initSource |
( |
const uint8_t *& |
nextInputByte, |
|
|
size_t & |
bytesInBuffer |
|
) |
| |
|
inlineoverridevirtual |
◆ skipInputBytes()
bool SkJpegMemorySourceMgr::skipInputBytes |
( |
size_t |
bytesToSkip, |
|
|
const uint8_t *& |
nextInputByte, |
|
|
size_t & |
bytesInBuffer |
|
) |
| |
|
inlineoverridevirtual |
Implements SkJpegSourceMgr.
Definition at line 66 of file SkJpegSourceMgr.cpp.
68 {
69 if (bytesToSkip > bytesInBuffer) {
70 SkCodecPrintf(
"Asked to read past end of a memory-mapped stream.\n");
71 return false;
72 }
73 nextInputByte += bytesToSkip;
74 bytesInBuffer -= bytesToSkip;
75 return true;
76 }
The documentation for this class was generated from the following file: