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

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

?? jdapistd.c

?? JPEG source code converts the image into compressed format
?? 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一区二区三区免费野_久草精品视频
国产精品久久综合| 日韩一区二区三区在线| 国产欧美一区二区精品久导航| 美女被吸乳得到大胸91| 日韩美女视频一区二区在线观看| 麻豆成人av在线| 久久日一线二线三线suv| 国产99久久久国产精品潘金| 国产精品国产精品国产专区不蜜| 波多野结衣中文字幕一区二区三区 | 欧美高清在线视频| 国产**成人网毛片九色 | 日本欧美大码aⅴ在线播放| 精品免费一区二区三区| 国产馆精品极品| 亚洲美腿欧美偷拍| 欧美一级日韩免费不卡| 国产一区二区三区免费观看| 中文字幕亚洲区| 在线播放中文一区| 国产精品资源在线看| 中文字幕视频一区二区三区久| 欧美日韩国产综合一区二区三区 | 日本不卡一二三区黄网| 久久久久久久久久久久久夜| 色婷婷av一区二区| 卡一卡二国产精品 | 波多野结衣亚洲| 亚洲电影一区二区| 久久亚洲二区三区| 成人av电影在线| 奇米888四色在线精品| 中文字幕中文字幕中文字幕亚洲无线| 色偷偷久久人人79超碰人人澡| 日韩成人免费看| 国产精品久久久久久久久免费相片 | 国产亚洲欧洲997久久综合| 99精品在线观看视频| 色综合久久久久久久久久久| 男人操女人的视频在线观看欧美| 中文字幕日韩欧美一区二区三区| 欧美一区二区免费观在线| 99在线精品视频| 国产一区二区三区免费| 天天色天天操综合| 中文字幕日韩av资源站| 欧美tickling挠脚心丨vk| 欧美在线你懂得| 成人精品gif动图一区| 美女视频黄免费的久久| 亚洲精品成人天堂一二三| 日韩欧美在线观看一区二区三区| 91在线看国产| 国产乱子伦一区二区三区国色天香| 亚洲激情第一区| 久久久国产精华| 91精品国产麻豆| 欧洲精品在线观看| 不卡视频免费播放| 成人高清在线视频| 国产在线精品国自产拍免费| 视频一区国产视频| 午夜婷婷国产麻豆精品| 一片黄亚洲嫩模| 亚洲视频图片小说| 国产精品久久三区| 中文字幕精品一区二区精品绿巨人| 久久伊人蜜桃av一区二区| 欧美一区二区女人| 日韩一级免费观看| 日韩精品一区二区三区在线观看| 欧美高清一级片在线| 欧美日韩一区久久| 欧美日韩高清一区| 欧美福利一区二区| 日韩西西人体444www| 欧美一级高清大全免费观看| 在线播放欧美女士性生活| 欧美精品丝袜中出| 欧美疯狂做受xxxx富婆| 制服丝袜亚洲播放| 日韩欧美精品在线视频| 日韩欧美亚洲一区二区| 日韩欧美美女一区二区三区| 欧美tk—视频vk| 国产三级久久久| 国产精品美女视频| 亚洲蜜臀av乱码久久精品| 亚洲韩国一区二区三区| 午夜国产精品一区| 蜜臀久久99精品久久久画质超高清| 免费看欧美女人艹b| 国产精品一区在线观看乱码 | 成人做爰69片免费看网站| eeuss影院一区二区三区| 99久久综合精品| 色婷婷一区二区三区四区| 欧美日韩一区成人| 天天色综合成人网| 麻豆精品久久精品色综合| 国产资源精品在线观看| 成人av手机在线观看| 91电影在线观看| 91麻豆精品国产91久久久久久久久 | 亚洲综合免费观看高清完整版| 亚洲国产va精品久久久不卡综合| 免费看精品久久片| 成人性生交大片免费看中文网站| 色欧美乱欧美15图片| 欧美日韩精品一区二区三区蜜桃 | 精品盗摄一区二区三区| 欧美韩日一区二区三区四区| 一区二区在线观看av| 蜜桃一区二区三区在线观看| 成人晚上爱看视频| 7799精品视频| 国产精品理论片| 日韩av网站在线观看| 成人午夜精品在线| 538在线一区二区精品国产| 国产亚洲美州欧州综合国| 亚洲一线二线三线久久久| 国产一区亚洲一区| 在线视频你懂得一区二区三区| 精品国产免费视频| 午夜伊人狠狠久久| 丁香婷婷深情五月亚洲| 91精品在线一区二区| 国产精品国产三级国产aⅴ中文| 日韩精品久久久久久| 91玉足脚交白嫩脚丫在线播放| 欧美一级电影网站| 一区二区三区在线免费视频| 国产美女av一区二区三区| 欧美日韩电影在线播放| 国产精品日韩成人| 久久精品999| 欧美美女直播网站| 亚洲欧美电影一区二区| 国产尤物一区二区在线 | 欧美大白屁股肥臀xxxxxx| 成人小视频免费在线观看| 日韩久久精品一区| 亚洲大型综合色站| 成人精品电影在线观看| 精品免费一区二区三区| 日韩综合一区二区| 欧洲国内综合视频| 亚洲久草在线视频| 91天堂素人约啪| 国产精品欧美一级免费| 国产麻豆精品在线| 精品区一区二区| 奇米综合一区二区三区精品视频| 欧美性猛交xxxx黑人交| 亚洲人一二三区| av亚洲精华国产精华精华| 久久精品视频在线免费观看| 国产在线播放一区| 久久婷婷综合激情| 国产一区二区三区蝌蚪| 精品少妇一区二区三区| 秋霞午夜鲁丝一区二区老狼| 欧美精品视频www在线观看| 亚洲成人久久影院| 欧美日韩国产经典色站一区二区三区 | 色一情一乱一乱一91av| 18成人在线观看| 99re成人精品视频| 亚洲天堂免费看| 91精品91久久久中77777| 亚洲少妇屁股交4| 色综合一区二区| 夜夜精品视频一区二区| 在线免费亚洲电影| 亚洲电影在线播放| 欧美一卡二卡三卡| 久久国产剧场电影| 2020国产精品| 成人免费视频免费观看| √…a在线天堂一区| 在线视频欧美区| 日韩电影在线看| 精品卡一卡二卡三卡四在线| 国精品**一区二区三区在线蜜桃| 国产三级精品视频| 91丨九色丨尤物| 视频精品一区二区| 精品国产免费一区二区三区香蕉| 国产成人av电影在线| 亚洲三级电影全部在线观看高清| 欧美午夜免费电影| 国内外成人在线| 亚洲丝袜美腿综合| 欧美老肥妇做.爰bbww| 国产老女人精品毛片久久| 亚洲色图另类专区| 制服丝袜在线91| www.激情成人| 人人爽香蕉精品|