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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? jfdctfst.c

?? 一款最完整的工業(yè)組態(tài)軟源代碼
?? C
字號(hào):
/*
 * jfdctfst.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 a fast, not so accurate integer implementation of the
 * forward DCT (Discrete Cosine Transform).
 *
 * A 2-D DCT can be done by 1-D DCT on each row followed by 1-D DCT
 * on each column.  Direct algorithms are also available, but they are
 * much more complex and seem not to be any faster when reduced to code.
 *
 * This implementation is based on Arai, Agui, and Nakajima's algorithm for
 * scaled DCT.  Their original paper (Trans. IEICE E-71(11):1095) is in
 * Japanese, but the algorithm is described in the Pennebaker & Mitchell
 * JPEG textbook (see REFERENCES section in file README).  The following code
 * is based directly on figure 4-8 in P&M.
 * While an 8-point DCT cannot be done in less than 11 multiplies, it is
 * possible to arrange the computation so that many of the multiplies are
 * simple scalings of the final outputs.  These multiplies can then be
 * folded into the multiplications or divisions by the JPEG quantization
 * table entries.  The AA&N method leaves only 5 multiplies and 29 adds
 * to be done in the DCT itself.
 * The primary disadvantage of this method is that with fixed-point math,
 * accuracy is lost due to imprecise representation of the scaled
 * quantization values.  The smaller the quantization table entry, the less
 * precise the scaled value, so this implementation does worse with high-
 * quality-setting files than with low-quality ones.
 */

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

#ifdef DCT_IFAST_SUPPORTED


/*
 * This module is specialized to the case DCTSIZE = 8.
 */

#if DCTSIZE != 8
  Sorry, this code only copes with 8x8 DCTs. /* deliberate syntax err */
#endif


/* Scaling decisions are generally the same as in the LL&M algorithm;
 * see jfdctint.c for more details.  However, we choose to descale
 * (right shift) multiplication products as soon as they are formed,
 * rather than carrying additional fractional bits into subsequent additions.
 * This compromises accuracy slightly, but it lets us save a few shifts.
 * More importantly, 16-bit arithmetic is then adequate (for 8-bit samples)
 * everywhere except in the multiplications proper; this saves a good deal
 * of work on 16-bit-int machines.
 *
 * Again to save a few shifts, the intermediate results between pass 1 and
 * pass 2 are not upscaled, but are represented only to integral precision.
 *
 * A final compromise is to represent the multiplicative constants to only
 * 8 fractional bits, rather than 13.  This saves some shifting work on some
 * machines, and may also reduce the cost of multiplication (since there
 * are fewer one-bits in the constants).
 */

#define CONST_BITS  8


/* Some C compilers fail to reduce "FIX(constant)" at compile time, thus
 * causing a lot of useless floating-point operations at run time.
 * To get around this we use the following pre-calculated constants.
 * If you change CONST_BITS you may want to add appropriate values.
 * (With a reasonable C compiler, you can just rely on the FIX() macro...)
 */

#if CONST_BITS == 8
#define FIX_0_382683433  ((INT32)   98)		/* FIX(0.382683433) */
#define FIX_0_541196100  ((INT32)  139)		/* FIX(0.541196100) */
#define FIX_0_707106781  ((INT32)  181)		/* FIX(0.707106781) */
#define FIX_1_306562965  ((INT32)  334)		/* FIX(1.306562965) */
#else
#define FIX_0_382683433  FIX(0.382683433)
#define FIX_0_541196100  FIX(0.541196100)
#define FIX_0_707106781  FIX(0.707106781)
#define FIX_1_306562965  FIX(1.306562965)
#endif


/* We can gain a little more speed, with a further compromise in accuracy,
 * by omitting the addition in a descaling shift.  This yields an incorrectly
 * rounded result half the time...
 */

#ifndef USE_ACCURATE_ROUNDING
#undef DESCALE
#define DESCALE(x,n)  RIGHT_SHIFT(x, n)
#endif


/* Multiply a DCTELEM variable by an INT32 constant, and immediately
 * descale to yield a DCTELEM result.
 */

#define MULTIPLY(var,const)  ((DCTELEM) DESCALE((var) * (const), CONST_BITS))


/*
 * Perform the forward DCT on one block of samples.
 */

GLOBAL(void)
jpeg_fdct_ifast (DCTELEM * data)
{
  DCTELEM tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
  DCTELEM tmp10, tmp11, tmp12, tmp13;
  DCTELEM z1, z2, z3, z4, z5, z11, z13;
  DCTELEM *dataptr;
  int ctr;
  SHIFT_TEMPS

  /* Pass 1: process rows. */

  dataptr = data;
  for (ctr = DCTSIZE-1; ctr >= 0; ctr--) {
    tmp0 = dataptr[0] + dataptr[7];
    tmp7 = dataptr[0] - dataptr[7];
    tmp1 = dataptr[1] + dataptr[6];
    tmp6 = dataptr[1] - dataptr[6];
    tmp2 = dataptr[2] + dataptr[5];
    tmp5 = dataptr[2] - dataptr[5];
    tmp3 = dataptr[3] + dataptr[4];
    tmp4 = dataptr[3] - dataptr[4];
    
    /* Even part */
    
    tmp10 = tmp0 + tmp3;	/* phase 2 */
    tmp13 = tmp0 - tmp3;
    tmp11 = tmp1 + tmp2;
    tmp12 = tmp1 - tmp2;
    
    dataptr[0] = tmp10 + tmp11; /* phase 3 */
    dataptr[4] = tmp10 - tmp11;
    
    z1 = MULTIPLY(tmp12 + tmp13, FIX_0_707106781); /* c4 */
    dataptr[2] = tmp13 + z1;	/* phase 5 */
    dataptr[6] = tmp13 - z1;
    
    /* Odd part */

    tmp10 = tmp4 + tmp5;	/* phase 2 */
    tmp11 = tmp5 + tmp6;
    tmp12 = tmp6 + tmp7;

    /* The rotator is modified from fig 4-8 to avoid extra negations. */
    z5 = MULTIPLY(tmp10 - tmp12, FIX_0_382683433); /* c6 */
    z2 = MULTIPLY(tmp10, FIX_0_541196100) + z5; /* c2-c6 */
    z4 = MULTIPLY(tmp12, FIX_1_306562965) + z5; /* c2+c6 */
    z3 = MULTIPLY(tmp11, FIX_0_707106781); /* c4 */

    z11 = tmp7 + z3;		/* phase 5 */
    z13 = tmp7 - z3;

    dataptr[5] = z13 + z2;	/* phase 6 */
    dataptr[3] = z13 - z2;
    dataptr[1] = z11 + z4;
    dataptr[7] = z11 - z4;

    dataptr += DCTSIZE;		/* advance pointer to next row */
  }

  /* Pass 2: process columns. */

  dataptr = data;
  for (ctr = DCTSIZE-1; ctr >= 0; ctr--) {
    tmp0 = dataptr[DCTSIZE*0] + dataptr[DCTSIZE*7];
    tmp7 = dataptr[DCTSIZE*0] - dataptr[DCTSIZE*7];
    tmp1 = dataptr[DCTSIZE*1] + dataptr[DCTSIZE*6];
    tmp6 = dataptr[DCTSIZE*1] - dataptr[DCTSIZE*6];
    tmp2 = dataptr[DCTSIZE*2] + dataptr[DCTSIZE*5];
    tmp5 = dataptr[DCTSIZE*2] - dataptr[DCTSIZE*5];
    tmp3 = dataptr[DCTSIZE*3] + dataptr[DCTSIZE*4];
    tmp4 = dataptr[DCTSIZE*3] - dataptr[DCTSIZE*4];
    
    /* Even part */
    
    tmp10 = tmp0 + tmp3;	/* phase 2 */
    tmp13 = tmp0 - tmp3;
    tmp11 = tmp1 + tmp2;
    tmp12 = tmp1 - tmp2;
    
    dataptr[DCTSIZE*0] = tmp10 + tmp11; /* phase 3 */
    dataptr[DCTSIZE*4] = tmp10 - tmp11;
    
    z1 = MULTIPLY(tmp12 + tmp13, FIX_0_707106781); /* c4 */
    dataptr[DCTSIZE*2] = tmp13 + z1; /* phase 5 */
    dataptr[DCTSIZE*6] = tmp13 - z1;
    
    /* Odd part */

    tmp10 = tmp4 + tmp5;	/* phase 2 */
    tmp11 = tmp5 + tmp6;
    tmp12 = tmp6 + tmp7;

    /* The rotator is modified from fig 4-8 to avoid extra negations. */
    z5 = MULTIPLY(tmp10 - tmp12, FIX_0_382683433); /* c6 */
    z2 = MULTIPLY(tmp10, FIX_0_541196100) + z5; /* c2-c6 */
    z4 = MULTIPLY(tmp12, FIX_1_306562965) + z5; /* c2+c6 */
    z3 = MULTIPLY(tmp11, FIX_0_707106781); /* c4 */

    z11 = tmp7 + z3;		/* phase 5 */
    z13 = tmp7 - z3;

    dataptr[DCTSIZE*5] = z13 + z2; /* phase 6 */
    dataptr[DCTSIZE*3] = z13 - z2;
    dataptr[DCTSIZE*1] = z11 + z4;
    dataptr[DCTSIZE*7] = z11 - z4;

    dataptr++;			/* advance pointer to next column */
  }
}

#endif /* DCT_IFAST_SUPPORTED */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人夜色高潮福利影视| 欧美在线免费播放| 国产91丝袜在线观看| 91久久精品午夜一区二区| 91丨porny丨蝌蚪视频| 高清shemale亚洲人妖| 欧美丝袜丝交足nylons| 国产视频一区二区在线| 久久精品99国产国产精| 一本一道波多野结衣一区二区 | 亚洲同性gay激情无套| 日韩av中文在线观看| 91丝袜美腿高跟国产极品老师 | 亚洲电影第三页| 粉嫩绯色av一区二区在线观看| 欧美肥胖老妇做爰| 国产精品久久久久久久久免费相片| 日本三级亚洲精品| 97精品视频在线观看自产线路二| 欧美主播一区二区三区美女| 国产精品影视在线| 欧美老肥妇做.爰bbww| 国产日韩成人精品| 久久99久国产精品黄毛片色诱| 色视频成人在线观看免| 国产精品素人一区二区| 激情五月激情综合网| 欧美精品电影在线播放| 日韩一区在线免费观看| 国产成人免费9x9x人网站视频| 精品国内二区三区| 久久国产精品免费| 欧美浪妇xxxx高跟鞋交| 日韩精品久久理论片| 欧美精品在线观看一区二区| 亚洲一区二区在线播放相泽 | 97se亚洲国产综合在线| 日本一区二区久久| 成人免费视频网站在线观看| 久久网站热最新地址| 91精品午夜视频| 亚洲自拍偷拍九九九| 在线观看日韩高清av| 亚洲激情一二三区| 一本色道亚洲精品aⅴ| 亚洲精品国产一区二区精华液 | 中文字幕乱码亚洲精品一区| 国产高清精品网站| 国产精品日日摸夜夜摸av| 成人免费看黄yyy456| 亚洲视频一二三区| 91老司机福利 在线| 欧美精品电影在线播放| 精品视频资源站| 欧美一区二区三区白人| 国产精品久久久久影院老司| 麻豆精品在线视频| 精品国产麻豆免费人成网站| 国产精品88888| 中文字幕欧美一区| 91亚洲精品乱码久久久久久蜜桃 | 欧美激情在线观看视频免费| aa级大片欧美| 日韩中文字幕91| 久久久精品国产免大香伊 | 欧美一区二区三区成人| 久久99久久久久| 国产亚洲欧美色| 日本高清成人免费播放| 老司机免费视频一区二区| 国产偷v国产偷v亚洲高清| 欧美最猛黑人xxxxx猛交| 久久99精品久久久| 亚洲精品视频自拍| 最近日韩中文字幕| 日韩高清国产一区在线| 久久综合九色综合97婷婷女人| 高清国产午夜精品久久久久久| 一区二区三区四区在线播放| 日韩午夜在线影院| 成人激情文学综合网| 日韩精品成人一区二区三区| 国产精品无码永久免费888| 欧美日韩综合一区| 国产成人av在线影院| 亚洲成人动漫在线免费观看| 国产精品久久夜| 3atv一区二区三区| 色av成人天堂桃色av| 精品一区二区三区在线播放视频| 亚洲黄色录像片| 国产精品天美传媒| 久久精品在线观看| 日韩免费观看高清完整版| 欧美图区在线视频| 亚洲精品综合在线| 久久久国际精品| 欧美第一区第二区| 在线播放视频一区| 欧美午夜不卡视频| 99久久精品国产一区| 国产麻豆成人精品| 日本不卡一区二区三区高清视频| 国产精品久久毛片av大全日韩| 在线播放中文一区| 欧美蜜桃一区二区三区| 欧美综合色免费| 色综合亚洲欧洲| 波多野结衣91| 成人国产在线观看| 岛国av在线一区| 春色校园综合激情亚洲| 国产真实乱子伦精品视频| 久久99精品网久久| 精品一区二区三区的国产在线播放| 日本不卡视频一二三区| 美女性感视频久久| 久久99深爱久久99精品| 青娱乐精品视频在线| 久久99精品久久久久久久久久久久 | 91欧美一区二区| 国产一区二区三区电影在线观看 | 久久久91精品国产一区二区三区| 欧美一级片在线| 欧美一区二区视频免费观看| 欧美一区二区三区啪啪| 日韩视频在线观看一区二区| 精品少妇一区二区三区免费观看| 欧美不卡一区二区三区| 精品久久一区二区三区| 日韩欧美在线一区二区三区| 欧美成人精品3d动漫h| 精品久久久三级丝袜| 国产日韩欧美亚洲| 亚洲色图制服丝袜| 亚洲柠檬福利资源导航| 亚洲va中文字幕| 精品一区二区在线免费观看| 成人一区二区三区视频在线观看| 国产成人在线看| 91黄视频在线观看| 亚洲成va人在线观看| 日韩vs国产vs欧美| 国产精品一区二区久久精品爱涩| 国产激情视频一区二区三区欧美| www.综合网.com| 欧美日韩美女一区二区| 久久综合九色综合欧美98 | 捆绑变态av一区二区三区| 国产曰批免费观看久久久| 99久久777色| 日韩欧美亚洲一区二区| 国产精品天天看| 日韩**一区毛片| 成人国产一区二区三区精品| 91蜜桃在线免费视频| 日韩亚洲欧美成人一区| 中文字幕欧美日本乱码一线二线| 亚洲成av人片在线观看| 国产成人精品综合在线观看 | 日韩精品一区二区三区在线观看| 国产精品成人网| 精品午夜久久福利影院| 99精品一区二区| 欧美成人一区二区三区| 亚洲精品国产无套在线观| 久久精品99国产精品日本| av爱爱亚洲一区| 精品久久久久久最新网址| 亚洲精品国产视频| 国产精品69毛片高清亚洲| 欧美日韩一级二级| 欧美国产丝袜视频| 麻豆国产91在线播放| 色狠狠色狠狠综合| 国产欧美一区二区精品性| 亚洲1区2区3区视频| 成人免费精品视频| 精品久久国产老人久久综合| 亚洲自拍另类综合| 99re视频精品| 国产偷国产偷亚洲高清人白洁| 日日欢夜夜爽一区| 欧美在线免费观看亚洲| 最新日韩av在线| www.日韩精品| 国产女主播视频一区二区| 麻豆91在线播放免费| 欧美精品在线观看播放| 一区二区理论电影在线观看| 不卡高清视频专区| 日韩美一区二区三区| 琪琪一区二区三区| 欧美丝袜丝交足nylons图片| 国产精品另类一区| 粉嫩欧美一区二区三区高清影视| 精品成人佐山爱一区二区| 麻豆久久久久久| 久久天天做天天爱综合色| 黑人巨大精品欧美一区|