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

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

?? jcmainct.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.
//
////////////////////////////////////////////////////////////////////////


/*
 * jcmainct.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 the main buffer controller for compression.
 * The main buffer lies between the pre-processor and the JPEG
 * compressor proper; it holds downsampled data in the JPEG colorspace.
 */

#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"


/* Note: currently, there is no operating mode in which a full-image buffer
 * is needed at this step.  If there were, that mode could not be used with
 * "raw data" input, since this module is bypassed in that case.  However,
 * we've left the code here for possible use in special applications.
 */
#undef FULL_MAIN_BUFFER_SUPPORTED


/* Private buffer controller object */

typedef struct {
  struct jpeg_c_main_controller pub; /* public fields */

  JDIMENSION cur_iMCU_row;	/* number of current iMCU row */
  JDIMENSION rowgroup_ctr;	/* counts row groups received in iMCU row */
  boolean suspended;		/* remember if we suspended output */
  J_BUF_MODE pass_mode;		/* current operating mode */

  /* If using just a strip buffer, this points to the entire set of buffers
   * (we allocate one for each component).  In the full-image case, this
   * points to the currently accessible strips of the virtual arrays.
   */
  JSAMPARRAY buffer[MAX_COMPONENTS];

#ifdef FULL_MAIN_BUFFER_SUPPORTED
  /* If using full-image storage, this array holds pointers to virtual-array
   * control blocks for each component.  Unused if not full-image storage.
   */
  jvirt_sarray_ptr whole_image[MAX_COMPONENTS];
#endif
} my_main_controller;

typedef my_main_controller * my_main_ptr;


/* Forward declarations */
METHODDEF(void) process_data_simple_main
	JPP((j_compress_ptr cinfo, JSAMPARRAY input_buf,
	     JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail));
#ifdef FULL_MAIN_BUFFER_SUPPORTED
METHODDEF(void) process_data_buffer_main
	JPP((j_compress_ptr cinfo, JSAMPARRAY input_buf,
	     JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail));
#endif


/*
 * Initialize for a processing pass.
 */

METHODDEF(void)
start_pass_main (j_compress_ptr cinfo, J_BUF_MODE pass_mode)
{
  my_main_ptr main = (my_main_ptr) cinfo->main;

  /* Do nothing in raw-data mode. */
  if (cinfo->raw_data_in)
    return;

  main->cur_iMCU_row = 0;	/* initialize counters */
  main->rowgroup_ctr = 0;
  main->suspended = FALSE;
  main->pass_mode = pass_mode;	/* save mode for use by process_data */

  switch (pass_mode) {
  case JBUF_PASS_THRU:
#ifdef FULL_MAIN_BUFFER_SUPPORTED
    if (main->whole_image[0] != NULL)
      ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
#endif
    main->pub.process_data = process_data_simple_main;
    break;
#ifdef FULL_MAIN_BUFFER_SUPPORTED
  case JBUF_SAVE_SOURCE:
  case JBUF_CRANK_DEST:
  case JBUF_SAVE_AND_PASS:
    if (main->whole_image[0] == NULL)
      ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
    main->pub.process_data = process_data_buffer_main;
    break;
#endif
  default:
    ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
    break;
  }
}


/*
 * Process some data.
 * This routine handles the simple pass-through mode,
 * where we have only a strip buffer.
 */

METHODDEF(void)
process_data_simple_main (j_compress_ptr cinfo,
			  JSAMPARRAY input_buf, JDIMENSION *in_row_ctr,
			  JDIMENSION in_rows_avail)
{
  my_main_ptr main = (my_main_ptr) cinfo->main;

  while (main->cur_iMCU_row < cinfo->total_iMCU_rows) {
    /* Read input data if we haven't filled the main buffer yet */
    if (main->rowgroup_ctr < DCTSIZE)
      (*cinfo->prep->pre_process_data) (cinfo,
					input_buf, in_row_ctr, in_rows_avail,
					main->buffer, &main->rowgroup_ctr,
					(JDIMENSION) DCTSIZE);

    /* If we don't have a full iMCU row buffered, return to application for
     * more data.  Note that preprocessor will always pad to fill the iMCU row
     * at the bottom of the image.
     */
    if (main->rowgroup_ctr != DCTSIZE)
      return;

    /* Send the completed row to the compressor */
    if (! (*cinfo->coef->compress_data) (cinfo, main->buffer)) {
      /* If compressor did not consume the whole row, then we must need to
       * suspend processing and return to the application.  In this situation
       * we pretend we didn't yet consume the last input row; otherwise, if
       * it happened to be the last row of the image, the application would
       * think we were done.
       */
      if (! main->suspended) {
	(*in_row_ctr)--;
	main->suspended = TRUE;
      }
      return;
    }
    /* We did finish the row.  Undo our little suspension hack if a previous
     * call suspended; then mark the main buffer empty.
     */
    if (main->suspended) {
      (*in_row_ctr)++;
      main->suspended = FALSE;
    }
    main->rowgroup_ctr = 0;
    main->cur_iMCU_row++;
  }
}


#ifdef FULL_MAIN_BUFFER_SUPPORTED

/*
 * Process some data.
 * This routine handles all of the modes that use a full-size buffer.
 */

METHODDEF(void)
process_data_buffer_main (j_compress_ptr cinfo,
			  JSAMPARRAY input_buf, JDIMENSION *in_row_ctr,
			  JDIMENSION in_rows_avail)
{
  my_main_ptr main = (my_main_ptr) cinfo->main;
  int ci;
  jpeg_component_info *compptr;
  boolean writing = (main->pass_mode != JBUF_CRANK_DEST);

  while (main->cur_iMCU_row < cinfo->total_iMCU_rows) {
    /* Realign the virtual buffers if at the start of an iMCU row. */
    if (main->rowgroup_ctr == 0) {
      for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
	   ci++, compptr++) {
	main->buffer[ci] = (*cinfo->mem->access_virt_sarray)
	  ((j_common_ptr) cinfo, main->whole_image[ci],
	   main->cur_iMCU_row * (compptr->v_samp_factor * DCTSIZE),
	   (JDIMENSION) (compptr->v_samp_factor * DCTSIZE), writing);
      }
      /* In a read pass, pretend we just read some source data. */
      if (! writing) {
	*in_row_ctr += cinfo->max_v_samp_factor * DCTSIZE;
	main->rowgroup_ctr = DCTSIZE;
      }
    }

    /* If a write pass, read input data until the current iMCU row is full. */
    /* Note: preprocessor will pad if necessary to fill the last iMCU row. */
    if (writing) {
      (*cinfo->prep->pre_process_data) (cinfo,
					input_buf, in_row_ctr, in_rows_avail,
					main->buffer, &main->rowgroup_ctr,
					(JDIMENSION) DCTSIZE);
      /* Return to application if we need more data to fill the iMCU row. */
      if (main->rowgroup_ctr < DCTSIZE)
	return;
    }

    /* Emit data, unless this is a sink-only pass. */
    if (main->pass_mode != JBUF_SAVE_SOURCE) {
      if (! (*cinfo->coef->compress_data) (cinfo, main->buffer)) {
	/* If compressor did not consume the whole row, then we must need to
	 * suspend processing and return to the application.  In this situation
	 * we pretend we didn't yet consume the last input row; otherwise, if
	 * it happened to be the last row of the image, the application would
	 * think we were done.
	 */
	if (! main->suspended) {
	  (*in_row_ctr)--;
	  main->suspended = TRUE;
	}
	return;
      }
      /* We did finish the row.  Undo our little suspension hack if a previous
       * call suspended; then mark the main buffer empty.
       */
      if (main->suspended) {
	(*in_row_ctr)++;
	main->suspended = FALSE;
      }
    }

    /* If get here, we are done with this iMCU row.  Mark buffer empty. */
    main->rowgroup_ctr = 0;
    main->cur_iMCU_row++;
  }
}

#endif /* FULL_MAIN_BUFFER_SUPPORTED */


/*
 * Initialize main buffer controller.
 */

GLOBAL(void)
jinit_c_main_controller (j_compress_ptr cinfo, boolean need_full_buffer)
{
  my_main_ptr main;
  int ci;
  jpeg_component_info *compptr;

  main = (my_main_ptr)
    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
				SIZEOF(my_main_controller));
  cinfo->main = (struct jpeg_c_main_controller *) main;
  main->pub.start_pass = start_pass_main;

  /* We don't need to create a buffer in raw-data mode. */
  if (cinfo->raw_data_in)
    return;

  /* Create the buffer.  It holds downsampled data, so each component
   * may be of a different size.
   */
  if (need_full_buffer) {
#ifdef FULL_MAIN_BUFFER_SUPPORTED
    /* Allocate a full-image virtual array for each component */
    /* Note we pad the bottom to a multiple of the iMCU height */
    for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
	 ci++, compptr++) {
      main->whole_image[ci] = (*cinfo->mem->request_virt_sarray)
	((j_common_ptr) cinfo, JPOOL_IMAGE, FALSE,
	 compptr->width_in_blocks * DCTSIZE,
	 (JDIMENSION) jround_up((long) compptr->height_in_blocks,
				(long) compptr->v_samp_factor) * DCTSIZE,
	 (JDIMENSION) (compptr->v_samp_factor * DCTSIZE));
    }
#else
    ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
#endif
  } else {
#ifdef FULL_MAIN_BUFFER_SUPPORTED
    main->whole_image[0] = NULL; /* flag for no virtual arrays */
#endif
    /* Allocate a strip buffer for each component */
    for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
	 ci++, compptr++) {
      main->buffer[ci] = (*cinfo->mem->alloc_sarray)
	((j_common_ptr) cinfo, JPOOL_IMAGE,
	 compptr->width_in_blocks * DCTSIZE,
	 (JDIMENSION) (compptr->v_samp_factor * DCTSIZE));
    }
  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区三区四| 欧美丝袜丝交足nylons| 91丨porny丨首页| 欧美电影免费观看高清完整版在线| 久久久蜜桃精品| 日韩国产欧美在线视频| 波多野结衣91| 久久亚区不卡日本| 青青国产91久久久久久| 色国产精品一区在线观看| 久久综合视频网| 美女被吸乳得到大胸91| 欧美怡红院视频| 亚洲日穴在线视频| 丁香婷婷综合网| 欧美精品一区二区高清在线观看| 日韩福利电影在线| 欧美色偷偷大香| 一区二区三区免费网站| av高清久久久| 中文字幕精品在线不卡| 国产精品123区| 久久这里只有精品6| 老汉av免费一区二区三区| 欧美日韩日日摸| 亚洲国产精品精华液网站 | 中文字幕在线视频一区| 久久精品999| 日韩精品一区在线观看| 欧美aaa在线| 91精品福利在线一区二区三区 | 99久久婷婷国产综合精品电影| 日韩视频免费观看高清在线视频| 亚洲无人区一区| 91麻豆成人久久精品二区三区| 亚洲国产精品国自产拍av| 国产伦精品一区二区三区免费| 日韩精品资源二区在线| 国产中文字幕精品| 久久久综合网站| 国产精品一二二区| 欧美国产欧美综合| 成人av中文字幕| 亚洲免费电影在线| 欧洲人成人精品| 午夜不卡av免费| 日韩一区二区三区观看| 久久福利视频一区二区| wwww国产精品欧美| 成人午夜短视频| 亚洲欧美偷拍三级| 欧美日韩黄色影视| 久久99国产精品久久99| 久久免费视频色| av不卡免费在线观看| 亚洲尤物视频在线| 日韩午夜小视频| 国产成人免费视频网站| 亚洲精品日韩综合观看成人91| 欧美在线影院一区二区| 五月天激情小说综合| wwwwxxxxx欧美| 色综合久久久久| 美国欧美日韩国产在线播放| 久久久精品欧美丰满| 一本色道久久综合亚洲精品按摩| 亚洲国产毛片aaaaa无费看| 欧美一二三区精品| 成人黄色电影在线| 三级亚洲高清视频| 国产日韩一级二级三级| 欧美无乱码久久久免费午夜一区 | 99久久精品情趣| 亚洲一二三四区不卡| 欧美r级电影在线观看| 91亚洲精品久久久蜜桃| 日韩av电影天堂| 国产精品免费久久| 91精品国产91热久久久做人人| 成人涩涩免费视频| 日本女人一区二区三区| 国产精品久久久久久一区二区三区| 欧美在线999| 国产成人鲁色资源国产91色综 | 美日韩一区二区三区| 国产精品大尺度| 日韩久久精品一区| 欧美丝袜丝交足nylons| 成人网在线播放| 免费观看在线综合| 一区二区三区欧美| 综合精品久久久| 亚洲精品一区二区三区影院 | 亚洲免费av高清| 国产亚洲成年网址在线观看| 欧美另类z0zxhd电影| av中文字幕一区| 国产精品一区免费在线观看| 午夜不卡av在线| 一区二区三区四区乱视频| 欧美精品一区二区三区在线播放| 欧美日韩在线观看一区二区 | 国产精品一区二区三区乱码| 亚洲444eee在线观看| 亚洲另类一区二区| 日本一区二区视频在线| 久久一区二区视频| 日韩一区二区三区免费观看| 欧美日韩日日骚| 欧美日韩免费视频| 欧美在线视频日韩| 欧美亚一区二区| 一本色道久久综合亚洲91| 成人综合婷婷国产精品久久蜜臀 | 日韩精品一区二区三区swag| 91.com视频| 这里只有精品视频在线观看| 欧美午夜精品电影| 欧美久久久久久久久| 91精品欧美一区二区三区综合在| 欧美在线观看一二区| 欧美日韩夫妻久久| 这里只有精品99re| 最新高清无码专区| 一区二区三国产精华液| 亚洲高清免费视频| 日日夜夜免费精品| 韩国欧美国产1区| 成人av中文字幕| 一本久久a久久精品亚洲| 在线日韩av片| 欧美高清dvd| 日韩一区二区免费在线观看| 久久久精品黄色| 亚洲少妇30p| 日本特黄久久久高潮| 国产乱码一区二区三区| 成人看片黄a免费看在线| 日本韩国一区二区| 7777精品伊人久久久大香线蕉经典版下载| 欧美性xxxxx极品少妇| 日韩欧美国产一二三区| 中文成人av在线| 亚洲国产综合色| 国产麻豆成人传媒免费观看| 色综合天天综合网天天狠天天| 欧美日韩国产综合一区二区三区 | 成人免费高清在线| 色婷婷综合久久久| 欧美zozo另类异族| 亚洲日韩欧美一区二区在线| 蜜桃91丨九色丨蝌蚪91桃色| 国产精品一区二区在线看| 在线亚洲免费视频| 欧美xxxx在线观看| 亚洲黄网站在线观看| 麻豆传媒一区二区三区| 成人av手机在线观看| 91麻豆精品国产91久久久使用方法 | 国产精品一区二区三区99| 不卡一区在线观看| 欧美一级日韩不卡播放免费| 国产精品情趣视频| 日韩和欧美的一区| av电影一区二区| 欧美电影免费观看高清完整版在线| 中文字幕在线观看不卡| 美女一区二区三区在线观看| 91美女片黄在线观看91美女| 精品精品国产高清一毛片一天堂| 亚洲欧洲中文日韩久久av乱码| 视频一区二区三区中文字幕| av在线播放一区二区三区| 欧美一级二级在线观看| 亚洲资源在线观看| 97精品视频在线观看自产线路二| 日韩精品一区在线| 午夜电影一区二区三区| 波多野结衣91| 一本色道a无线码一区v| 色呦呦国产精品| 在线免费一区三区| 国产精品对白交换视频| 国产麻豆精品95视频| 欧美一二三在线| 日日欢夜夜爽一区| 日本高清不卡在线观看| 精东粉嫩av免费一区二区三区| 欧美性猛交xxxx乱大交退制版 | 成人福利视频在线| 精品国产乱子伦一区| 久久99久久精品| 91精品国产手机| 亚洲va国产天堂va久久en| 欧美亚洲动漫精品| 午夜免费久久看| 欧美日韩免费电影| 无码av免费一区二区三区试看| 欧洲一区在线观看| 亚洲第一电影网|