MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MemInitDestination

Function MemInitDestination

tensorflow/core/lib/jpeg/jpeg_handle.cc:45–54  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

43
44// -----------------------------------------------------------------------------
45void MemInitDestination(j_compress_ptr cinfo) {
46 MemDestMgr *dest = reinterpret_cast<MemDestMgr *>(cinfo->dest);
47 VLOG(1) << "Initializing buffer=" << dest->bufsize << " bytes";
48 dest->pub.next_output_byte = dest->buffer;
49 dest->pub.free_in_buffer = dest->bufsize;
50 dest->datacount = 0;
51 if (dest->dest) {
52 dest->dest->clear();
53 }
54}
55
56// -----------------------------------------------------------------------------
57boolean MemEmptyOutputBuffer(j_compress_ptr cinfo) {

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected