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

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

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

/*
 * jddctmgr.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 inverse-DCT management logic.
 * This code selects a particular IDCT implementation to be used,
 * and it performs related housekeeping chores.  No code in this file
 * is executed per IDCT step, only during output pass setup.
 *
 * Note that the IDCT routines are responsible for performing coefficient
 * dequantization as well as the IDCT proper.  This module sets up the
 * dequantization multiplier table needed by the IDCT routine.
 */

#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"
#include "jdct.h"		/* Private declarations for DCT subsystem */


/*
 * The decompressor input side (jdinput.c) saves away the appropriate
 * quantization table for each component at the start of the first scan
 * involving that component.  (This is necessary in order to correctly
 * decode files that reuse Q-table slots.)
 * When we are ready to make an output pass, the saved Q-table is converted
 * to a multiplier table that will actually be used by the IDCT routine.
 * The multiplier table contents are IDCT-method-dependent.  To support
 * application changes in IDCT method between scans, we can remake the
 * multiplier tables if necessary.
 * In buffered-image mode, the first output pass may occur before any data
 * has been seen for some components, and thus before their Q-tables have
 * been saved away.  To handle this case, multiplier tables are preset
 * to zeroes; the result of the IDCT will be a neutral gray level.
 */


/* Private subobject for this module */

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

  /* This array contains the IDCT method code that each multiplier table
   * is currently set up for, or -1 if it's not yet set up.
   * The actual multiplier tables are pointed to by dct_table in the
   * per-component comp_info structures.
   */
  int cur_method[MAX_COMPONENTS];
} my_idct_controller;

typedef my_idct_controller * my_idct_ptr;


/* Allocated multiplier tables: big enough for any supported variant */

typedef union {
  ISLOW_MULT_TYPE islow_array[DCTSIZE2];
#ifdef DCT_IFAST_SUPPORTED
  IFAST_MULT_TYPE ifast_array[DCTSIZE2];
#endif
#ifdef DCT_FLOAT_SUPPORTED
  FLOAT_MULT_TYPE float_array[DCTSIZE2];
#endif
} multiplier_table;


/* The current scaled-IDCT routines require ISLOW-style multiplier tables,
 * so be sure to compile that code if either ISLOW or SCALING is requested.
 */
#ifdef DCT_ISLOW_SUPPORTED
#define PROVIDE_ISLOW_TABLES
#else
#ifdef IDCT_SCALING_SUPPORTED
#define PROVIDE_ISLOW_TABLES
#endif
#endif


/*
 * Prepare for an output pass.
 * Here we select the proper IDCT routine for each component and build
 * a matching multiplier table.
 */

METHODDEF(void)
start_pass (j_decompress_ptr cinfo)
{
  my_idct_ptr idct = (my_idct_ptr) cinfo->idct;
  int ci, i;
  jpeg_component_info *compptr;
  int method = 0;
  inverse_DCT_method_ptr method_ptr = NULL;
  JQUANT_TBL * qtbl;

  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
       ci++, compptr++) {
    /* Select the proper IDCT routine for this component's scaling */
    switch (compptr->DCT_scaled_size) {
#ifdef IDCT_SCALING_SUPPORTED
    case 1:
      method_ptr = jpeg_idct_1x1;
      method = JDCT_ISLOW;	/* jidctred uses islow-style table */
      break;
    case 2:
      method_ptr = jpeg_idct_2x2;
      method = JDCT_ISLOW;	/* jidctred uses islow-style table */
      break;
    case 4:
      method_ptr = jpeg_idct_4x4;
      method = JDCT_ISLOW;	/* jidctred uses islow-style table */
      break;
#endif
    case DCTSIZE:
      switch (cinfo->dct_method) {
#ifdef DCT_ISLOW_SUPPORTED
      case JDCT_ISLOW:
	method_ptr = jpeg_idct_islow;
	method = JDCT_ISLOW;
	break;
#endif
#ifdef DCT_IFAST_SUPPORTED
      case JDCT_IFAST:
	method_ptr = jpeg_idct_ifast;
	method = JDCT_IFAST;
	break;
#endif
#ifdef DCT_FLOAT_SUPPORTED
      case JDCT_FLOAT:
	method_ptr = jpeg_idct_float;
	method = JDCT_FLOAT;
	break;
#endif
      default:
	ERREXIT(cinfo, JERR_NOT_COMPILED);
	break;
      }
      break;
    default:
      ERREXIT1(cinfo, JERR_BAD_DCTSIZE, compptr->DCT_scaled_size);
      break;
    }
    idct->pub.inverse_DCT[ci] = method_ptr;
    /* Create multiplier table from quant table.
     * However, we can skip this if the component is uninteresting
     * or if we already built the table.  Also, if no quant table
     * has yet been saved for the component, we leave the
     * multiplier table all-zero; we'll be reading zeroes from the
     * coefficient controller's buffer anyway.
     */
    if (! compptr->component_needed || idct->cur_method[ci] == method)
      continue;
    qtbl = compptr->quant_table;
    if (qtbl == NULL)		/* happens if no data yet for component */
      continue;
    idct->cur_method[ci] = method;
    switch (method) {
#ifdef PROVIDE_ISLOW_TABLES
    case JDCT_ISLOW:
      {
	/* For LL&M IDCT method, multipliers are equal to raw quantization
	 * coefficients, but are stored as ints to ensure access efficiency.
	 */
	ISLOW_MULT_TYPE * ismtbl = (ISLOW_MULT_TYPE *) compptr->dct_table;
	for (i = 0; i < DCTSIZE2; i++) {
	  ismtbl[i] = (ISLOW_MULT_TYPE) qtbl->quantval[i];
	}
      }
      break;
#endif
#ifdef DCT_IFAST_SUPPORTED
    case JDCT_IFAST:
      {
	/* For AA&N IDCT method, multipliers are equal to quantization
	 * coefficients scaled by scalefactor[row]*scalefactor[col], where
	 *   scalefactor[0] = 1
	 *   scalefactor[k] = cos(k*PI/16) * sqrt(2)    for k=1..7
	 * For integer operation, the multiplier table is to be scaled by
	 * IFAST_SCALE_BITS.
	 */
	IFAST_MULT_TYPE * ifmtbl = (IFAST_MULT_TYPE *) compptr->dct_table;
#define CONST_BITS 14
	static const short aanscales[DCTSIZE2] = {
	  /* precomputed values scaled up by 14 bits */
	  16384, 22725, 21407, 19266, 16384, 12873,  8867,  4520,
	  22725, 31521, 29692, 26722, 22725, 17855, 12299,  6270,
	  21407, 29692, 27969, 25172, 21407, 16819, 11585,  5906,
	  19266, 26722, 25172, 22654, 19266, 15137, 10426,  5315,
	  16384, 22725, 21407, 19266, 16384, 12873,  8867,  4520,
	  12873, 17855, 16819, 15137, 12873, 10114,  6967,  3552,
	   8867, 12299, 11585, 10426,  8867,  6967,  4799,  2446,
	   4520,  6270,  5906,  5315,  4520,  3552,  2446,  1247
	};
	SHIFT_TEMPS

	for (i = 0; i < DCTSIZE2; i++) {
	  ifmtbl[i] = (IFAST_MULT_TYPE)
	    DESCALE(MULTIPLY16V16((long) qtbl->quantval[i],
				  (long) aanscales[i]),
		    CONST_BITS-IFAST_SCALE_BITS);
	}
      }
      break;
#endif
#ifdef DCT_FLOAT_SUPPORTED
    case JDCT_FLOAT:
      {
	/* For float AA&N IDCT method, multipliers are equal to quantization
	 * coefficients scaled by scalefactor[row]*scalefactor[col], where
	 *   scalefactor[0] = 1
	 *   scalefactor[k] = cos(k*PI/16) * sqrt(2)    for k=1..7
	 */
	FLOAT_MULT_TYPE * fmtbl = (FLOAT_MULT_TYPE *) compptr->dct_table;
	int row, col;
	static const double aanscalefactor[DCTSIZE] = {
	  1.0, 1.387039845, 1.306562965, 1.175875602,
	  1.0, 0.785694958, 0.541196100, 0.275899379
	};

	i = 0;
	for (row = 0; row < DCTSIZE; row++) {
	  for (col = 0; col < DCTSIZE; col++) {
	    fmtbl[i] = (FLOAT_MULT_TYPE)
	      ((double) qtbl->quantval[i] *
	       aanscalefactor[row] * aanscalefactor[col]);
	    i++;
	  }
	}
      }
      break;
#endif
    default:
      ERREXIT(cinfo, JERR_NOT_COMPILED);
      break;
    }
  }
}


/*
 * Initialize IDCT manager.
 */

GLOBAL(void)
jinit_inverse_dct (j_decompress_ptr cinfo)
{
  my_idct_ptr idct;
  int ci;
  jpeg_component_info *compptr;

  idct = (my_idct_ptr)
    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
				SIZEOF(my_idct_controller));
  cinfo->idct = (struct jpeg_inverse_dct *) idct;
  idct->pub.start_pass = start_pass;

  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
       ci++, compptr++) {
    /* Allocate and pre-zero a multiplier table for each component */
    compptr->dct_table =
      (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
				  SIZEOF(multiplier_table));
    MEMZERO(compptr->dct_table, SIZEOF(multiplier_table));
    /* Mark multiplier table not yet set up for any method */
    idct->cur_method[ci] = -1;
  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
波多野结衣中文字幕一区 | 成人理论电影网| 91女神在线视频| 欧美成人艳星乳罩| 亚洲激情av在线| 激情综合网av| 777亚洲妇女| 亚洲女爱视频在线| 国产 欧美在线| 精品捆绑美女sm三区| 亚洲高清免费观看高清完整版在线观看| 精品一区二区三区影院在线午夜| 在线观看日韩一区| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 在线播放日韩导航| 国产精品乱人伦| 经典三级在线一区| 91麻豆精品国产自产在线| 亚洲乱码国产乱码精品精小说| 国产激情视频一区二区在线观看 | 国产色一区二区| 日韩av二区在线播放| 日本道精品一区二区三区| 国产日韩欧美精品在线| 精品一区二区综合| 欧美成人三级电影在线| 欧美a级理论片| 欧美日本一区二区三区四区| 亚洲综合av网| 欧美综合亚洲图片综合区| 最新国产精品久久精品| 99re成人精品视频| 亚洲欧洲一区二区在线播放| 不卡区在线中文字幕| 国产精品天天摸av网| 成人性生交大合| 国产精品国产三级国产专播品爱网 | 国产亚洲欧美日韩日本| 韩国欧美一区二区| 国产午夜精品久久久久久免费视| 老汉av免费一区二区三区 | 欧美日韩在线免费视频| 亚洲制服丝袜在线| 欧美人妇做爰xxxⅹ性高电影| 午夜视频久久久久久| 9191成人精品久久| 韩国一区二区三区| 国产精品情趣视频| 色999日韩国产欧美一区二区| 亚洲另类在线制服丝袜| 欧美日精品一区视频| 日本午夜一本久久久综合| 亚洲精品一区二区三区在线观看| 国产精品亚洲视频| 亚洲婷婷在线视频| 欧美影院一区二区| 麻豆视频观看网址久久| 久久精品一区八戒影视| 一本色道久久综合精品竹菊| 亚洲va天堂va国产va久| 亚洲精品在线网站| 成人黄色免费短视频| 亚洲精选免费视频| 日韩亚洲欧美一区| 成人国产亚洲欧美成人综合网| 一区二区三区四区乱视频| 337p亚洲精品色噜噜噜| 国产aⅴ综合色| 亚洲小少妇裸体bbw| 欧美精品一区二区蜜臀亚洲| 99re免费视频精品全部| 美国精品在线观看| 国产精品国产三级国产aⅴ无密码| 欧美亚洲日本国产| 国产精品中文有码| 亚洲午夜免费视频| 久久精品亚洲乱码伦伦中文| 欧美性感一类影片在线播放| 精品一二三四区| 亚洲资源在线观看| 国产欧美在线观看一区| 在线成人av影院| 白白色 亚洲乱淫| 久久99精品久久久久久国产越南| 最近中文字幕一区二区三区| 精品91自产拍在线观看一区| 欧美性xxxxxxxx| 成人午夜免费视频| 久久69国产一区二区蜜臀 | 国产精品免费视频一区| 69久久夜色精品国产69蝌蚪网| eeuss国产一区二区三区| 蜜臀精品一区二区三区在线观看 | 亚洲国产日韩a在线播放性色| 国产日韩精品久久久| 91精品欧美一区二区三区综合在| 99re热视频这里只精品 | 精品无码三级在线观看视频| 亚洲电影第三页| 国产精品久久精品日日| 欧美精品一区二区三区高清aⅴ | 欧美性淫爽ww久久久久无| 国产成人av一区| 国产一区二区三区国产| 日韩主播视频在线| 亚洲综合精品自拍| 一区二区三区蜜桃| 亚洲视频每日更新| 国产精品无码永久免费888| 久久久91精品国产一区二区三区| 欧美一区二区啪啪| 欧美一区二区三区四区视频| 欧美三级视频在线观看| 日本丰满少妇一区二区三区| 日韩一级片网站| 欧美日韩一级视频| 欧美日韩免费视频| 欧美二区三区91| 911精品国产一区二区在线| 欧美喷潮久久久xxxxx| 欧美日韩在线播| 欧美一区二区三区小说| 日韩一区二区高清| 精品福利在线导航| 久久九九久久九九| 国产精品久久久久久久裸模| 综合婷婷亚洲小说| 亚洲韩国精品一区| 视频一区二区三区入口| 美腿丝袜一区二区三区| 精品系列免费在线观看| 成人午夜视频在线观看| 91丨porny丨中文| 91福利精品第一导航| 欧美日韩一区二区三区不卡| 这里是久久伊人| 亚洲精品一区二区三区精华液| 久久久91精品国产一区二区精品| 中文字幕一区二区三区四区不卡| 国产精品久久久久一区| 尤物在线观看一区| 天堂久久一区二区三区| 国产一区二区三区四区五区入口| 丁香激情综合五月| 欧美亚洲综合一区| 欧美v日韩v国产v| 国产精品天干天干在观线| 亚洲综合在线观看视频| 日韩精品免费视频人成| 国产麻豆精品视频| 91久久精品一区二区三| 欧美一二三在线| 国产精品国产三级国产| 亚洲香蕉伊在人在线观| 国产九九视频一区二区三区| 91久久国产综合久久| 欧美tk—视频vk| 亚洲女人的天堂| 精品无人区卡一卡二卡三乱码免费卡| 99精品欧美一区二区三区综合在线| 欧美日韩高清影院| 国产欧美日韩亚州综合| 亚洲成a人片综合在线| 国产不卡视频一区二区三区| 欧美图区在线视频| 中文字幕欧美激情| 欧美aⅴ一区二区三区视频| 94色蜜桃网一区二区三区| 日韩精品一区二区三区四区视频 | 国产欧美日韩三区| 丝袜亚洲另类欧美| 99久久婷婷国产综合精品| 精品日产卡一卡二卡麻豆| 亚洲免费资源在线播放| 国产夫妻精品视频| 欧美一级理论片| 一区二区三区四区国产精品| 国产在线播放一区三区四| 欧美无砖专区一中文字| 国产精品入口麻豆九色| 精品一区二区三区免费| 欧美日韩国产成人在线91| 亚洲色图.com| 国产91精品露脸国语对白| 日韩免费视频线观看| 无码av中文一区二区三区桃花岛| 99精品在线免费| 国产精品美女久久福利网站| 久久精品国产99国产精品| 69堂精品视频| 视频一区国产视频| 欧美日韩国产区一| 亚洲国产另类精品专区| 92精品国产成人观看免费 | 一区二区三区国产精品| 波多野结衣一区二区三区 | 日韩一级完整毛片| 琪琪久久久久日韩精品| 欧美精品乱码久久久久久| 亚洲成人在线免费|