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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? jdapistd.c

?? wince下CxImage
?? C
字號:
/*
 * 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 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合久久久久网| 国内精品视频666| 在线区一区二视频| 亚洲一级不卡视频| 欧美日韩视频专区在线播放| 亚洲va欧美va国产va天堂影院| 欧美日韩情趣电影| 久久69国产一区二区蜜臀| 国产日韩三级在线| 色哟哟一区二区| 秋霞午夜鲁丝一区二区老狼| www成人在线观看| 成人一区二区三区中文字幕| 樱桃视频在线观看一区| 欧美一区二区三区在线视频| 国产精一区二区三区| 亚洲人妖av一区二区| 88在线观看91蜜桃国自产| 国产在线麻豆精品观看| 中文字幕日本乱码精品影院| 欧美精品一卡二卡| 国产成人8x视频一区二区| 一区二区三区精品视频在线| 精品久久久久久最新网址| aaa亚洲精品| 免费成人美女在线观看| 国产精品视频一二三区 | 日韩视频免费观看高清完整版| 久久97超碰色| 亚洲精品一二三区| 亚洲精品一线二线三线| 91久久人澡人人添人人爽欧美| 蜜桃视频第一区免费观看| 亚洲国产高清aⅴ视频| 欧美一三区三区四区免费在线看| 国产不卡高清在线观看视频| 午夜国产不卡在线观看视频| 中文乱码免费一区二区| 欧美一区三区二区| 91免费版在线| 国产成人精品一区二| 日本免费在线视频不卡一不卡二 | 91精品欧美综合在线观看最新| 国产suv精品一区二区6| 日本成人在线不卡视频| 自拍视频在线观看一区二区| 精品国产免费人成电影在线观看四季| 91美女片黄在线观看| 国产在线视频一区二区三区| 亚洲国产日韩a在线播放| 国产精品白丝在线| 久久久.com| 久久综合九色综合欧美98| 在线成人av影院| 在线视频亚洲一区| 99久久国产免费看| 国产成人av一区二区三区在线 | 久久成人免费网站| 性做久久久久久| 成人免费在线观看入口| 中文字幕二三区不卡| 国产日韩精品一区二区三区在线| 日韩你懂的电影在线观看| 欧美丰满嫩嫩电影| 欧美天堂一区二区三区| 色一区在线观看| 97国产精品videossex| 成人免费观看视频| 成人av在线播放网址| 成人激情黄色小说| av电影在线不卡| 91在线精品一区二区| 91啪亚洲精品| 在线一区二区视频| 欧美私人免费视频| 欧美日韩电影在线播放| 欧美二区乱c少妇| 3d动漫精品啪啪1区2区免费 | 欧美一区欧美二区| 日韩亚洲国产中文字幕欧美| 欧美一区二区精品在线| 精品人在线二区三区| 精品盗摄一区二区三区| 久久综合九色综合久久久精品综合| 精品日韩一区二区三区| 国产亚洲1区2区3区| 国产欧美日韩精品在线| 亚洲天堂a在线| 亚洲成人综合视频| 男男视频亚洲欧美| 国产一区91精品张津瑜| 成人18视频在线播放| 在线亚洲精品福利网址导航| 欧美日韩国产精品成人| 欧美www视频| 亚洲国产精品成人综合| 一区二区三区美女| 欧美bbbbb| 国产+成+人+亚洲欧洲自线| 色综合夜色一区| 欧美一区二区精品久久911| 久久婷婷国产综合国色天香| 国产精品成人免费| 午夜国产精品一区| 国产成人精品www牛牛影视| 色哦色哦哦色天天综合| 欧美一区二区三区视频| 中文字幕av一区二区三区免费看| 亚洲黄色片在线观看| 麻豆精品新av中文字幕| 99久久精品费精品国产一区二区| 欧美另类久久久品| 国产欧美日韩不卡免费| 午夜精品免费在线| 国产九色sp调教91| 欧美在线综合视频| 久久免费看少妇高潮| 亚洲最新视频在线播放| 国产精品一区二区无线| 欧美午夜精品久久久久久孕妇| 精品福利视频一区二区三区| 一区二区三区影院| 国产精一品亚洲二区在线视频| 在线免费观看视频一区| 久久精品欧美一区二区三区不卡| 亚洲一区二区三区在线看| 国产精品18久久久久久vr| 欧美性三三影院| 国产午夜亚洲精品羞羞网站| 日韩国产一二三区| 色婷婷av一区二区三区gif| 久久综合狠狠综合久久综合88 | 国产91高潮流白浆在线麻豆| 欧美日韩国产综合一区二区三区 | 欧美精品一级二级| 成人欧美一区二区三区小说| 九一九一国产精品| 欧美剧在线免费观看网站 | 日韩欧美亚洲另类制服综合在线| 18成人在线视频| 国产伦精品一区二区三区免费迷| 3751色影院一区二区三区| 国产精品国产自产拍高清av王其| 国内精品免费**视频| 欧美日韩情趣电影| 亚洲精品va在线观看| 成人黄页在线观看| 国产日产欧美精品一区二区三区| 日本成人在线不卡视频| 精品视频在线免费观看| 亚洲免费观看高清完整版在线观看熊 | 欧美日韩国产精品自在自线| 国产精品国产自产拍高清av| 国产精品99久久不卡二区| 日韩一区和二区| 天堂成人国产精品一区| 欧美日韩国产bt| 亚洲国产精品久久久久婷婷884| 色呦呦日韩精品| 亚洲码国产岛国毛片在线| 91香蕉视频污| 亚洲精选一二三| 色琪琪一区二区三区亚洲区| 亚洲免费伊人电影| 欧洲激情一区二区| 亚洲超丰满肉感bbw| 欧美三级蜜桃2在线观看| 亚洲一本大道在线| 717成人午夜免费福利电影| 丝袜美腿亚洲色图| 91麻豆精品91久久久久久清纯| 五月开心婷婷久久| 日韩一区二区精品在线观看| 美女mm1313爽爽久久久蜜臀| 精品少妇一区二区三区| 国产高清在线观看免费不卡| 国产午夜精品一区二区三区视频| 丁香婷婷综合网| 亚洲婷婷综合色高清在线| 在线观看一区日韩| 亚洲成人免费视频| 日韩一级大片在线| 国产精品一区二区三区四区| 国产精品国产馆在线真实露脸| 色偷偷久久人人79超碰人人澡| 亚洲一区在线观看免费| 日韩一二三四区| 夫妻av一区二区| 一区二区三区日韩欧美精品 | 日本在线不卡视频一二三区| 欧美mv日韩mv亚洲| 成人一区在线看| 亚洲一区二区高清| 日韩欧美区一区二| 成人成人成人在线视频| 亚洲大片精品永久免费| 精品日韩av一区二区| 99久久久久久99| 日韩精品电影在线| 日本一区二区在线不卡|