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

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

?? jdapistd.c

?? Evc編的一個在wince5.0上運行的flash播放器
?? 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 */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲丝袜精品丝袜在线| 欧美一区二区在线看| 亚洲一区二区av电影| 欧美一区二区三区视频在线| 欧美亚一区二区| 国产黄色91视频| 午夜精品久久久久久久久久| 国产精品网站导航| 欧美一区二区三区视频免费| 777欧美精品| 日本精品视频一区二区三区| 国产精品99久久久久久久女警| 亚洲chinese男男1069| 亚洲欧美自拍偷拍色图| 久久日韩精品一区二区五区| 99re在线精品| 国产精品一区二区久久精品爱涩| 国产麻豆一精品一av一免费| 日韩av二区在线播放| 亚洲精品日日夜夜| 国产精品乱人伦中文| 国产精品家庭影院| 日本一区二区电影| www国产精品av| 国产欧美一区二区精品性色 | 欧美a级理论片| 亚洲愉拍自拍另类高清精品| 亚洲国产乱码最新视频 | 中文字幕欧美区| 国产精品久久久久精k8| 亚洲蜜臀av乱码久久精品蜜桃| 国产精品理论片| 亚洲一区二三区| 国精产品一区一区三区mba视频 | 狠狠久久亚洲欧美| 99这里只有精品| 成人免费高清在线观看| 国产成人在线视频网址| 色综合久久综合网97色综合| 99久久婷婷国产综合精品| 欧美三级在线看| 在线不卡免费欧美| 欧美一区二区在线免费观看| 国产色综合一区| 欧美国产禁国产网站cc| 亚洲最快最全在线视频| 亚洲成av人片在线观看无码| 久久精品99国产精品日本| 久久99久国产精品黄毛片色诱| 精品综合免费视频观看| 99精品国产一区二区三区不卡| 欧美日韩国产影片| 日韩欧美一级片| 国产夜色精品一区二区av| 一级女性全黄久久生活片免费| 久久国产福利国产秒拍| 在线中文字幕一区| 亚洲精品一区二区精华| 欧美韩国日本不卡| 偷拍亚洲欧洲综合| zzijzzij亚洲日本少妇熟睡| 欧美久久一区二区| 国产精品护士白丝一区av| 免费高清在线视频一区·| 色综合色狠狠综合色| 久久久午夜电影| 日韩激情在线观看| 国产不卡视频在线播放| 91丨porny丨中文| 欧美军同video69gay| 国产精品九色蝌蚪自拍| 国产一区二区三区免费播放| 欧美日韩精品三区| 亚洲欧洲综合另类在线| 国产激情一区二区三区四区| 日韩欧美亚洲国产另类 | 91女人视频在线观看| 久久日韩精品一区二区五区| 日韩av一级片| 欧美日韩在线播放一区| 亚洲欧美成aⅴ人在线观看| 懂色av中文字幕一区二区三区| 欧美一级二级在线观看| 欧美激情综合在线| 久久av资源网| 日韩午夜小视频| 香蕉久久夜色精品国产使用方法 | 欧美一级夜夜爽| 亚洲综合色成人| 91蝌蚪porny九色| 亚洲少妇中出一区| 99久免费精品视频在线观看| 中文字幕免费一区| 国产91富婆露脸刺激对白| 久久综合久久99| 国产高清精品网站| 精品蜜桃在线看| 亚洲一区二区三区四区中文字幕 | 国产欧美一区二区三区沐欲 | 欧美精品tushy高清| 天天综合天天综合色| 欧美日韩国产123区| 亚洲高清视频的网址| 精品视频在线看| 日韩主播视频在线| 欧美精品v国产精品v日韩精品| 日韩av网站在线观看| 日韩欧美高清一区| 精品一区二区三区久久| 欧美电影免费观看高清完整版在线观看 | 国产成人免费高清| 欧美国产视频在线| 大桥未久av一区二区三区中文| 欧美高清在线精品一区| 成人免费av资源| 亚洲精品大片www| 欧美三级中文字幕在线观看| 日韩中文字幕麻豆| 精品剧情在线观看| 国产成人av电影在线观看| 国产精品毛片无遮挡高清| 91色porny| 午夜精品久久久久久久99樱桃| 欧美一区二区黄色| 国产精品一区三区| **网站欧美大片在线观看| 欧美在线观看一区二区| 中文字幕日本不卡| 欧美在线free| 日韩精品亚洲一区| 国产日韩欧美a| 在线观看一区不卡| 日本va欧美va精品发布| 久久久久久久久久久久久女国产乱| 国产高清视频一区| 一区二区三区不卡视频在线观看 | 亚洲午夜久久久久| 日韩免费高清av| av男人天堂一区| 五月婷婷欧美视频| 久久精子c满五个校花| 一本到高清视频免费精品| 奇米色一区二区三区四区| 国产亚洲一区二区三区四区| 在线观看不卡一区| 久久成人久久爱| 国产精品国产三级国产| 欧美精品在欧美一区二区少妇| 国产精品一二二区| 亚洲一区二区影院| 国产免费成人在线视频| 欧美视频中文字幕| 国产激情91久久精品导航 | 欧美在线一区二区三区| 久久福利视频一区二区| 依依成人精品视频| 久久亚洲二区三区| 欧美色综合天天久久综合精品| 国产精品一区二区三区乱码| 亚洲一区电影777| 欧美国产国产综合| 日韩欧美视频一区| 色88888久久久久久影院按摩 | 精品国产91九色蝌蚪| 色天天综合色天天久久| 国产精品综合一区二区| 亚洲国产成人va在线观看天堂| 国产无人区一区二区三区| 欧美精品一卡两卡| 一本高清dvd不卡在线观看| 国产乱码精品一品二品| 天堂蜜桃91精品| 亚洲三级电影网站| 国产亚洲精品超碰| 日韩一区二区在线观看视频| 97久久超碰国产精品| 国产精品资源网站| 毛片av一区二区三区| 国产日韩综合av| 欧美一区二区啪啪| 欧美伦理影视网| 91免费观看在线| heyzo一本久久综合| 国产美女精品在线| 日本麻豆一区二区三区视频| 一级中文字幕一区二区| 综合久久给合久久狠狠狠97色| 久久免费国产精品 | 日韩成人一级大片| 亚洲一区二区在线观看视频| 亚洲色图一区二区三区| 国产精品色一区二区三区| 久久精品欧美一区二区三区不卡| 日韩免费电影一区| 欧美一区二视频| 欧美一区二区免费| 日韩一区二区三区四区五区六区| 精品视频在线视频| 欧美日韩国产综合一区二区| 欧美三级在线视频|