boolean jEmpty_output_buffer(j_compress_ptr cinfo) { size_t oldsize = jOut.Count(); jOut.SetCountNonDestructively(oldsize + BLOCK_SIZE); cinfo->dest->next_output_byte = &jOut[oldsize]; cinfo->dest->free_in_buffer = jOut.Count() - oldsize; return true; }
void jTerm_destination(j_compress_ptr cinfo) { jOut.SetCountNonDestructively(jOut.Count() - cinfo->dest->free_in_buffer); }