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

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

?? jquant1.c

?? 支持各種柵格圖像和矢量圖像讀取的庫
?? C
?? 第 1 頁 / 共 3 頁
字號:
	     cquantize->Ncolors[1], cquantize->Ncolors[2]);  else    TRACEMS1(cinfo, 1, JTRC_QUANT_NCOLORS, total_colors);  /* Allocate and fill in the colormap. */  /* The colors are ordered in the map in standard row-major order, */  /* i.e. rightmost (highest-indexed) color changes most rapidly. */  colormap = (*cinfo->mem->alloc_sarray)    ((j_common_ptr) cinfo, JPOOL_IMAGE,     (JDIMENSION) total_colors, (JDIMENSION) cinfo->out_color_components);  /* blksize is number of adjacent repeated entries for a component */  /* blkdist is distance between groups of identical entries for a component */  blkdist = total_colors;  for (i = 0; i < cinfo->out_color_components; i++) {    /* fill in colormap entries for i'th color component */    nci = cquantize->Ncolors[i]; /* # of distinct values for this color */    blksize = blkdist / nci;    for (j = 0; j < nci; j++) {      /* Compute j'th output value (out of nci) for component */      val = output_value(cinfo, i, j, nci-1);      /* Fill in all colormap entries that have this value of this component */      for (ptr = j * blksize; ptr < total_colors; ptr += blkdist) {	/* fill in blksize entries beginning at ptr */	for (k = 0; k < blksize; k++)	  colormap[i][ptr+k] = (JSAMPLE) val;      }    }    blkdist = blksize;		/* blksize of this color is blkdist of next */  }  /* Save the colormap in private storage,   * where it will survive color quantization mode changes.   */  cquantize->sv_colormap = colormap;  cquantize->sv_actual = total_colors;}/* * Create the color index table. */LOCAL(void)create_colorindex (j_decompress_ptr cinfo){  my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;  JSAMPROW indexptr;  int i,j,k, nci, blksize, val, pad;  /* For ordered dither, we pad the color index tables by MAXJSAMPLE in   * each direction (input index values can be -MAXJSAMPLE .. 2*MAXJSAMPLE).   * This is not necessary in the other dithering modes.  However, we   * flag whether it was done in case user changes dithering mode.   */  if (cinfo->dither_mode == JDITHER_ORDERED) {    pad = MAXJSAMPLE*2;    cquantize->is_padded = TRUE;  } else {    pad = 0;    cquantize->is_padded = FALSE;  }  cquantize->colorindex = (*cinfo->mem->alloc_sarray)    ((j_common_ptr) cinfo, JPOOL_IMAGE,     (JDIMENSION) (MAXJSAMPLE+1 + pad),     (JDIMENSION) cinfo->out_color_components);  /* blksize is number of adjacent repeated entries for a component */  blksize = cquantize->sv_actual;  for (i = 0; i < cinfo->out_color_components; i++) {    /* fill in colorindex entries for i'th color component */    nci = cquantize->Ncolors[i]; /* # of distinct values for this color */    blksize = blksize / nci;    /* adjust colorindex pointers to provide padding at negative indexes. */    if (pad)      cquantize->colorindex[i] += MAXJSAMPLE;    /* in loop, val = index of current output value, */    /* and k = largest j that maps to current val */    indexptr = cquantize->colorindex[i];    val = 0;    k = largest_input_value(cinfo, i, 0, nci-1);    for (j = 0; j <= MAXJSAMPLE; j++) {      while (j > k)		/* advance val if past boundary */	k = largest_input_value(cinfo, i, ++val, nci-1);      /* premultiply so that no multiplication needed in main processing */      indexptr[j] = (JSAMPLE) (val * blksize);    }    /* Pad at both ends if necessary */    if (pad)      for (j = 1; j <= MAXJSAMPLE; j++) {	indexptr[-j] = indexptr[0];	indexptr[MAXJSAMPLE+j] = indexptr[MAXJSAMPLE];      }  }}/* * Create an ordered-dither array for a component having ncolors * distinct output values. */LOCAL(ODITHER_MATRIX_PTR)make_odither_array (j_decompress_ptr cinfo, int ncolors){  ODITHER_MATRIX_PTR odither;  int j,k;  INT32 num,den;  odither = (ODITHER_MATRIX_PTR)    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,				SIZEOF(ODITHER_MATRIX));  /* The inter-value distance for this color is MAXJSAMPLE/(ncolors-1).   * Hence the dither value for the matrix cell with fill order f   * (f=0..N-1) should be (N-1-2*f)/(2*N) * MAXJSAMPLE/(ncolors-1).   * On 16-bit-int machine, be careful to avoid overflow.   */  den = 2 * ODITHER_CELLS * ((INT32) (ncolors - 1));  for (j = 0; j < ODITHER_SIZE; j++) {    for (k = 0; k < ODITHER_SIZE; k++) {      num = ((INT32) (ODITHER_CELLS-1 - 2*((int)base_dither_matrix[j][k])))	    * MAXJSAMPLE;      /* Ensure round towards zero despite C's lack of consistency       * about rounding negative values in integer division...       */      odither[j][k] = (int) (num<0 ? -((-num)/den) : num/den);    }  }  return odither;}/* * Create the ordered-dither tables. * Components having the same number of representative colors may  * share a dither table. */LOCAL(void)create_odither_tables (j_decompress_ptr cinfo){  my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;  ODITHER_MATRIX_PTR odither;  int i, j, nci;  for (i = 0; i < cinfo->out_color_components; i++) {    nci = cquantize->Ncolors[i]; /* # of distinct values for this color */    odither = NULL;		/* search for matching prior component */    for (j = 0; j < i; j++) {      if (nci == cquantize->Ncolors[j]) {	odither = cquantize->odither[j];	break;      }    }    if (odither == NULL)	/* need a new table? */      odither = make_odither_array(cinfo, nci);    cquantize->odither[i] = odither;  }}/* * Map some rows of pixels to the output colormapped representation. */METHODDEF(void)color_quantize (j_decompress_ptr cinfo, JSAMPARRAY input_buf,		JSAMPARRAY output_buf, int num_rows)/* General case, no dithering */{  my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;  JSAMPARRAY colorindex = cquantize->colorindex;  register int pixcode, ci;  register JSAMPROW ptrin, ptrout;  int row;  JDIMENSION col;  JDIMENSION width = cinfo->output_width;  register int nc = cinfo->out_color_components;  for (row = 0; row < num_rows; row++) {    ptrin = input_buf[row];    ptrout = output_buf[row];    for (col = width; col > 0; col--) {      pixcode = 0;      for (ci = 0; ci < nc; ci++) {	pixcode += GETJSAMPLE(colorindex[ci][GETJSAMPLE(*ptrin++)]);      }      *ptrout++ = (JSAMPLE) pixcode;    }  }}METHODDEF(void)color_quantize3 (j_decompress_ptr cinfo, JSAMPARRAY input_buf,		 JSAMPARRAY output_buf, int num_rows)/* Fast path for out_color_components==3, no dithering */{  my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;  register int pixcode;  register JSAMPROW ptrin, ptrout;  JSAMPROW colorindex0 = cquantize->colorindex[0];  JSAMPROW colorindex1 = cquantize->colorindex[1];  JSAMPROW colorindex2 = cquantize->colorindex[2];  int row;  JDIMENSION col;  JDIMENSION width = cinfo->output_width;  for (row = 0; row < num_rows; row++) {    ptrin = input_buf[row];    ptrout = output_buf[row];    for (col = width; col > 0; col--) {      pixcode  = GETJSAMPLE(colorindex0[GETJSAMPLE(*ptrin++)]);      pixcode += GETJSAMPLE(colorindex1[GETJSAMPLE(*ptrin++)]);      pixcode += GETJSAMPLE(colorindex2[GETJSAMPLE(*ptrin++)]);      *ptrout++ = (JSAMPLE) pixcode;    }  }}METHODDEF(void)quantize_ord_dither (j_decompress_ptr cinfo, JSAMPARRAY input_buf,		     JSAMPARRAY output_buf, int num_rows)/* General case, with ordered dithering */{  my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;  register JSAMPROW input_ptr;  register JSAMPROW output_ptr;  JSAMPROW colorindex_ci;  int * dither;			/* points to active row of dither matrix */  int row_index, col_index;	/* current indexes into dither matrix */  int nc = cinfo->out_color_components;  int ci;  int row;  JDIMENSION col;  JDIMENSION width = cinfo->output_width;  for (row = 0; row < num_rows; row++) {    /* Initialize output values to 0 so can process components separately */    jzero_far((void FAR *) output_buf[row],	      (size_t) (width * SIZEOF(JSAMPLE)));    row_index = cquantize->row_index;    for (ci = 0; ci < nc; ci++) {      input_ptr = input_buf[row] + ci;      output_ptr = output_buf[row];      colorindex_ci = cquantize->colorindex[ci];      dither = cquantize->odither[ci][row_index];      col_index = 0;      for (col = width; col > 0; col--) {	/* Form pixel value + dither, range-limit to 0..MAXJSAMPLE,	 * select output value, accumulate into output code for this pixel.	 * Range-limiting need not be done explicitly, as we have extended	 * the colorindex table to produce the right answers for out-of-range	 * inputs.  The maximum dither is +- MAXJSAMPLE; this sets the	 * required amount of padding.	 */	*output_ptr += colorindex_ci[GETJSAMPLE(*input_ptr)+dither[col_index]];	input_ptr += nc;	output_ptr++;	col_index = (col_index + 1) & ODITHER_MASK;      }    }    /* Advance row index for next row */    row_index = (row_index + 1) & ODITHER_MASK;    cquantize->row_index = row_index;  }}METHODDEF(void)quantize3_ord_dither (j_decompress_ptr cinfo, JSAMPARRAY input_buf,		      JSAMPARRAY output_buf, int num_rows)/* Fast path for out_color_components==3, with ordered dithering */{  my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;  register int pixcode;  register JSAMPROW input_ptr;  register JSAMPROW output_ptr;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美日韩久久| 欧美美女一区二区在线观看| 久久影院电视剧免费观看| 久久成人av少妇免费| 26uuu精品一区二区三区四区在线| 韩国v欧美v亚洲v日本v| 国产午夜亚洲精品羞羞网站| 成人在线综合网站| 亚洲永久精品国产| 日韩欧美激情在线| 成人免费看黄yyy456| 亚洲你懂的在线视频| 91精品国产综合久久精品| 国产精品亚洲综合一区在线观看| 欧美国产精品劲爆| 欧日韩精品视频| 美女爽到高潮91| 欧美激情综合五月色丁香 | 一区二区三区av电影| 777奇米成人网| 国产成a人亚洲精品| 亚洲黄色性网站| www成人在线观看| 91在线观看下载| 另类调教123区| 亚洲国产高清在线| 欧美一区二区三区四区视频| 波多野结衣91| 日本午夜精品一区二区三区电影 | 国产精品成人免费精品自在线观看| 色综合 综合色| 国产一区二区美女| 亚洲国产精品欧美一二99| 久久精品一级爱片| 欧美日韩一卡二卡三卡| 国产精品资源站在线| 日韩综合一区二区| 亚洲男帅同性gay1069| 久久先锋影音av鲁色资源网| 欧美亚洲动漫精品| www.亚洲精品| 国内外精品视频| 日韩精品乱码免费| 亚洲一卡二卡三卡四卡五卡| 国产亚洲欧美一级| 日韩一区二区在线观看视频| 日本福利一区二区| 成人激情开心网| 国产在线精品一区在线观看麻豆| 午夜欧美电影在线观看| 亚洲激情在线激情| 国产精品久久一卡二卡| 久久一区二区视频| 日韩欧美一级在线播放| 欧美日韩国产天堂| 日本精品免费观看高清观看| 国产aⅴ综合色| 国内精品国产成人国产三级粉色| 日本中文字幕不卡| 丝袜亚洲另类欧美综合| 亚洲午夜精品网| 亚洲综合色噜噜狠狠| 亚洲精品国产成人久久av盗摄| 国产精品美女一区二区三区 | 欧美一区在线视频| 欧美日韩高清在线播放| 91福利国产成人精品照片| 99久精品国产| 91免费视频网址| 色婷婷av久久久久久久| 色综合天天天天做夜夜夜夜做| 国产69精品久久99不卡| 成人av在线资源网站| 成人免费高清在线观看| av成人动漫在线观看| 不卡一二三区首页| 色域天天综合网| 在线中文字幕不卡| 欧美老年两性高潮| 欧美一区二区三区视频在线观看 | 一区二区三区日韩欧美| 亚洲人成在线观看一区二区| 亚洲精品ww久久久久久p站 | 蜜臀久久久99精品久久久久久| 日本最新不卡在线| 激情综合色综合久久| 国产一区二区调教| 国产黄色91视频| 99在线热播精品免费| 在线亚洲+欧美+日本专区| 欧日韩精品视频| 日韩欧美123| 国产欧美日韩三区| 亚洲激情五月婷婷| 日本午夜精品视频在线观看| 国产麻豆精品theporn| gogogo免费视频观看亚洲一| 日本韩国一区二区三区| 日韩一二三四区| 久久精品人人做人人综合| 自拍偷拍亚洲综合| 日韩国产一二三区| 国产a久久麻豆| 欧美日韩免费不卡视频一区二区三区| 欧美一区二区三区视频免费播放 | 久久久久久久综合狠狠综合| 国产精品伦理在线| 日韩激情中文字幕| 成人一区二区三区视频在线观看| 欧美亚洲综合色| 久久这里只有精品6| 伊人一区二区三区| 激情成人午夜视频| 在线观看一区二区精品视频| 欧美成人精品福利| 亚洲欧美日韩人成在线播放| 日本麻豆一区二区三区视频| 成人久久久精品乱码一区二区三区| 欧美视频在线播放| 欧美激情艳妇裸体舞| 亚洲香肠在线观看| 东方aⅴ免费观看久久av| 欧美精品粉嫩高潮一区二区| 亚洲国产岛国毛片在线| 蜜臀精品久久久久久蜜臀| 91无套直看片红桃| 精品少妇一区二区三区免费观看| 成人免费在线观看入口| 精品一区二区在线免费观看| 欧美在线看片a免费观看| 久久久精品中文字幕麻豆发布| 亚洲成a天堂v人片| 99视频在线观看一区三区| 精品国产亚洲在线| 日韩影院免费视频| 在线观看免费视频综合| 中文字幕亚洲在| 国产精一区二区三区| 欧美一级夜夜爽| 亚洲福利一区二区三区| 91在线观看高清| 国产精品国产三级国产有无不卡 | 中文字幕亚洲欧美在线不卡| 久久99国产精品免费| 欧美精品欧美精品系列| 亚洲一区中文日韩| 色综合久久综合网| 国产精品乱码人人做人人爱| 激情丁香综合五月| 精品国产污污免费网站入口| 日韩激情在线观看| 91精品免费观看| 亚洲国产成人av| 精品视频一区三区九区| 一区二区三区欧美日韩| 91香蕉国产在线观看软件| 国产精品毛片大码女人| 成人午夜电影网站| 国产女人水真多18毛片18精品视频| 久久av中文字幕片| 欧美成人艳星乳罩| 激情综合色播激情啊| 欧美成人a∨高清免费观看| 久久精品国产第一区二区三区| 日韩一二三区不卡| 极品少妇xxxx精品少妇偷拍| 精品久久久久99| 国产精品18久久久久久久网站| 久久久久久久久久美女| 国产精品一二一区| 国产精品久久久久久久久免费桃花| 丁香一区二区三区| 亚洲啪啪综合av一区二区三区| 972aa.com艺术欧美| 玉足女爽爽91| 欧美精品v日韩精品v韩国精品v| 日韩成人一级片| 久久久亚洲精华液精华液精华液 | 99久久久无码国产精品| 日韩美女啊v在线免费观看| 色噜噜狠狠成人网p站| 亚洲午夜在线视频| 日韩欧美一区二区视频| 国产成人精品三级| 亚洲女人小视频在线观看| 欧美日韩中文国产| 久久激情五月激情| 亚洲欧洲精品一区二区精品久久久| 色香蕉久久蜜桃| 免费成人你懂的| 欧美国产视频在线| 在线免费视频一区二区| 青椒成人免费视频| 国产人成一区二区三区影院| 99久久精品久久久久久清纯| 亚洲成人免费影院| 久久久久久久久蜜桃| 欧美性色黄大片| 国产美女娇喘av呻吟久久 | 亚洲欧美电影一区二区|