MCPcopy Create free account
hub / github.com/beefytech/Beef / InitDestination

Method InitDestination

BeefySysLib/img/JPEGData.cpp:166–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 }
165
166 static void InitDestination(j_compress_ptr cinfo)
167 {
168 auto self = (JpegMemDest*)cinfo->dest;
169 self->mData.Resize(JPEGMEMDEST_BLOCK_SIZE);
170 cinfo->dest->next_output_byte = &self->mData[0];
171 cinfo->dest->free_in_buffer = self->mData.size();
172 }
173
174 static boolean EmptyOutputBuffer(j_compress_ptr cinfo)
175 {

Callers

nothing calls this directly

Calls 2

ResizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected