MCPcopy Create free account
hub / github.com/dirkvdb/ffmpegthumbnailer / writeDataCallback

Function writeDataCallback

libffmpegthumbnailer/pngwriter.cpp:101–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void writeDataCallback(png_structp png_ptr, png_bytep data, png_size_t length)
102{
103 vector<uint8_t>& outputBuffer = *(reinterpret_cast<vector<uint8_t>*>(png_get_io_ptr(png_ptr)));
104 int prevBufSize = outputBuffer.size();
105 outputBuffer.resize(outputBuffer.size() + length);
106 memcpy(&outputBuffer[prevBufSize], data, length);
107}
108
109}

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected