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

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

?? jdapistd.c

?? About JPEG, executable on Visual C++
?? C
字號:
////////////////////////////////////////////////////////////////////////
//
//	Note : this file is included as part of the Smaller Animals Software
//	JpegFile package. Though this file has not been modified from it's 
//	original IJG 6a form, it is not the responsibility on the Independent
//	JPEG Group to answer questions regarding this code.
//	
//	Any questions you have about this code should be addressed to :
//
//	CHRISDL@PAGESZ.NET	- the distributor of this package.
//
//	Remember, by including this code in the JpegFile package, Smaller 
//	Animals Software assumes all responsibilities for answering questions
//	about it. If we (SA Software) can't answer your questions ourselves, we 
//	will direct you to people who can.
//
//	Thanks, CDL.
//
////////////////////////////////////////////////////////////////////////

/*
 * 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一区二区三区免费野_久草精品视频
国产精品免费观看视频| 中文一区一区三区高中清不卡| 成人影视亚洲图片在线| 国产老女人精品毛片久久| 国产在线精品一区在线观看麻豆| 毛片基地黄久久久久久天堂| 久久99久久精品| 国产一区不卡视频| av一二三不卡影片| 色婷婷精品久久二区二区蜜臀av| 欧美老女人在线| 麻豆成人91精品二区三区| 日韩一级完整毛片| 成人午夜av影视| 亚洲综合一二三区| 亚洲视频狠狠干| 色欧美片视频在线观看 | 欧美日韩一级黄| 奇米精品一区二区三区在线观看| 国产香蕉久久精品综合网| 91黄色小视频| 韩国女主播成人在线观看| 中文字幕一区二区三区精华液| 欧美日韩一区二区三区视频| 九色综合狠狠综合久久| 亚洲欧美国产三级| 日韩欧美国产电影| 99国产一区二区三精品乱码| 日日欢夜夜爽一区| 国产精品欧美一级免费| 欧美一区二区三区精品| aaa欧美大片| 激情偷乱视频一区二区三区| 亚洲欧洲精品天堂一级| 91精品国产色综合久久| 粉嫩aⅴ一区二区三区四区五区| 亚洲第一会所有码转帖| 国产午夜亚洲精品不卡| 9191成人精品久久| 一本一本久久a久久精品综合麻豆| 美国精品在线观看| 亚洲一区二区中文在线| 中文在线免费一区三区高中清不卡| 在线播放国产精品二区一二区四区| 国产乱子伦视频一区二区三区 | 亚洲特级片在线| 欧美大白屁股肥臀xxxxxx| 在线观看一区二区视频| 国产电影一区二区三区| 男女男精品视频| 亚洲精品国产精华液| 中文字幕在线观看一区二区| 男男视频亚洲欧美| 午夜精品久久久久久久| 亚洲精品一区二区三区蜜桃下载| 高潮精品一区videoshd| 国产天堂亚洲国产碰碰| av不卡免费电影| 一区二区三区中文字幕在线观看| 色婷婷综合久久久久中文一区二区| 国产欧美在线观看一区| 欧美日精品一区视频| av在线一区二区三区| 日本不卡高清视频| 天天综合日日夜夜精品| 亚洲图片欧美综合| 亚洲午夜久久久久久久久久久 | 亚洲精品欧美综合四区| 国产精品乱人伦中文| 久久久天堂av| 国产欧美一区二区三区在线老狼| 欧美成人猛片aaaaaaa| 日韩一区二区视频| 欧美一区二区播放| 日韩午夜在线影院| 日韩一区二区三区电影在线观看 | 久久国产免费看| 美日韩一区二区| 久久草av在线| 久久91精品国产91久久小草| 久久99精品久久久久久国产越南| 蜜桃久久精品一区二区| 久久精品国产**网站演员| 精品制服美女丁香| 国产精品亚洲第一区在线暖暖韩国 | 国产传媒日韩欧美成人| 激情五月播播久久久精品| 国产精品99精品久久免费| 成人avav影音| 91色综合久久久久婷婷| 欧美午夜精品久久久久久孕妇| 欧美日韩高清一区二区不卡| 日韩一级成人av| 国产日韩影视精品| 一区二区三区在线高清| 日韩综合在线视频| 久久久久88色偷偷免费| www.欧美.com| 亚洲成人午夜影院| 日韩国产成人精品| 伊人一区二区三区| 久久精品夜色噜噜亚洲aⅴ| 欧美精三区欧美精三区| 精品国产一区二区精华| 亚洲欧美偷拍卡通变态| 国产三级精品视频| 中文字幕一区二区5566日韩| 中文字幕亚洲区| 一区二区在线观看不卡| 香蕉久久夜色精品国产使用方法 | 欧美色欧美亚洲另类二区| 成人午夜视频免费看| 成人午夜又粗又硬又大| 日本道精品一区二区三区| 欧美日产在线观看| 国产日韩欧美高清在线| 亚洲一区视频在线| 国产乱码精品一区二区三区忘忧草 | 精品国产免费人成电影在线观看四季 | 欧美综合一区二区三区| 欧美成人在线直播| 日韩理论片网站| 日本vs亚洲vs韩国一区三区| 国产高清不卡一区二区| 在线成人小视频| 国产精品电影院| 久久精品72免费观看| 色哟哟国产精品免费观看| 2023国产一二三区日本精品2022| 亚洲一区在线看| 成人免费视频一区二区| 91麻豆精品国产91久久久更新时间| 国产喷白浆一区二区三区| 免费成人av资源网| 欧洲日韩一区二区三区| 国产欧美综合在线观看第十页| 秋霞电影网一区二区| 欧洲一区二区三区在线| 中文字幕成人网| 激情文学综合插| 欧美一区二区三区精品| 亚洲午夜激情av| 色一区在线观看| 亚洲特黄一级片| 成人av午夜电影| 欧美韩日一区二区三区四区| 精品综合久久久久久8888| 欧美三级视频在线观看| 亚洲欧美另类综合偷拍| 成人精品视频一区二区三区 | 中文字幕第一页久久| 国产在线播放一区三区四| 日韩一区二区中文字幕| 亚洲午夜在线观看视频在线| 91猫先生在线| 综合自拍亚洲综合图不卡区| 国产jizzjizz一区二区| 久久久九九九九| 国产精品18久久久久久久久| 日韩精品资源二区在线| 免费不卡在线观看| 欧美一区二区视频在线观看2020 | 亚洲自拍偷拍网站| 色系网站成人免费| 亚洲综合色自拍一区| 欧美亚洲高清一区| 午夜av一区二区| 欧美女孩性生活视频| 日韩精品一区第一页| 欧美一级午夜免费电影| 麻豆成人av在线| 国产色综合一区| 成人伦理片在线| 亚洲人成影院在线观看| 欧美影院午夜播放| 视频一区视频二区中文字幕| 欧美一区二区三区不卡| 国产在线精品免费av| 亚洲国产精品成人久久综合一区| 风间由美一区二区av101| 亚洲欧洲精品天堂一级| 色婷婷综合久久| 丝袜诱惑亚洲看片| 精品人在线二区三区| 大美女一区二区三区| 1024精品合集| 欧美日韩高清一区二区不卡| 蜜臀av性久久久久av蜜臀妖精| 久久综合成人精品亚洲另类欧美| 国产福利一区二区| 亚洲视频在线一区观看| 欧美日韩亚洲综合一区| 久久国产婷婷国产香蕉| 国产精品人成在线观看免费| 99久久国产综合色|国产精品| 亚洲曰韩产成在线| 精品播放一区二区| 一本久久精品一区二区| 热久久一区二区| 亚洲视频狠狠干|