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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? jddctmgr.c

?? WinCE開(kāi)發(fā)技巧與實(shí)例的配套源碼
?? C
字號(hào):
/*
 * 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;
  }
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美二区三区| 国产亚洲欧美一级| 久久久亚洲精品石原莉奈| av亚洲产国偷v产偷v自拍| 91免费版pro下载短视频| 亚洲激情自拍偷拍| 在线视频综合导航| 九色综合狠狠综合久久| 一区二区三区在线播放| 欧美在线观看一区二区| 国产成人夜色高潮福利影视| 国产亚洲欧美日韩在线一区| 久久精品日韩一区二区三区| 久久精品夜色噜噜亚洲aⅴ| 精品久久人人做人人爱| 2023国产精品| 中文字幕一区二区视频| 亚洲另类色综合网站| 亚洲网友自拍偷拍| 日本aⅴ免费视频一区二区三区| 久久丁香综合五月国产三级网站 | 精品一区二区三区蜜桃| 国产精品正在播放| 91免费国产在线| 欧美色精品在线视频| 欧美一级电影网站| 亚洲国产成人一区二区三区| 亚洲视频免费看| 日韩精品视频网| 国产中文字幕一区| 91在线你懂得| 欧美电影在线免费观看| 久久久久久亚洲综合| 亚洲同性同志一二三专区| 亚洲123区在线观看| 久久99精品视频| 成人免费视频视频| 欧美高清在线视频| 久久久蜜臀国产一区二区| 一区二区欧美在线观看| 亚洲午夜久久久久久久久电影院 | 美女视频黄a大片欧美| 亚洲免费观看高清完整| 亚洲一线二线三线视频| 精品一区二区三区在线播放视频| 亚洲成av人在线观看| 蜜桃精品在线观看| 成人一区在线观看| 6080日韩午夜伦伦午夜伦| 国产日韩欧美精品一区| 夜色激情一区二区| 久久99久久久欧美国产| 99re6这里只有精品视频在线观看| 欧美日本韩国一区| 中文成人综合网| 日韩中文字幕区一区有砖一区 | 国产成人在线色| 精品视频在线免费| 欧美国产一区在线| 美美哒免费高清在线观看视频一区二区| 国产a视频精品免费观看| 精品视频1区2区3区| 国产精品美女久久久久久久久久久 | 成人高清视频免费观看| 91精品免费观看| 亚洲人妖av一区二区| 九色综合狠狠综合久久| 欧美性色欧美a在线播放| 国产人成亚洲第一网站在线播放| 亚洲一区二区偷拍精品| 国产成a人无v码亚洲福利| 日韩一区二区三区在线视频| 亚洲欧美日韩综合aⅴ视频| 国产综合成人久久大片91| 7777精品伊人久久久大香线蕉完整版 | 国产一区二区三区在线观看精品 | 日本一区中文字幕| 欧美网站大全在线观看| 亚洲三级理论片| 国产成人综合在线| 久久一夜天堂av一区二区三区| 五月天视频一区| 欧美性色黄大片| 天堂精品中文字幕在线| 日韩理论电影院| 亚洲成人精品一区二区| 不卡在线观看av| 国产精品入口麻豆原神| 国产一区二区三区黄视频| 日韩一级黄色片| 日韩一区精品视频| 欧美日韩mp4| 亚洲国产婷婷综合在线精品| 一本大道久久a久久精二百| 国产精品三级在线观看| 国产一区二区三区黄视频 | 高清成人免费视频| 欧美www视频| 久久99精品国产麻豆不卡| 91麻豆精品国产91久久久更新时间 | 亚洲人成精品久久久久| 成人av网在线| 中文字幕亚洲综合久久菠萝蜜| 国产精品69久久久久水密桃| 久久久一区二区| 国产成人自拍网| 国产精品久久久久久久久免费丝袜| 狠狠色狠狠色合久久伊人| 久久亚洲影视婷婷| 国产精品夜夜爽| 亚洲国产精品av| 成人av在线资源网站| 中文字幕一区二区三区在线不卡| www.欧美色图| 亚洲精品国久久99热| 欧洲精品一区二区三区在线观看| 一区二区三区高清在线| 99re热视频这里只精品| 国产成人日日夜夜| jiyouzz国产精品久久| 99国产精品国产精品久久| 亚洲成人av中文| 中文字幕中文在线不卡住| 欧美精品在线视频| 色综合久久久久| 91丨国产丨九色丨pron| 国产美女娇喘av呻吟久久| 亚洲高清在线精品| 综合久久一区二区三区| 久久久久久一二三区| 中文字幕欧美国产| 99天天综合性| 亚洲地区一二三色| 久久伊人中文字幕| 色一情一伦一子一伦一区| 日韩成人dvd| 国产清纯白嫩初高生在线观看91| 波多野结衣亚洲一区| 亚洲国产另类av| 久久理论电影网| www.亚洲在线| 视频一区二区中文字幕| 久久久高清一区二区三区| 91蜜桃传媒精品久久久一区二区| 亚洲高清免费视频| 久久理论电影网| 欧美中文一区二区三区| 久久91精品国产91久久小草| 国产精品不卡一区二区三区| 在线不卡中文字幕| 国产v综合v亚洲欧| 日日夜夜精品视频免费| 亚洲国产高清aⅴ视频| 欧美日精品一区视频| 国产乱淫av一区二区三区| 一区二区三区视频在线观看| 欧美电影免费观看高清完整版在| 99视频超级精品| 精品伊人久久久久7777人| 亚洲四区在线观看| 精品久久人人做人人爱| 欧美视频在线不卡| 国产成人综合精品三级| 日韩国产在线观看一区| 国产精品盗摄一区二区三区| 91精品国产综合久久久蜜臀图片| 91美女在线视频| 国产99久久久国产精品潘金网站| 首页国产欧美日韩丝袜| 亚洲欧美激情一区二区| 精品乱码亚洲一区二区不卡| 九九九精品视频| 亚洲一区二区三区视频在线| 亚洲国产精品av| 亚洲午夜羞羞片| 蜜桃精品视频在线| 精品久久久三级丝袜| 日本成人在线电影网| 国产99久久久精品| 91精品国产综合久久久久| 中文字幕一区二区不卡 | 51精品视频一区二区三区| 国产精品情趣视频| 精品无人码麻豆乱码1区2区| 欧美午夜精品久久久| 国产日韩高清在线| 成人蜜臀av电影| 国产精品久久久久影院亚瑟 | 久久久久久久久免费| 制服丝袜中文字幕一区| 91国偷自产一区二区开放时间 | 婷婷成人综合网| 亚洲一区二区偷拍精品| 亚洲精品中文在线| 中文字幕一区二区三区在线观看| 国产欧美日韩三级| 久久免费美女视频| 久久综合狠狠综合久久综合88 | 99免费精品在线观看| 高清久久久久久|