/* To produce a pair of files containing abbreviated tables and abbreviated image data, one would proceed as follows:  */
jpeg_write_tables(j_compress_ptr cinfo)
/* To produce a pair of files containing abbreviated tables and abbreviated image data, one would proceed as follows:  */
jpeg_write_tables(j_compress_ptr cinfo)
{
    if (cinfo->global_state != CSTATE_START)
        ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
    (*cinfo->err->reset_error_mgr) ((j_common_ptr)cinfo);
    (*cinfo->dest->init_destination) (cinfo);
    jinit_marker_writer(cinfo);
    (*cinfo->marker->write_tables_only) (cinfo);
    (*cinfo->dest->term_destination) (cinfo);
}