Definition at line 17 of file SkVideoEncoder.cpp.
◆ SkRandomAccessWStream()
SkRandomAccessWStream::SkRandomAccessWStream |
( |
| ) |
|
|
inline |
◆ detachAsData()
sk_sp< SkData > SkRandomAccessWStream::detachAsData |
( |
| ) |
|
|
inline |
Definition at line 53 of file SkVideoEncoder.cpp.
53 {
54
56 }
static sk_sp< SkData > MakeWithCopy(const void *data, size_t length)
◆ pos()
size_t SkRandomAccessWStream::pos |
( |
| ) |
const |
|
inline |
◆ seek()
void SkRandomAccessWStream::seek |
( |
size_t |
pos | ) |
|
|
inline |
◆ size()
size_t SkRandomAccessWStream::size |
( |
| ) |
const |
|
inline |
◆ write()
void SkRandomAccessWStream::write |
( |
const void * |
src, |
|
|
size_t |
bytes |
|
) |
| |
|
inline |
Definition at line 28 of file SkVideoEncoder.cpp.
28 {
31
33 if (overwrite) {
34 SkDebugf(
"overwrite %zu bytes at %zu offset with %zu remaining\n", overwrite, fPos, bytes - overwrite);
35 memcpy(&fStorage[fPos],
src, overwrite);
36 fPos += overwrite;
37 src = (
const char*)
src + overwrite;
38 bytes -= overwrite;
39 }
40
41 if (bytes) {
43 fPos += bytes;
44 }
46 }
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static float min(float r, float g, float b)
The documentation for this class was generated from the following file: