亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? jdapistd.c

?? windows CE下jpeg壓縮源碼
?? C
字號(hào):
/*
 * jdapistd.c
 *
 * Copyright (C) 1994-1996, Thomas G. Lane.
 * This file is part of the Independent JPEG Group's software.
 * For conditions of distribution and use, see the accompanying README file.
 *
 * This file contains application interface code for the decompression half
 * of the JPEG library.  These are the "standard" API routines that are
 * used in the normal full-decompression case.  They are not used by a
 * transcoding-only application.  Note that if an application links in
 * jpeg_start_decompress, it will end up linking in the entire decompressor.
 * We thus must separate this file from jdapimin.c to avoid linking the
 * whole decompression library into a transcoder.
 */

#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"


/* Forward declarations */
LOCAL(boolean) output_pass_setup JPP((j_decompress_ptr cinfo));


/*
 * Decompression initialization.
 * jpeg_read_header must be completed before calling this.
 *
 * If a multipass operating mode was selected, this will do all but the
 * last pass, and thus may take a great deal of time.
 *
 * Returns FALSE if suspended.  The return value need be inspected only if
 * a suspending data source is used.
 */

GLOBAL(boolean)
jpeg_start_decompress (j_decompress_ptr cinfo)
{
  if (cinfo->global_state == DSTATE_READY) {
    /* First call: initialize master control, select active modules */
    jinit_master_decompress(cinfo);
    if (cinfo->buffered_image) {
      /* No more work here; expecting jpeg_start_output next */
      cinfo->global_state = DSTATE_BUFIMAGE;
      return TRUE;
    }
    cinfo->global_state = DSTATE_PRELOAD;
  }
  if (cinfo->global_state == DSTATE_PRELOAD) {
    /* If file has multiple scans, absorb them all into the coef buffer */
    if (cinfo->inputctl->has_multiple_scans) {
#ifdef D_MULTISCAN_FILES_SUPPORTED
      for (;;) {
	int retcode;
	/* Call progress monitor hook if present */
	if (cinfo->progress != NULL)
	  (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);
	/* Absorb some more input */
	retcode = (*cinfo->inputctl->consume_input) (cinfo);
	if (retcode == JPEG_SUSPENDED)
	  return FALSE;
	if (retcode == JPEG_REACHED_EOI)
	  break;
	/* Advance progress counter if appropriate */
	if (cinfo->progress != NULL &&
	    (retcode == JPEG_ROW_COMPLETED || retcode == JPEG_REACHED_SOS)) {
	  if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) {
	    /* jdmaster underestimated number of scans; ratchet up one scan */
	    cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows;
	  }
	}
      }
#else
      ERREXIT(cinfo, JERR_NOT_COMPILED);
#endif /* D_MULTISCAN_FILES_SUPPORTED */
    }
    cinfo->output_scan_number = cinfo->input_scan_number;
  } else if (cinfo->global_state != DSTATE_PRESCAN)
    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
  /* Perform any dummy output passes, and set up for the final pass */
  return output_pass_setup(cinfo);
}


/*
 * Set up for an output pass, and perform any dummy pass(es) needed.
 * Common subroutine for jpeg_start_decompress and jpeg_start_output.
 * Entry: global_state = DSTATE_PRESCAN only if previously suspended.
 * Exit: If done, returns TRUE and sets global_state for proper output mode.
 *       If suspended, returns FALSE and sets global_state = DSTATE_PRESCAN.
 */

LOCAL(boolean)
output_pass_setup (j_decompress_ptr cinfo)
{
  if (cinfo->global_state != DSTATE_PRESCAN) {
    /* First call: do pass setup */
    (*cinfo->master->prepare_for_output_pass) (cinfo);
    cinfo->output_scanline = 0;
    cinfo->global_state = DSTATE_PRESCAN;
  }
  /* Loop over any required dummy passes */
  while (cinfo->master->is_dummy_pass) {
#ifdef QUANT_2PASS_SUPPORTED
    /* Crank through the dummy pass */
    while (cinfo->output_scanline < cinfo->output_height) {
      JDIMENSION last_scanline;
      /* Call progress monitor hook if present */
      if (cinfo->progress != NULL) {
	cinfo->progress->pass_counter = (long) cinfo->output_scanline;
	cinfo->progress->pass_limit = (long) cinfo->output_height;
	(*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);
      }
      /* Process some data */
      last_scanline = cinfo->output_scanline;
      (*cinfo->main->process_data) (cinfo, (JSAMPARRAY) NULL,
				    &cinfo->output_scanline, (JDIMENSION) 0);
      if (cinfo->output_scanline == last_scanline)
	return FALSE;		/* No progress made, must suspend */
    }
    /* Finish up dummy pass, and set up for another one */
    (*cinfo->master->finish_output_pass) (cinfo);
    (*cinfo->master->prepare_for_output_pass) (cinfo);
    cinfo->output_scanline = 0;
#else
    ERREXIT(cinfo, JERR_NOT_COMPILED);
#endif /* QUANT_2PASS_SUPPORTED */
  }
  /* Ready for application to drive output pass through
   * jpeg_read_scanlines or jpeg_read_raw_data.
   */
  cinfo->global_state = cinfo->raw_data_out ? DSTATE_RAW_OK : DSTATE_SCANNING;
  return TRUE;
}


/*
 * Read some scanlines of data from the JPEG decompressor.
 *
 * The return value will be the number of lines actually read.
 * This may be less than the number requested in several cases,
 * including bottom of image, data source suspension, and operating
 * modes that emit multiple scanlines at a time.
 *
 * Note: we warn about excess calls to jpeg_read_scanlines() since
 * this likely signals an application programmer error.  However,
 * an oversize buffer (max_lines > scanlines remaining) is not an error.
 */

GLOBAL(JDIMENSION)
jpeg_read_scanlines (j_decompress_ptr cinfo, JSAMPARRAY scanlines,
		     JDIMENSION max_lines)
{
  JDIMENSION row_ctr;

  if (cinfo->global_state != DSTATE_SCANNING)
    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
  if (cinfo->output_scanline >= cinfo->output_height) {
    WARNMS(cinfo, JWRN_TOO_MUCH_DATA);
    return 0;
  }

  /* Call progress monitor hook if present */
  if (cinfo->progress != NULL) {
    cinfo->progress->pass_counter = (long) cinfo->output_scanline;
    cinfo->progress->pass_limit = (long) cinfo->output_height;
    (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);
  }

  /* Process some data */
  row_ctr = 0;
  (*cinfo->main->process_data) (cinfo, scanlines, &row_ctr, max_lines);
  cinfo->output_scanline += row_ctr;
  return row_ctr;
}


/*
 * Alternate entry point to read raw data.
 * Processes exactly one iMCU row per call, unless suspended.
 */

GLOBAL(JDIMENSION)
jpeg_read_raw_data (j_decompress_ptr cinfo, JSAMPIMAGE data,
		    JDIMENSION max_lines)
{
  JDIMENSION lines_per_iMCU_row;

  if (cinfo->global_state != DSTATE_RAW_OK)
    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
  if (cinfo->output_scanline >= cinfo->output_height) {
    WARNMS(cinfo, JWRN_TOO_MUCH_DATA);
    return 0;
  }

  /* Call progress monitor hook if present */
  if (cinfo->progress != NULL) {
    cinfo->progress->pass_counter = (long) cinfo->output_scanline;
    cinfo->progress->pass_limit = (long) cinfo->output_height;
    (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);
  }

  /* Verify that at least one iMCU row can be returned. */
  lines_per_iMCU_row = cinfo->max_v_samp_factor * cinfo->min_DCT_scaled_size;
  if (max_lines < lines_per_iMCU_row)
    ERREXIT(cinfo, JERR_BUFFER_SIZE);

  /* Decompress directly into user's buffer. */
  if (! (*cinfo->coef->decompress_data) (cinfo, data))
    return 0;			/* suspension forced, can do nothing more */

  /* OK, we processed one iMCU row. */
  cinfo->output_scanline += lines_per_iMCU_row;
  return lines_per_iMCU_row;
}


/* Additional entry points for buffered-image mode. */

#ifdef D_MULTISCAN_FILES_SUPPORTED

/*
 * Initialize for an output pass in buffered-image mode.
 */

GLOBAL(boolean)
jpeg_start_output (j_decompress_ptr cinfo, int scan_number)
{
  if (cinfo->global_state != DSTATE_BUFIMAGE &&
      cinfo->global_state != DSTATE_PRESCAN)
    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
  /* Limit scan number to valid range */
  if (scan_number <= 0)
    scan_number = 1;
  if (cinfo->inputctl->eoi_reached &&
      scan_number > cinfo->input_scan_number)
    scan_number = cinfo->input_scan_number;
  cinfo->output_scan_number = scan_number;
  /* Perform any dummy output passes, and set up for the real pass */
  return output_pass_setup(cinfo);
}


/*
 * Finish up after an output pass in buffered-image mode.
 *
 * Returns FALSE if suspended.  The return value need be inspected only if
 * a suspending data source is used.
 */

GLOBAL(boolean)
jpeg_finish_output (j_decompress_ptr cinfo)
{
  if ((cinfo->global_state == DSTATE_SCANNING ||
       cinfo->global_state == DSTATE_RAW_OK) && cinfo->buffered_image) {
    /* Terminate this pass. */
    /* We do not require the whole pass to have been completed. */
    (*cinfo->master->finish_output_pass) (cinfo);
    cinfo->global_state = DSTATE_BUFPOST;
  } else if (cinfo->global_state != DSTATE_BUFPOST) {
    /* BUFPOST = repeat call after a suspension, anything else is error */
    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
  }
  /* Read markers looking for SOS or EOI */
  while (cinfo->input_scan_number <= cinfo->output_scan_number &&
	 ! cinfo->inputctl->eoi_reached) {
    if ((*cinfo->inputctl->consume_input) (cinfo) == JPEG_SUSPENDED)
      return FALSE;		/* Suspend, come back later */
  }
  cinfo->global_state = DSTATE_BUFIMAGE;
  return TRUE;
}

#endif /* D_MULTISCAN_FILES_SUPPORTED */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区播放| 欧美精品一区二区久久婷婷| 免费高清在线视频一区·| 久久精品亚洲乱码伦伦中文| 在线亚洲欧美专区二区| 国产在线精品免费| 亚州成人在线电影| 亚洲欧美福利一区二区| 久久久777精品电影网影网 | 香蕉久久夜色精品国产使用方法| 2024国产精品| 日韩一区二区三区免费看| 日本久久一区二区| 成人激情视频网站| 国产一区二区三区免费在线观看| 亚洲成人免费在线| 亚洲老司机在线| 中文字幕在线播放不卡一区| 久久影院视频免费| 精品第一国产综合精品aⅴ| 欧美日韩国产另类一区| 色av成人天堂桃色av| 成人免费观看av| 国产高清不卡一区| 国产一区二区在线看| 免费观看一级特黄欧美大片| 三级成人在线视频| 亚洲一区免费在线观看| 一区二区三区四区精品在线视频| 亚洲欧洲av在线| 中文字幕中文字幕在线一区 | 久久欧美一区二区| 精品久久久久久久久久久久包黑料 | 日韩精品一区二区三区在线| 欧美精品123区| 欧美日产在线观看| 欧美久久久久中文字幕| 欧美三级在线看| 8x8x8国产精品| 4438亚洲最大| 欧美一区二区三区电影| 日韩网站在线看片你懂的| 日韩欧美一级特黄在线播放| 日韩欧美色综合| 久久久不卡网国产精品一区| 久久久久99精品一区| 国产日韩成人精品| **欧美大码日韩| 亚洲老妇xxxxxx| 五月天丁香久久| 日韩主播视频在线| 毛片一区二区三区| 国内成+人亚洲+欧美+综合在线| 久久丁香综合五月国产三级网站| 老司机午夜精品| 国产成人综合亚洲91猫咪| 成人精品小蝌蚪| 色婷婷久久久久swag精品| 欧美在线小视频| 欧美日韩一区在线| 欧美一区二区三区的| 国产亚洲精品久| 日韩美女视频19| 五月天精品一区二区三区| 国模套图日韩精品一区二区| 成人永久aaa| 91精品福利视频| 欧美sm极限捆绑bd| 最近中文字幕一区二区三区| 亚洲成人av电影在线| 久久精品国产精品青草| 成人av网在线| 欧美精三区欧美精三区| 国产欧美一区二区精品秋霞影院 | 另类专区欧美蜜桃臀第一页| 国产精品1区2区| 色婷婷av一区| 日韩精品一区二区三区三区免费| 日本一区二区综合亚洲| 午夜一区二区三区在线观看| 黄网站免费久久| 在线观看亚洲精品| 亚洲精品一区二区三区蜜桃下载 | 国产偷国产偷亚洲高清人白洁| 中文字幕综合网| 久久精品久久综合| 91免费看`日韩一区二区| 91精品国产综合久久精品app| 中文字幕精品在线不卡| 日日摸夜夜添夜夜添精品视频| 成人午夜av影视| 日韩欧美一级在线播放| 亚洲精品老司机| 国产成人精品网址| 67194成人在线观看| 亚洲日本免费电影| 国产真实乱子伦精品视频| 欧美自拍丝袜亚洲| 国产欧美精品区一区二区三区| 天天亚洲美女在线视频| 99久久精品免费精品国产| 欧美不卡123| 丝袜美腿亚洲一区| 一道本成人在线| 欧美激情一区在线| 精品一区二区久久| 正在播放亚洲一区| 一区二区三区免费看视频| 国产精品18久久久久| 91精品国产欧美一区二区18| 一区二区三区在线观看国产 | 777精品伊人久久久久大香线蕉| 国产精品成人网| 国产成人啪免费观看软件| 日韩欧美中文字幕精品| 一区二区三区在线视频免费| 成人黄色a**站在线观看| 26uuu另类欧美| 久久成人综合网| 91麻豆精品国产91久久久久| 亚洲一区二区免费视频| 色乱码一区二区三区88| 亚洲天堂精品视频| 99久久精品国产一区| 国产日韩欧美a| 国产成人在线电影| 日本一区二区三区国色天香 | 欧美亚洲一区三区| 一区二区成人在线| 在线免费精品视频| 亚洲精品ww久久久久久p站| av一区二区三区在线| 欧美国产一区二区| hitomi一区二区三区精品| 国产精品欧美一区二区三区| 成人动漫精品一区二区| 国产精品国产自产拍高清av王其 | 一区二区欧美视频| 91激情在线视频| 亚洲综合一区二区三区| 欧美日韩卡一卡二| 午夜精品久久久久久久| 欧美一区日韩一区| 久久精品国产**网站演员| 欧美成人乱码一区二区三区| 韩国精品免费视频| 亚洲国产成人自拍| 91啪亚洲精品| 香蕉久久夜色精品国产使用方法| 欧美片网站yy| 国产一区二区美女| 中文字幕在线不卡一区| 日本精品一级二级| 视频在线观看一区| 日韩精品一区二区三区四区 | 亚洲一区免费观看| 51久久夜色精品国产麻豆| 久草热8精品视频在线观看| xfplay精品久久| 菠萝蜜视频在线观看一区| 一区二区三区四区高清精品免费观看| 色94色欧美sute亚洲线路一ni| 午夜精品视频在线观看| 2欧美一区二区三区在线观看视频| 国产夫妻精品视频| 亚洲与欧洲av电影| 日韩免费在线观看| 成人av在线影院| 亚洲sss视频在线视频| 久久婷婷综合激情| 91久久奴性调教| 国产中文字幕一区| 亚洲另类在线一区| 欧美va亚洲va在线观看蝴蝶网| 成年人网站91| 香蕉成人啪国产精品视频综合网| 26uuu精品一区二区三区四区在线| 成人精品国产福利| 午夜精品久久久久久久久久久| 精品少妇一区二区三区在线播放 | 久久av中文字幕片| 中文字幕一区二区三区不卡在线 | 国产精品视频看| 欧美喷潮久久久xxxxx| 成人性色生活片免费看爆迷你毛片| 亚洲精品国产一区二区三区四区在线| 欧美一区二区三区免费大片| 波多野结衣在线一区| 青青草国产成人av片免费| 国产精品国产馆在线真实露脸| 欧美日韩三级一区二区| 粉嫩aⅴ一区二区三区四区五区| 亚洲电影一区二区三区| 欧美激情艳妇裸体舞| 欧美一区二区不卡视频| 色婷婷狠狠综合| 高清不卡在线观看| 麻豆一区二区三区| 亚洲国产精品精华液网站| 国产精品视频看|