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

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

?? jddctmgr.c

?? JPEG source code converts the image into compressed format
?? 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一区二区三区免费野_久草精品视频
午夜精品一区二区三区三上悠亚| 国产网红主播福利一区二区| 亚洲老妇xxxxxx| 色久综合一二码| 性久久久久久久| 欧美一区国产二区| 国内精品自线一区二区三区视频| 精品国产91洋老外米糕| 国产成人精品免费| 一区二区三区波多野结衣在线观看 | 精品视频免费在线| 丝袜脚交一区二区| 久久青草欧美一区二区三区| 成人一二三区视频| 亚洲一区二区视频在线| 日韩女优电影在线观看| 国产精品香蕉一区二区三区| 日韩美女久久久| 欧美日韩电影在线| 国产一区二区三区观看| 亚洲欧美日韩国产另类专区| 欧美日韩另类国产亚洲欧美一级| 久久精品国产99国产精品| 日本一区二区三级电影在线观看 | 欧美日韩你懂的| 日本欧美肥老太交大片| 国产精品网站在线播放| 一本到不卡免费一区二区| 免费在线一区观看| 亚洲视频在线一区| 欧美变态tickle挠乳网站| www.视频一区| 精品一区二区三区久久久| 日韩一区欧美一区| 欧美xxxx老人做受| 日本久久一区二区| 国产精品一卡二卡| 三级影片在线观看欧美日韩一区二区| 久久精品一区二区| 3d动漫精品啪啪1区2区免费| 高清国产一区二区| 美腿丝袜在线亚洲一区| 亚洲男人的天堂av| 国产午夜一区二区三区| 91麻豆精品国产91久久久使用方法| 高清成人免费视频| 久久91精品国产91久久小草| 亚洲午夜一二三区视频| 国产精品妹子av| 日韩欧美久久一区| 欧美日韩国产小视频| 9i在线看片成人免费| 国产精品一二三在| 狠狠色狠狠色综合系列| 日韩高清中文字幕一区| 一区二区三区四区五区视频在线观看| 久久精品人人做人人爽人人| 欧美一级欧美三级在线观看| 欧美无乱码久久久免费午夜一区 | 性做久久久久久免费观看| 国产精品热久久久久夜色精品三区 | 精品久久人人做人人爱| 欧美日韩在线观看一区二区| 一本到不卡精品视频在线观看| 高清免费成人av| 国产高清成人在线| 精品亚洲aⅴ乱码一区二区三区| 秋霞成人午夜伦在线观看| 日韩在线一区二区| 午夜激情久久久| 亚洲成人久久影院| 亚洲成人综合在线| 午夜激情综合网| 日本成人在线电影网| 免费精品视频最新在线| 日韩av一区二区在线影视| 日本不卡免费在线视频| 看片网站欧美日韩| 久久国产综合精品| 国产成人在线观看免费网站| 国产成人免费av在线| 国产精品一区在线观看你懂的| 国产乱人伦偷精品视频不卡| 国产精品自在在线| 99精品偷自拍| 欧美体内she精视频| 欧美一级欧美三级在线观看 | 欧美色图第一页| 欧美日韩电影在线播放| 欧美一区二区三区四区五区| 日韩视频免费观看高清完整版| 欧美zozo另类异族| 国产精品网站在线| 亚洲精品少妇30p| 亚洲高清免费视频| 日韩成人一区二区| 国产一区二区三区精品欧美日韩一区二区三区 | 欧美刺激午夜性久久久久久久| 日韩你懂的在线播放| 久久久久久久久久久久电影| 中文字幕一区在线观看| 午夜欧美在线一二页| 久久成人精品无人区| 成人免费av在线| 欧美怡红院视频| 精品美女一区二区三区| 国产精品久久久久久久久久免费看| 亚洲视频在线一区| 日本三级亚洲精品| 成人美女视频在线观看| 欧美精品日韩一本| 国产人伦精品一区二区| 亚洲一区二区欧美| 国产一区欧美二区| 99久久精品免费| 日韩欧美中文字幕一区| 国产精品乱码久久久久久| 亚洲一区二区三区视频在线| 国内精品在线播放| 欧美视频三区在线播放| 久久久噜噜噜久久人人看| 夜色激情一区二区| 国产在线精品国自产拍免费| 色综合一个色综合| 久久综合色天天久久综合图片| 亚洲视频一区在线观看| 久久精品国产亚洲高清剧情介绍 | 日韩影院精彩在线| 成人精品国产免费网站| 欧美大片国产精品| 亚洲综合在线观看视频| 国产mv日韩mv欧美| 91精品国产福利| 一区二区在线观看免费| 国产精品99久久久久久久女警| 欧美系列日韩一区| 亚洲同性同志一二三专区| 国产又黄又大久久| 欧美美女一区二区| 日韩一区在线看| 国产+成+人+亚洲欧洲自线| 日韩欧美一级片| 亚洲第一精品在线| 色综合久久六月婷婷中文字幕| www国产精品av| 麻豆国产精品一区二区三区| 欧美精品v国产精品v日韩精品| 亚洲人成电影网站色mp4| 国产精品99久久久久久有的能看 | 日韩毛片在线免费观看| 国产精品一区二区视频| 精品国产髙清在线看国产毛片| 亚洲第一成人在线| 欧美亚一区二区| 一区二区三区av电影| 色婷婷综合久色| 亚洲欧美区自拍先锋| 成av人片一区二区| 中文字幕国产一区二区| 国产成人亚洲综合a∨婷婷图片| 日韩精品一区二区三区swag| 麻豆久久一区二区| 日韩一区二区三区电影在线观看| 亚洲亚洲精品在线观看| 欧美唯美清纯偷拍| 五月婷婷久久丁香| 日韩三级视频在线观看| 久久 天天综合| 久久久欧美精品sm网站| 国产91综合一区在线观看| 国产婷婷精品av在线| 成人免费看片app下载| 亚洲三级小视频| 欧美中文字幕一区二区三区 | 国产精品激情偷乱一区二区∴| 国产高清精品久久久久| 1024成人网色www| 日本高清不卡一区| 亚瑟在线精品视频| 欧美成人精精品一区二区频| 国产乱码精品1区2区3区| 欧美国产日韩亚洲一区| 99精品在线免费| 亚洲高清免费观看高清完整版在线观看 | 亚洲成人先锋电影| 欧美一级免费大片| 韩国av一区二区| 国产精品国模大尺度视频| 色狠狠一区二区三区香蕉| 日韩影视精彩在线| 国产清纯美女被跳蛋高潮一区二区久久w| 国产成人自拍在线| 亚洲精品免费视频| 欧美美女黄视频| 国产福利91精品一区| 亚洲人成网站精品片在线观看| 91精品国产综合久久久久久久久久 | 日韩成人精品在线观看| 久久久久久久久久久久久久久99| 成人三级在线视频|