if (write_all_tables)
jpeg_suppress_tables(cinfo, FALSE); /* mark all tables to be written */
/* (Re)initialize error mgr and destination modules */
(*cinfo->err->reset_error_mgr) ((j_common_ptr) cinfo);
(*cinfo->dest->init_destination) (cinfo); /* Perform master selection of active modules */
jinit_compress_master(cinfo); /* Set up for the first pass */
(*cinfo->master->prepare_for_pass) (cinfo); /* Ready for application to drive first pass through jpeg_write_scanlines *orjpeg_write_raw_data.
*/
cinfo->next_scanline = 0;
cinfo->global_state = (cinfo->raw_data_in ? CSTATE_RAW_OK : CSTATE_SCANNING);
}
/* Give master control module another chance if this is first call to *jpeg_write_scanlines.Thisletsoutputoftheframe/scanheadersbe *delayedsothatapplicationcanwriteCOM,etc,markersbetween *jpeg_start_compressandjpeg_write_scanlines.
*/ if (cinfo->master->call_pass_startup)
(*cinfo->master->pass_startup) (cinfo);
/* Ignore any extra scanlines at bottom of image. */
rows_left = cinfo->image_height - cinfo->next_scanline; if (num_lines > rows_left)
num_lines = rows_left;
/* Give master control module another chance if this is first call to *jpeg_write_raw_data.Thisletsoutputoftheframe/scanheadersbe *delayedsothatapplicationcanwriteCOM,etc,markersbetween *jpeg_start_compressandjpeg_write_raw_data.
*/ if (cinfo->master->call_pass_startup)
(*cinfo->master->pass_startup) (cinfo);
/* Verify that at least one iMCU row has been passed. */
lines_per_iMCU_row = cinfo->max_v_samp_factor * DCTSIZE; if (num_lines < lines_per_iMCU_row)
ERREXIT(cinfo, JERR_BUFFER_SIZE);
/* Directly compress the row. */ if (! (*cinfo->coef->compress_data) (cinfo, data)) { /* If compressor did not consume the whole row, suspend processing. */ return0;
}
/* OK, we processed one iMCU row. */
cinfo->next_scanline += lines_per_iMCU_row; return lines_per_iMCU_row;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.