/* This routine is exported for use by applications that want to produce abbreviated JPEG datastreams. It logically belongs in jcparam.c, but since it is called by jpeg_start_compress, we put it here  */
jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
/* This routine is exported for use by applications that want to produce abbreviated JPEG datastreams. It logically belongs in jcparam.c, but since it is called by jpeg_start_compress, we put it here  */
jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
{
    int i;
    JQUANT_TBL* qtbl;
    JHUFF_TBL* htbl;
    for (i = 0; i < NUM_QUANT_TBLS; i++) {
        if ((qtbl = cinfo->quant_tbl_ptrs[i]) != NULL)
            qtbl->sent_table = suppress;
    }
    for (i = 0; i < NUM_HUFF_TBLS; i++) {
        if ((htbl = cinfo->dc_huff_tbl_ptrs[i]) != NULL)
            htbl->sent_table = suppress;
        if ((htbl = cinfo->ac_huff_tbl_ptrs[i]) != NULL)
            htbl->sent_table = suppress;
    }
}