#include <SkEncoder.h>
Definition at line 19 of file SkEncoder.h.
◆ ~SkEncoder()
virtual SkEncoder::~SkEncoder |
( |
| ) |
|
|
inlinevirtual |
◆ SkEncoder()
SkEncoder::SkEncoder |
( |
const SkPixmap & |
src, |
|
|
size_t |
storageBytes |
|
) |
| |
|
inlineprotected |
Definition at line 52 of file SkEncoder.h.
56 {}
skia_private::AutoTMalloc< uint8_t > fStorage
◆ encodeRows()
bool SkEncoder::encodeRows |
( |
int |
numRows | ) |
|
Encode |numRows| rows of input. If the caller requests more rows than are remaining in the src, this will encode all of the remaining rows. |numRows| must be greater than zero.
Definition at line 12 of file SkEncoder.cpp.
12 {
14 if (numRows <= 0 || fCurrRow >=
fSrc.
height()) {
15 return false;
16 }
17
20 }
21
23
25 return false;
26 }
27
28 return true;
29}
virtual bool onEncodeRows(int numRows)=0
◆ onEncodeRows()
virtual bool SkEncoder::onEncodeRows |
( |
int |
numRows | ) |
|
|
protectedpure virtual |
◆ fCurrRow
◆ fSrc
◆ fStorage
The documentation for this class was generated from the following files: