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

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

?? jcmainct.c

?? MPEG4解碼程序源代碼(能夠對各種MPEG4文件進行解碼)
?? 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一区二区三区免费野_久草精品视频
91在线观看成人| jlzzjlzz国产精品久久| 亚洲第一av色| 一区二区在线观看不卡| 一区二区三区精品在线观看| 亚洲欧美色图小说| 亚洲自拍偷拍综合| 一区二区国产盗摄色噜噜| 亚洲激情一二三区| 亚洲第一会所有码转帖| 日韩av中文字幕一区二区| 午夜精品成人在线| 免费日本视频一区| 国产一区在线观看麻豆| 成人aa视频在线观看| 91片在线免费观看| 欧美精品一级二级三级| 欧美大胆人体bbbb| 久久久99免费| 亚洲精品中文字幕在线观看| 石原莉奈在线亚洲三区| 久久99这里只有精品| 国产69精品久久久久777| 不卡视频在线观看| 精品视频在线免费观看| 久久综合狠狠综合久久激情 | 91日韩精品一区| 欧美日韩一卡二卡| 久久综合网色—综合色88| ...xxx性欧美| 奇米综合一区二区三区精品视频| 国产乱码精品一区二区三区av | 久久青草欧美一区二区三区| 国产精品亲子乱子伦xxxx裸| 亚洲高清视频的网址| 久草精品在线观看| 欧美中文字幕亚洲一区二区va在线| 4438成人网| 中文字幕在线观看一区二区| 日本美女视频一区二区| 粉嫩av一区二区三区粉嫩| 欧美日韩欧美一区二区| 国产欧美一区二区三区在线看蜜臀 | 成人黄色在线看| 日韩一区二区精品在线观看| 亚洲欧洲在线观看av| 麻豆精品一区二区三区| 色天天综合久久久久综合片| 久久综合久久99| 日本怡春院一区二区| 91视频在线观看| 久久久国产精品麻豆| 日本最新不卡在线| 色视频成人在线观看免| 久久精品一区二区三区不卡| 日韩高清一区二区| 在线观看亚洲a| 国产精品日日摸夜夜摸av| 另类综合日韩欧美亚洲| 在线不卡中文字幕| 亚洲一区二区精品3399| 96av麻豆蜜桃一区二区| 中文字幕乱码日本亚洲一区二区 | 久久影院电视剧免费观看| 午夜精品在线看| 色综合天天综合网天天狠天天| 久久久噜噜噜久久人人看| 蜜桃av一区二区在线观看| 欧美日韩国产免费一区二区| 一区二区久久久久| 日本乱人伦aⅴ精品| 亚洲人成网站影音先锋播放| 成人免费的视频| 日本一区二区三区国色天香| 高清在线不卡av| 国产亚洲一二三区| 国产成人日日夜夜| 日本一区二区三区免费乱视频| 国产成人综合视频| 国产欧美精品一区二区三区四区 | 成人黄色777网| 国产精品人妖ts系列视频| 国产精品一区二区x88av| 国产亚洲欧美激情| 成人av在线电影| 亚洲精品成人精品456| 欧美日精品一区视频| 婷婷开心久久网| 精品欧美久久久| 国产真实乱子伦精品视频| 精品福利一二区| 国产成人在线看| 亚洲色图.com| 欧美日韩一区不卡| 国模一区二区三区白浆| 日本一区二区高清| 色婷婷精品大视频在线蜜桃视频| 亚洲国产精品人人做人人爽| 欧美成人一区二区| 成人免费毛片app| 久久精品99国产精品| 国产福利一区二区三区视频在线| 中文字幕久久午夜不卡| 欧日韩精品视频| 一区二区日韩av| 欧美日韩一区三区四区| 日韩国产精品91| 中文字幕乱码久久午夜不卡| 在线亚洲人成电影网站色www| 日韩一区精品视频| 国产精品你懂的在线| 欧美日韩国产不卡| 国产激情偷乱视频一区二区三区| 亚洲三级在线看| 欧美成人一级视频| 色久优优欧美色久优优| 国产在线视频一区二区| 亚洲一区中文在线| 欧美激情一区二区在线| 欧美精品自拍偷拍动漫精品| 成人免费av资源| 麻豆成人av在线| 亚洲国产精品一区二区久久恐怖片| 久久色中文字幕| 制服丝袜亚洲精品中文字幕| 不卡av在线网| 韩国三级电影一区二区| 亚洲国产日韩a在线播放性色| 中文字幕成人av| 精品国产伦一区二区三区免费| 91黄色免费看| 不卡的av电影在线观看| 国产又黄又大久久| 青青草国产精品97视觉盛宴| 伊人色综合久久天天| 国产精品国产三级国产aⅴ入口 | 国产一区二区三区免费看| 亚洲最大成人综合| 国产精品二三区| 中文在线免费一区三区高中清不卡| 欧美电影免费观看高清完整版在线| 欧美亚洲动漫另类| 91久久精品网| 在线视频中文字幕一区二区| 99精品视频一区| 成人美女视频在线看| 成人午夜精品在线| 成人av动漫在线| 9久草视频在线视频精品| 国产成人av一区二区三区在线观看| 看电视剧不卡顿的网站| 日韩av中文字幕一区二区| 日产精品久久久久久久性色| 日韩在线观看一区二区| 性做久久久久久| 免费一区二区视频| 毛片av一区二区| 狠狠狠色丁香婷婷综合久久五月| 久久国产精品露脸对白| 久久精品国产精品亚洲红杏| 久久精品国内一区二区三区| 久久国产精品99久久人人澡| 精品一区二区三区香蕉蜜桃| 国模一区二区三区白浆| 国产98色在线|日韩| 成人黄色片在线观看| 91九色最新地址| 91 com成人网| 久久久久国色av免费看影院| 国产欧美精品一区二区色综合朱莉| 中文字幕一区免费在线观看| 亚洲一区国产视频| 日韩黄色免费网站| 国产成人在线视频网站| 91麻豆国产福利在线观看| 欧美亚洲综合另类| 精品国产电影一区二区| 国产精品久久看| 日韩成人伦理电影在线观看| 国产综合色视频| 日本黄色一区二区| 欧美一级片在线看| 国产午夜精品理论片a级大结局| 综合网在线视频| 蜜芽一区二区三区| 成人丝袜18视频在线观看| 欧美性大战久久久久久久蜜臀 | 国产精一品亚洲二区在线视频| 成人午夜激情视频| 欧美精品xxxxbbbb| 国产精品污网站| 免费av成人在线| 91麻豆精品在线观看| 欧美大尺度电影在线| 亚洲免费在线播放| 国产一区二区三区免费观看| 欧美亚洲丝袜传媒另类| 国产日韩精品一区二区三区| 丝袜亚洲精品中文字幕一区| 成人毛片老司机大片|