MCPcopy Create free account
hub / github.com/Siv3D/OpenSiv3D / WebPWriteCallback

Function WebPWriteCallback

Siv3D/src/Siv3D/ImageFormat/WebP/WebPEncoder.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 namespace detail
27 {
28 static int WebPWriteCallback(const uint8_t* data, size_t data_size, const WebPPicture* picture)
29 {
30 IWriter* pWriter = static_cast<IWriter*>(picture->custom_ptr);
31
32 return (static_cast<int64>(data_size) == pWriter->write(data, data_size));
33 }
34
35 static void SetMethod(const WebPMethod method, WebPConfig& config) noexcept
36 {

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected