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

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

?? jddctmgr.c

?? 一款最完整的工業組態軟源代碼
?? C
字號:
/*
 * 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 INT16 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((INT32) qtbl->quantval[i],
				  (INT32) 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一区二区三区免费野_久草精品视频
在线观看国产一区二区| 久久97超碰国产精品超碰| 欧美大片在线观看| 91精品国产综合久久精品性色| 91麻豆免费视频| 色婷婷综合激情| 成人av先锋影音| 风间由美中文字幕在线看视频国产欧美| 免费观看成人鲁鲁鲁鲁鲁视频| 美女在线视频一区| 精品夜夜嗨av一区二区三区| 韩国v欧美v日本v亚洲v| 风间由美性色一区二区三区| 99re这里只有精品首页| av爱爱亚洲一区| 欧美在线999| 欧美一级高清片在线观看| 精品久久久久99| 国产日韩欧美高清在线| 亚洲女爱视频在线| 亚洲va欧美va人人爽| 麻豆久久一区二区| 国产成人在线视频网站| 99久久久久久99| 欧美精品亚洲一区二区在线播放| 日韩欧美综合在线| 欧美激情在线观看视频免费| 亚洲人成精品久久久久久| 五月激情综合网| 韩国欧美国产一区| 99久精品国产| 日韩欧美一区在线观看| 亚洲欧洲日产国产综合网| 午夜精品一区二区三区三上悠亚| 极品销魂美女一区二区三区| 91色.com| 久久久久国产精品人| 亚洲综合视频在线观看| 极品少妇xxxx偷拍精品少妇| 色婷婷精品大在线视频| 久久青草欧美一区二区三区| 亚洲综合丁香婷婷六月香| 精品一区二区综合| 欧美午夜寂寞影院| 日本一区二区三区在线观看| 日韩精品视频网站| 91免费看`日韩一区二区| 日韩免费成人网| 亚洲午夜久久久久久久久电影院| 国产精品亚洲视频| 欧美日韩国产在线观看| 国产精品国产馆在线真实露脸 | 一区二区三区在线免费观看| 日本大胆欧美人术艺术动态| 91社区在线播放| 26uuu国产在线精品一区二区| 夜夜嗨av一区二区三区中文字幕 | 欧美日韩成人在线| 国产精品不卡一区| 国产成人在线网站| 日韩精品中文字幕一区| 亚洲va中文字幕| 色国产精品一区在线观看| 国产日本亚洲高清| 国产精品一区二区视频| 欧美一区二区精品在线| 亚洲成av人片一区二区三区| 在线亚洲一区二区| 亚洲色图在线播放| av日韩在线网站| 欧美国产精品久久| 国产成人综合在线观看| 欧美xingq一区二区| 久久99深爱久久99精品| 欧美一区二区三区爱爱| 免费成人美女在线观看.| 欧美疯狂性受xxxxx喷水图片| 亚洲一区视频在线观看视频| 欧亚洲嫩模精品一区三区| 亚洲精品第一国产综合野| 91一区二区三区在线观看| 亚洲欧美二区三区| 欧洲另类一二三四区| 一级中文字幕一区二区| 欧美日韩视频在线观看一区二区三区| 亚洲日穴在线视频| 色94色欧美sute亚洲线路一久| 一区二区在线免费| 欧美性三三影院| 五月激情丁香一区二区三区| 欧美精品久久久久久久久老牛影院| 亚洲黄色av一区| 3d动漫精品啪啪1区2区免费| 青娱乐精品在线视频| 精品999久久久| thepron国产精品| 一区二区三区在线免费视频| 欧美日韩第一区日日骚| 久草在线在线精品观看| 久久久国际精品| 一本一道波多野结衣一区二区| 亚洲综合色婷婷| 日韩欧美第一区| voyeur盗摄精品| 图片区小说区区亚洲影院| 精品国产一区二区亚洲人成毛片 | 欧美唯美清纯偷拍| 蜜桃久久av一区| 国产精品乱码妇女bbbb| 欧美日本一道本在线视频| 精品一区二区三区在线观看 | 亚洲成a人v欧美综合天堂| 欧美一级高清片| 成人av电影在线网| 日韩av不卡在线观看| 欧美国产成人在线| 制服丝袜亚洲播放| 国产999精品久久| 免费观看在线综合色| 亚洲欧美中日韩| 日韩欧美精品在线| 色狠狠色噜噜噜综合网| 黑人巨大精品欧美一区| 亚洲成av人综合在线观看| 国产精品欧美极品| 日韩一级在线观看| 欧美三级日本三级少妇99| 国产乱码精品一品二品| 午夜欧美大尺度福利影院在线看| 亚洲国产精品99久久久久久久久 | 成人白浆超碰人人人人| 麻豆一区二区三区| 国产一区在线精品| 亚洲精品成人精品456| 国产女人水真多18毛片18精品视频| 777欧美精品| 色94色欧美sute亚洲线路二| 成人毛片在线观看| 国产成人在线网站| 久久激情综合网| 日韩高清一区在线| 午夜婷婷国产麻豆精品| 亚洲女同ⅹxx女同tv| 国产精品黄色在线观看| 中文成人综合网| 精品av久久707| 精品国产伦一区二区三区观看体验| 制服丝袜av成人在线看| 欧美日韩视频在线观看一区二区三区 | 欧美伊人久久久久久久久影院| 成人免费看片app下载| 国产精品一区二区你懂的| 麻豆成人av在线| 久久国产乱子精品免费女| 日韩中文字幕av电影| 亚洲图片有声小说| 亚洲成av人片一区二区三区| 亚洲一区自拍偷拍| 亚洲二区视频在线| 日韩精品1区2区3区| 免费久久99精品国产| 蜜桃av噜噜一区| 国产毛片精品一区| 粉嫩蜜臀av国产精品网站| av在线不卡网| 一本色道a无线码一区v| 色婷婷久久99综合精品jk白丝| 在线观看日韩一区| 51午夜精品国产| 精品免费一区二区三区| 国产日韩欧美精品一区| 亚洲欧洲无码一区二区三区| 亚洲精品ww久久久久久p站| 同产精品九九九| 捆绑变态av一区二区三区| 国产91清纯白嫩初高中在线观看| 福利一区福利二区| 色偷偷久久人人79超碰人人澡| 精品视频一区三区九区| 日韩欧美一二区| 国产精品毛片无遮挡高清| 午夜久久久久久久久久一区二区| 日韩专区一卡二卡| 国产不卡高清在线观看视频| 色吊一区二区三区 | 国产精品一区二区三区乱码| 大陆成人av片| 在线观看区一区二| 精品国产乱码久久久久久1区2区| 中文字幕精品—区二区四季| 亚洲乱码中文字幕| 激情五月播播久久久精品| www.性欧美| 欧美一级二级在线观看| 亚洲丝袜制服诱惑| 美国三级日本三级久久99| 99视频一区二区| 亚洲精品一线二线三线| 亚洲一区二区成人在线观看| 韩国v欧美v亚洲v日本v|