Path: blob/master/3rdparty/libjpeg-turbo/src/jdapistd.c
16337 views
/*1* jdapistd.c2*3* This file was part of the Independent JPEG Group's software:4* Copyright (C) 1994-1996, Thomas G. Lane.5* libjpeg-turbo Modifications:6* Copyright (C) 2010, 2015-2017, D. R. Commander.7* Copyright (C) 2015, Google, Inc.8* For conditions of distribution and use, see the accompanying README.ijg9* file.10*11* This file contains application interface code for the decompression half12* of the JPEG library. These are the "standard" API routines that are13* used in the normal full-decompression case. They are not used by a14* transcoding-only application. Note that if an application links in15* jpeg_start_decompress, it will end up linking in the entire decompressor.16* We thus must separate this file from jdapimin.c to avoid linking the17* whole decompression library into a transcoder.18*/1920#include "jinclude.h"21#include "jdmainct.h"22#include "jdcoefct.h"23#include "jdsample.h"24#include "jmemsys.h"2526/* Forward declarations */27LOCAL(boolean) output_pass_setup (j_decompress_ptr cinfo);282930/*31* Decompression initialization.32* jpeg_read_header must be completed before calling this.33*34* If a multipass operating mode was selected, this will do all but the35* last pass, and thus may take a great deal of time.36*37* Returns FALSE if suspended. The return value need be inspected only if38* a suspending data source is used.39*/4041GLOBAL(boolean)42jpeg_start_decompress (j_decompress_ptr cinfo)43{44if (cinfo->global_state == DSTATE_READY) {45/* First call: initialize master control, select active modules */46jinit_master_decompress(cinfo);47if (cinfo->buffered_image) {48/* No more work here; expecting jpeg_start_output next */49cinfo->global_state = DSTATE_BUFIMAGE;50return TRUE;51}52cinfo->global_state = DSTATE_PRELOAD;53}54if (cinfo->global_state == DSTATE_PRELOAD) {55/* If file has multiple scans, absorb them all into the coef buffer */56if (cinfo->inputctl->has_multiple_scans) {57#ifdef D_MULTISCAN_FILES_SUPPORTED58for (;;) {59int retcode;60/* Call progress monitor hook if present */61if (cinfo->progress != NULL)62(*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);63/* Absorb some more input */64retcode = (*cinfo->inputctl->consume_input) (cinfo);65if (retcode == JPEG_SUSPENDED)66return FALSE;67if (retcode == JPEG_REACHED_EOI)68break;69/* Advance progress counter if appropriate */70if (cinfo->progress != NULL &&71(retcode == JPEG_ROW_COMPLETED || retcode == JPEG_REACHED_SOS)) {72if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) {73/* jdmaster underestimated number of scans; ratchet up one scan */74cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows;75}76}77}78#else79ERREXIT(cinfo, JERR_NOT_COMPILED);80#endif /* D_MULTISCAN_FILES_SUPPORTED */81}82cinfo->output_scan_number = cinfo->input_scan_number;83} else if (cinfo->global_state != DSTATE_PRESCAN)84ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);85/* Perform any dummy output passes, and set up for the final pass */86return output_pass_setup(cinfo);87}888990/*91* Set up for an output pass, and perform any dummy pass(es) needed.92* Common subroutine for jpeg_start_decompress and jpeg_start_output.93* Entry: global_state = DSTATE_PRESCAN only if previously suspended.94* Exit: If done, returns TRUE and sets global_state for proper output mode.95* If suspended, returns FALSE and sets global_state = DSTATE_PRESCAN.96*/9798LOCAL(boolean)99output_pass_setup (j_decompress_ptr cinfo)100{101if (cinfo->global_state != DSTATE_PRESCAN) {102/* First call: do pass setup */103(*cinfo->master->prepare_for_output_pass) (cinfo);104cinfo->output_scanline = 0;105cinfo->global_state = DSTATE_PRESCAN;106}107/* Loop over any required dummy passes */108while (cinfo->master->is_dummy_pass) {109#ifdef QUANT_2PASS_SUPPORTED110/* Crank through the dummy pass */111while (cinfo->output_scanline < cinfo->output_height) {112JDIMENSION last_scanline;113/* Call progress monitor hook if present */114if (cinfo->progress != NULL) {115cinfo->progress->pass_counter = (long) cinfo->output_scanline;116cinfo->progress->pass_limit = (long) cinfo->output_height;117(*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);118}119/* Process some data */120last_scanline = cinfo->output_scanline;121(*cinfo->main->process_data) (cinfo, (JSAMPARRAY) NULL,122&cinfo->output_scanline, (JDIMENSION) 0);123if (cinfo->output_scanline == last_scanline)124return FALSE; /* No progress made, must suspend */125}126/* Finish up dummy pass, and set up for another one */127(*cinfo->master->finish_output_pass) (cinfo);128(*cinfo->master->prepare_for_output_pass) (cinfo);129cinfo->output_scanline = 0;130#else131ERREXIT(cinfo, JERR_NOT_COMPILED);132#endif /* QUANT_2PASS_SUPPORTED */133}134/* Ready for application to drive output pass through135* jpeg_read_scanlines or jpeg_read_raw_data.136*/137cinfo->global_state = cinfo->raw_data_out ? DSTATE_RAW_OK : DSTATE_SCANNING;138return TRUE;139}140141142/*143* Enable partial scanline decompression144*145* Must be called after jpeg_start_decompress() and before any calls to146* jpeg_read_scanlines() or jpeg_skip_scanlines().147*148* Refer to libjpeg.txt for more information.149*/150151GLOBAL(void)152jpeg_crop_scanline (j_decompress_ptr cinfo, JDIMENSION *xoffset,153JDIMENSION *width)154{155int ci, align, orig_downsampled_width;156JDIMENSION input_xoffset;157boolean reinit_upsampler = FALSE;158jpeg_component_info *compptr;159160if (cinfo->global_state != DSTATE_SCANNING || cinfo->output_scanline != 0)161ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);162163if (!xoffset || !width)164ERREXIT(cinfo, JERR_BAD_CROP_SPEC);165166/* xoffset and width must fall within the output image dimensions. */167if (*width == 0 || *xoffset + *width > cinfo->output_width)168ERREXIT(cinfo, JERR_WIDTH_OVERFLOW);169170/* No need to do anything if the caller wants the entire width. */171if (*width == cinfo->output_width)172return;173174/* Ensuring the proper alignment of xoffset is tricky. At minimum, it175* must align with an MCU boundary, because:176*177* (1) The IDCT is performed in blocks, and it is not feasible to modify178* the algorithm so that it can transform partial blocks.179* (2) Because of the SIMD extensions, any input buffer passed to the180* upsampling and color conversion routines must be aligned to the181* SIMD word size (for instance, 128-bit in the case of SSE2.) The182* easiest way to accomplish this without copying data is to ensure183* that upsampling and color conversion begin at the start of the184* first MCU column that will be inverse transformed.185*186* In practice, we actually impose a stricter alignment requirement. We187* require that xoffset be a multiple of the maximum MCU column width of all188* of the components (the "iMCU column width.") This is to simplify the189* single-pass decompression case, allowing us to use the same MCU column190* width for all of the components.191*/192if (cinfo->comps_in_scan == 1 && cinfo->num_components == 1)193align = cinfo->_min_DCT_scaled_size;194else195align = cinfo->_min_DCT_scaled_size * cinfo->max_h_samp_factor;196197/* Adjust xoffset to the nearest iMCU boundary <= the requested value */198input_xoffset = *xoffset;199*xoffset = (input_xoffset / align) * align;200201/* Adjust the width so that the right edge of the output image is as202* requested (only the left edge is altered.) It is important that calling203* programs check this value after this function returns, so that they can204* allocate an output buffer with the appropriate size.205*/206*width = *width + input_xoffset - *xoffset;207cinfo->output_width = *width;208209/* Set the first and last iMCU columns that we must decompress. These values210* will be used in single-scan decompressions.211*/212cinfo->master->first_iMCU_col =213(JDIMENSION) (long) (*xoffset) / (long) align;214cinfo->master->last_iMCU_col =215(JDIMENSION) jdiv_round_up((long) (*xoffset + cinfo->output_width),216(long) align) - 1;217218for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;219ci++, compptr++) {220int hsf = (cinfo->comps_in_scan == 1 && cinfo->num_components == 1) ?2211 : compptr->h_samp_factor;222223/* Set downsampled_width to the new output width. */224orig_downsampled_width = compptr->downsampled_width;225compptr->downsampled_width =226(JDIMENSION) jdiv_round_up((long) (cinfo->output_width *227compptr->h_samp_factor),228(long) cinfo->max_h_samp_factor);229if (compptr->downsampled_width < 2 && orig_downsampled_width >= 2)230reinit_upsampler = TRUE;231232/* Set the first and last iMCU columns that we must decompress. These233* values will be used in multi-scan decompressions.234*/235cinfo->master->first_MCU_col[ci] =236(JDIMENSION) (long) (*xoffset * hsf) / (long) align;237cinfo->master->last_MCU_col[ci] =238(JDIMENSION) jdiv_round_up((long) ((*xoffset + cinfo->output_width) *239hsf),240(long) align) - 1;241}242243if (reinit_upsampler) {244cinfo->master->jinit_upsampler_no_alloc = TRUE;245jinit_upsampler(cinfo);246cinfo->master->jinit_upsampler_no_alloc = FALSE;247}248}249250251/*252* Read some scanlines of data from the JPEG decompressor.253*254* The return value will be the number of lines actually read.255* This may be less than the number requested in several cases,256* including bottom of image, data source suspension, and operating257* modes that emit multiple scanlines at a time.258*259* Note: we warn about excess calls to jpeg_read_scanlines() since260* this likely signals an application programmer error. However,261* an oversize buffer (max_lines > scanlines remaining) is not an error.262*/263264GLOBAL(JDIMENSION)265jpeg_read_scanlines (j_decompress_ptr cinfo, JSAMPARRAY scanlines,266JDIMENSION max_lines)267{268JDIMENSION row_ctr;269270if (cinfo->global_state != DSTATE_SCANNING)271ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);272if (cinfo->output_scanline >= cinfo->output_height) {273WARNMS(cinfo, JWRN_TOO_MUCH_DATA);274return 0;275}276277/* Call progress monitor hook if present */278if (cinfo->progress != NULL) {279cinfo->progress->pass_counter = (long) cinfo->output_scanline;280cinfo->progress->pass_limit = (long) cinfo->output_height;281(*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);282}283284/* Process some data */285row_ctr = 0;286(*cinfo->main->process_data) (cinfo, scanlines, &row_ctr, max_lines);287cinfo->output_scanline += row_ctr;288return row_ctr;289}290291292/* Dummy color convert function used by jpeg_skip_scanlines() */293LOCAL(void)294noop_convert (j_decompress_ptr cinfo, JSAMPIMAGE input_buf,295JDIMENSION input_row, JSAMPARRAY output_buf, int num_rows)296{297}298299300/* Dummy quantize function used by jpeg_skip_scanlines() */301LOCAL(void)302noop_quantize (j_decompress_ptr cinfo, JSAMPARRAY input_buf,303JSAMPARRAY output_buf, int num_rows)304{305}306307308/*309* In some cases, it is best to call jpeg_read_scanlines() and discard the310* output, rather than skipping the scanlines, because this allows us to311* maintain the internal state of the context-based upsampler. In these cases,312* we set up and tear down a dummy color converter in order to avoid valgrind313* errors and to achieve the best possible performance.314*/315316LOCAL(void)317read_and_discard_scanlines (j_decompress_ptr cinfo, JDIMENSION num_lines)318{319JDIMENSION n;320void (*color_convert) (j_decompress_ptr cinfo, JSAMPIMAGE input_buf,321JDIMENSION input_row, JSAMPARRAY output_buf,322int num_rows);323void (*color_quantize) (j_decompress_ptr cinfo, JSAMPARRAY input_buf,324JSAMPARRAY output_buf, int num_rows) = NULL;325326color_convert = cinfo->cconvert->color_convert;327cinfo->cconvert->color_convert = noop_convert;328if (cinfo->cquantize && cinfo->cquantize->color_quantize) {329color_quantize = cinfo->cquantize->color_quantize;330cinfo->cquantize->color_quantize = noop_quantize;331}332333for (n = 0; n < num_lines; n++)334jpeg_read_scanlines(cinfo, NULL, 1);335336cinfo->cconvert->color_convert = color_convert;337if (color_quantize)338cinfo->cquantize->color_quantize = color_quantize;339}340341342/*343* Called by jpeg_skip_scanlines(). This partially skips a decompress block by344* incrementing the rowgroup counter.345*/346347LOCAL(void)348increment_simple_rowgroup_ctr (j_decompress_ptr cinfo, JDIMENSION rows)349{350JDIMENSION rows_left;351my_main_ptr main_ptr = (my_main_ptr) cinfo->main;352353/* Increment the counter to the next row group after the skipped rows. */354main_ptr->rowgroup_ctr += rows / cinfo->max_v_samp_factor;355356/* Partially skipping a row group would involve modifying the internal state357* of the upsampler, so read the remaining rows into a dummy buffer instead.358*/359rows_left = rows % cinfo->max_v_samp_factor;360cinfo->output_scanline += rows - rows_left;361362read_and_discard_scanlines(cinfo, rows_left);363}364365/*366* Skips some scanlines of data from the JPEG decompressor.367*368* The return value will be the number of lines actually skipped. If skipping369* num_lines would move beyond the end of the image, then the actual number of370* lines remaining in the image is returned. Otherwise, the return value will371* be equal to num_lines.372*373* Refer to libjpeg.txt for more information.374*/375376GLOBAL(JDIMENSION)377jpeg_skip_scanlines (j_decompress_ptr cinfo, JDIMENSION num_lines)378{379my_main_ptr main_ptr = (my_main_ptr) cinfo->main;380my_coef_ptr coef = (my_coef_ptr) cinfo->coef;381my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample;382JDIMENSION i, x;383int y;384JDIMENSION lines_per_iMCU_row, lines_left_in_iMCU_row, lines_after_iMCU_row;385JDIMENSION lines_to_skip, lines_to_read;386387if (cinfo->global_state != DSTATE_SCANNING)388ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);389390/* Do not skip past the bottom of the image. */391if (cinfo->output_scanline + num_lines >= cinfo->output_height) {392cinfo->output_scanline = cinfo->output_height;393(*cinfo->inputctl->finish_input_pass) (cinfo);394cinfo->inputctl->eoi_reached = TRUE;395return cinfo->output_height - cinfo->output_scanline;396}397398if (num_lines == 0)399return 0;400401lines_per_iMCU_row = cinfo->_min_DCT_scaled_size * cinfo->max_v_samp_factor;402lines_left_in_iMCU_row =403(lines_per_iMCU_row - (cinfo->output_scanline % lines_per_iMCU_row)) %404lines_per_iMCU_row;405lines_after_iMCU_row = num_lines - lines_left_in_iMCU_row;406407/* Skip the lines remaining in the current iMCU row. When upsampling408* requires context rows, we need the previous and next rows in order to read409* the current row. This adds some complexity.410*/411if (cinfo->upsample->need_context_rows) {412/* If the skipped lines would not move us past the current iMCU row, we413* read the lines and ignore them. There might be a faster way of doing414* this, but we are facing increasing complexity for diminishing returns.415* The increasing complexity would be a by-product of meddling with the416* state machine used to skip context rows. Near the end of an iMCU row,417* the next iMCU row may have already been entropy-decoded. In this unique418* case, we will read the next iMCU row if we cannot skip past it as well.419*/420if ((num_lines < lines_left_in_iMCU_row + 1) ||421(lines_left_in_iMCU_row <= 1 && main_ptr->buffer_full &&422lines_after_iMCU_row < lines_per_iMCU_row + 1)) {423read_and_discard_scanlines(cinfo, num_lines);424return num_lines;425}426427/* If the next iMCU row has already been entropy-decoded, make sure that428* we do not skip too far.429*/430if (lines_left_in_iMCU_row <= 1 && main_ptr->buffer_full) {431cinfo->output_scanline += lines_left_in_iMCU_row + lines_per_iMCU_row;432lines_after_iMCU_row -= lines_per_iMCU_row;433} else {434cinfo->output_scanline += lines_left_in_iMCU_row;435}436437/* If we have just completed the first block, adjust the buffer pointers */438if (main_ptr->iMCU_row_ctr == 0 ||439(main_ptr->iMCU_row_ctr == 1 && lines_left_in_iMCU_row > 2))440set_wraparound_pointers(cinfo);441main_ptr->buffer_full = FALSE;442main_ptr->rowgroup_ctr = 0;443main_ptr->context_state = CTX_PREPARE_FOR_IMCU;444upsample->next_row_out = cinfo->max_v_samp_factor;445upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline;446}447448/* Skipping is much simpler when context rows are not required. */449else {450if (num_lines < lines_left_in_iMCU_row) {451increment_simple_rowgroup_ctr(cinfo, num_lines);452return num_lines;453} else {454cinfo->output_scanline += lines_left_in_iMCU_row;455main_ptr->buffer_full = FALSE;456main_ptr->rowgroup_ctr = 0;457upsample->next_row_out = cinfo->max_v_samp_factor;458upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline;459}460}461462/* Calculate how many full iMCU rows we can skip. */463if (cinfo->upsample->need_context_rows)464lines_to_skip = ((lines_after_iMCU_row - 1) / lines_per_iMCU_row) *465lines_per_iMCU_row;466else467lines_to_skip = (lines_after_iMCU_row / lines_per_iMCU_row) *468lines_per_iMCU_row;469/* Calculate the number of lines that remain to be skipped after skipping all470* of the full iMCU rows that we can. We will not read these lines unless we471* have to.472*/473lines_to_read = lines_after_iMCU_row - lines_to_skip;474475/* For images requiring multiple scans (progressive, non-interleaved, etc.),476* all of the entropy decoding occurs in jpeg_start_decompress(), assuming477* that the input data source is non-suspending. This makes skipping easy.478*/479if (cinfo->inputctl->has_multiple_scans) {480if (cinfo->upsample->need_context_rows) {481cinfo->output_scanline += lines_to_skip;482cinfo->output_iMCU_row += lines_to_skip / lines_per_iMCU_row;483main_ptr->iMCU_row_ctr += lines_after_iMCU_row / lines_per_iMCU_row;484/* It is complex to properly move to the middle of a context block, so485* read the remaining lines instead of skipping them.486*/487read_and_discard_scanlines(cinfo, lines_to_read);488} else {489cinfo->output_scanline += lines_to_skip;490cinfo->output_iMCU_row += lines_to_skip / lines_per_iMCU_row;491increment_simple_rowgroup_ctr(cinfo, lines_to_read);492}493upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline;494return num_lines;495}496497/* Skip the iMCU rows that we can safely skip. */498for (i = 0; i < lines_to_skip; i += lines_per_iMCU_row) {499for (y = 0; y < coef->MCU_rows_per_iMCU_row; y++) {500for (x = 0; x < cinfo->MCUs_per_row; x++) {501/* Calling decode_mcu() with a NULL pointer causes it to discard the502* decoded coefficients. This is ~5% faster for large subsets, but503* it's tough to tell a difference for smaller images.504*/505(*cinfo->entropy->decode_mcu) (cinfo, NULL);506}507}508cinfo->input_iMCU_row++;509cinfo->output_iMCU_row++;510if (cinfo->input_iMCU_row < cinfo->total_iMCU_rows)511start_iMCU_row(cinfo);512else513(*cinfo->inputctl->finish_input_pass) (cinfo);514}515cinfo->output_scanline += lines_to_skip;516517if (cinfo->upsample->need_context_rows) {518/* Context-based upsampling keeps track of iMCU rows. */519main_ptr->iMCU_row_ctr += lines_to_skip / lines_per_iMCU_row;520521/* It is complex to properly move to the middle of a context block, so522* read the remaining lines instead of skipping them.523*/524read_and_discard_scanlines(cinfo, lines_to_read);525} else {526increment_simple_rowgroup_ctr(cinfo, lines_to_read);527}528529/* Since skipping lines involves skipping the upsampling step, the value of530* "rows_to_go" will become invalid unless we set it here. NOTE: This is a531* bit odd, since "rows_to_go" seems to be redundantly keeping track of532* output_scanline.533*/534upsample->rows_to_go = cinfo->output_height - cinfo->output_scanline;535536/* Always skip the requested number of lines. */537return num_lines;538}539540/*541* Alternate entry point to read raw data.542* Processes exactly one iMCU row per call, unless suspended.543*/544545GLOBAL(JDIMENSION)546jpeg_read_raw_data (j_decompress_ptr cinfo, JSAMPIMAGE data,547JDIMENSION max_lines)548{549JDIMENSION lines_per_iMCU_row;550551if (cinfo->global_state != DSTATE_RAW_OK)552ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);553if (cinfo->output_scanline >= cinfo->output_height) {554WARNMS(cinfo, JWRN_TOO_MUCH_DATA);555return 0;556}557558/* Call progress monitor hook if present */559if (cinfo->progress != NULL) {560cinfo->progress->pass_counter = (long) cinfo->output_scanline;561cinfo->progress->pass_limit = (long) cinfo->output_height;562(*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);563}564565/* Verify that at least one iMCU row can be returned. */566lines_per_iMCU_row = cinfo->max_v_samp_factor * cinfo->_min_DCT_scaled_size;567if (max_lines < lines_per_iMCU_row)568ERREXIT(cinfo, JERR_BUFFER_SIZE);569570/* Decompress directly into user's buffer. */571if (! (*cinfo->coef->decompress_data) (cinfo, data))572return 0; /* suspension forced, can do nothing more */573574/* OK, we processed one iMCU row. */575cinfo->output_scanline += lines_per_iMCU_row;576return lines_per_iMCU_row;577}578579580/* Additional entry points for buffered-image mode. */581582#ifdef D_MULTISCAN_FILES_SUPPORTED583584/*585* Initialize for an output pass in buffered-image mode.586*/587588GLOBAL(boolean)589jpeg_start_output (j_decompress_ptr cinfo, int scan_number)590{591if (cinfo->global_state != DSTATE_BUFIMAGE &&592cinfo->global_state != DSTATE_PRESCAN)593ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);594/* Limit scan number to valid range */595if (scan_number <= 0)596scan_number = 1;597if (cinfo->inputctl->eoi_reached &&598scan_number > cinfo->input_scan_number)599scan_number = cinfo->input_scan_number;600cinfo->output_scan_number = scan_number;601/* Perform any dummy output passes, and set up for the real pass */602return output_pass_setup(cinfo);603}604605606/*607* Finish up after an output pass in buffered-image mode.608*609* Returns FALSE if suspended. The return value need be inspected only if610* a suspending data source is used.611*/612613GLOBAL(boolean)614jpeg_finish_output (j_decompress_ptr cinfo)615{616if ((cinfo->global_state == DSTATE_SCANNING ||617cinfo->global_state == DSTATE_RAW_OK) && cinfo->buffered_image) {618/* Terminate this pass. */619/* We do not require the whole pass to have been completed. */620(*cinfo->master->finish_output_pass) (cinfo);621cinfo->global_state = DSTATE_BUFPOST;622} else if (cinfo->global_state != DSTATE_BUFPOST) {623/* BUFPOST = repeat call after a suspension, anything else is error */624ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);625}626/* Read markers looking for SOS or EOI */627while (cinfo->input_scan_number <= cinfo->output_scan_number &&628! cinfo->inputctl->eoi_reached) {629if ((*cinfo->inputctl->consume_input) (cinfo) == JPEG_SUSPENDED)630return FALSE; /* Suspend, come back later */631}632cinfo->global_state = DSTATE_BUFIMAGE;633return TRUE;634}635636#endif /* D_MULTISCAN_FILES_SUPPORTED */637638639