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

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

?? jdapistd.c

?? 基于Linux的ffmepg decoder
?? 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); // process_data_simple_main() or process_data_context_main()
  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久久综合99久久综合网站| 亚洲视频狠狠干| 欧美性xxxxxx少妇| 青青草国产成人av片免费| 精品美女一区二区| 成人久久视频在线观看| 亚洲黄色小视频| 欧美电影在线免费观看| 激情欧美一区二区三区在线观看| 欧美成人高清电影在线| 国产成a人无v码亚洲福利| 1024亚洲合集| 在线不卡一区二区| 国产精品18久久久| 亚洲精品中文在线观看| 欧美高清www午色夜在线视频| 精品一区二区影视| 国产精品久久久久久久蜜臀| 日韩一级视频免费观看在线| 美女视频一区二区| 国产精品久久久一本精品| 在线观看国产91| 美国av一区二区| 国产精品乱子久久久久| 91精品久久久久久蜜臀| 国产成人精品www牛牛影视| 夜夜夜精品看看| 欧美xxxx老人做受| 在线视频亚洲一区| 国内精品伊人久久久久av影院 | 国产一区二区久久| 玉足女爽爽91| 久久久久久久久久久99999| 在线亚洲一区二区| 国产suv精品一区二区883| 亚洲高清免费视频| 欧美国产日韩在线观看| 在线成人av影院| 91视频在线观看免费| 精品一区二区三区影院在线午夜| 中文字幕在线视频一区| 日韩免费视频线观看| 在线亚洲免费视频| 成人午夜精品在线| 美女视频一区二区| 亚洲bt欧美bt精品| 国产精品蜜臀在线观看| 26uuu成人网一区二区三区| 欧美性生活影院| 成人免费视频视频在线观看免费 | 麻豆国产精品官网| 一区二区三区精品在线| 日本一区二区三区国色天香| 日韩精品一区二区三区四区视频| 欧美日韩一卡二卡| 91久久精品一区二区| 成人福利在线看| 国产成人av福利| 黄页网站大全一区二区| 日韩黄色片在线观看| 亚洲一区二三区| 亚洲手机成人高清视频| 欧美高清一级片在线观看| 久久久久久久久久久久久久久99 | 99国产欧美另类久久久精品| 国产一区二区主播在线| 麻豆视频观看网址久久| 国产精品自在在线| 日韩中文字幕区一区有砖一区 | 国产一区二区导航在线播放| 日本午夜一区二区| 日产欧产美韩系列久久99| 亚洲第一成年网| 亚洲成人综合在线| 亚洲一区二区三区小说| 亚洲h精品动漫在线观看| 亚洲第一精品在线| 婷婷一区二区三区| 麻豆视频观看网址久久| 狠狠网亚洲精品| 国产精品影视网| 成人av电影免费在线播放| 成人黄色777网| 91亚洲永久精品| 日本高清不卡一区| 欧美日韩综合一区| 欧美精品在线视频| 日韩视频一区二区在线观看| 欧美不卡123| 久久久久99精品一区| 中文字幕一区免费在线观看| 亚洲视频电影在线| 午夜精品福利在线| 精品中文字幕一区二区小辣椒| 精品无人区卡一卡二卡三乱码免费卡 | 91麻豆免费看片| 欧美性xxxxxx少妇| 精品少妇一区二区三区在线视频| 国产性天天综合网| 亚洲人成人一区二区在线观看| 亚洲国产精品久久一线不卡| 麻豆国产精品官网| av不卡在线观看| 欧美挠脚心视频网站| 2024国产精品| 亚洲免费观看在线观看| 日本成人超碰在线观看| 日本二三区不卡| 日韩一区二区三区精品视频| 国产色爱av资源综合区| 伊人性伊人情综合网| 另类成人小视频在线| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 国产片一区二区| 亚洲国产精品久久久久婷婷884| 久久国产精品72免费观看| 波多野结衣中文字幕一区二区三区| 欧美性猛交一区二区三区精品| 欧美xxxx在线观看| 亚洲男人天堂一区| 国产在线日韩欧美| 日本韩国一区二区三区| 久久久久久麻豆| 首页亚洲欧美制服丝腿| 成人黄色在线网站| 精品久久久久一区| 一区二区三区免费观看| 成人在线视频首页| 欧美电影免费提供在线观看| 亚洲卡通动漫在线| 国产高清不卡二三区| 欧美一区二区三级| 国产精品天美传媒沈樵| 裸体一区二区三区| 欧美午夜一区二区三区免费大片| 久久精品人人做人人综合| 日韩av在线发布| 欧美吞精做爰啪啪高潮| 中文字幕一区二区三区四区| 精品午夜一区二区三区在线观看| 欧美午夜在线一二页| 中文字幕日韩精品一区 | 久久先锋资源网| 日日夜夜免费精品| 日本国产一区二区| 综合精品久久久| 丁香激情综合国产| 久久精品夜夜夜夜久久| 另类调教123区| 欧美一卡二卡三卡四卡| 亚洲国产精品久久艾草纯爱| 色综合天天综合狠狠| 国产精品不卡一区二区三区| 91视频精品在这里| 久久久精品国产免费观看同学| 久久99久久久久久久久久久| 正在播放亚洲一区| 视频一区二区三区在线| 欧美影视一区在线| 一区二区三区国产精品| 日本国产一区二区| 亚洲一区二区av在线| 欧美午夜一区二区| 亚洲国产一区二区三区青草影视| 一道本成人在线| 自拍偷拍欧美精品| 色婷婷精品大在线视频| 亚洲免费在线观看| 欧美视频自拍偷拍| 午夜成人在线视频| 日韩亚洲欧美一区| 裸体一区二区三区| 久久亚洲一区二区三区四区| 狠狠色综合日日| 国产丝袜欧美中文另类| 99免费精品在线观看| 亚洲人成小说网站色在线| 99精品久久久久久| 亚洲成人自拍偷拍| 日韩三级伦理片妻子的秘密按摩| 久久成人18免费观看| 久久综合久久99| 成人av集中营| 亚洲国产日韩一区二区| 日韩亚洲欧美高清| 粉嫩av一区二区三区粉嫩| 中文字幕亚洲欧美在线不卡| gogogo免费视频观看亚洲一| 亚洲一级二级三级在线免费观看| 日韩午夜在线影院| 国产精品99久久久久久久女警 | 另类小说综合欧美亚洲| 国产亚洲综合av| 色999日韩国产欧美一区二区|