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

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

?? jcsample.c

?? About JPEG, executable on Visual C++
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
{
  int inrow, outrow;
  JDIMENSION outcol;
  JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE;
  register JSAMPROW inptr0, inptr1, outptr;
  register int bias;

  /* Expand input data enough to let all the output samples be generated
   * by the standard loop.  Special-casing padded output would be more
   * efficient.
   */
  expand_right_edge(input_data, cinfo->max_v_samp_factor,
		    cinfo->image_width, output_cols * 2);

  inrow = 0;
  for (outrow = 0; outrow < compptr->v_samp_factor; outrow++) {
    outptr = output_data[outrow];
    inptr0 = input_data[inrow];
    inptr1 = input_data[inrow+1];
    bias = 1;			/* bias = 1,2,1,2,... for successive samples */
    for (outcol = 0; outcol < output_cols; outcol++) {
      *outptr++ = (JSAMPLE) ((GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[1]) +
			      GETJSAMPLE(*inptr1) + GETJSAMPLE(inptr1[1])
			      + bias) >> 2);
      bias ^= 3;		/* 1=>2, 2=>1 */
      inptr0 += 2; inptr1 += 2;
    }
    inrow += 2;
  }
}


#ifdef INPUT_SMOOTHING_SUPPORTED

/*
 * Downsample pixel values of a single component.
 * This version handles the standard case of 2:1 horizontal and 2:1 vertical,
 * with smoothing.  One row of context is required.
 */

METHODDEF(void)
h2v2_smooth_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
			JSAMPARRAY input_data, JSAMPARRAY output_data)
{
  int inrow, outrow;
  JDIMENSION colctr;
  JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE;
  register JSAMPROW inptr0, inptr1, above_ptr, below_ptr, outptr;
  INT32 membersum, neighsum, memberscale, neighscale;

  /* Expand input data enough to let all the output samples be generated
   * by the standard loop.  Special-casing padded output would be more
   * efficient.
   */
  expand_right_edge(input_data - 1, cinfo->max_v_samp_factor + 2,
		    cinfo->image_width, output_cols * 2);

  /* We don't bother to form the individual "smoothed" input pixel values;
   * we can directly compute the output which is the average of the four
   * smoothed values.  Each of the four member pixels contributes a fraction
   * (1-8*SF) to its own smoothed image and a fraction SF to each of the three
   * other smoothed pixels, therefore a total fraction (1-5*SF)/4 to the final
   * output.  The four corner-adjacent neighbor pixels contribute a fraction
   * SF to just one smoothed pixel, or SF/4 to the final output; while the
   * eight edge-adjacent neighbors contribute SF to each of two smoothed
   * pixels, or SF/2 overall.  In order to use integer arithmetic, these
   * factors are scaled by 2^16 = 65536.
   * Also recall that SF = smoothing_factor / 1024.
   */

  memberscale = 16384 - cinfo->smoothing_factor * 80; /* scaled (1-5*SF)/4 */
  neighscale = cinfo->smoothing_factor * 16; /* scaled SF/4 */

  inrow = 0;
  for (outrow = 0; outrow < compptr->v_samp_factor; outrow++) {
    outptr = output_data[outrow];
    inptr0 = input_data[inrow];
    inptr1 = input_data[inrow+1];
    above_ptr = input_data[inrow-1];
    below_ptr = input_data[inrow+2];

    /* Special case for first column: pretend column -1 is same as column 0 */
    membersum = GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[1]) +
		GETJSAMPLE(*inptr1) + GETJSAMPLE(inptr1[1]);
    neighsum = GETJSAMPLE(*above_ptr) + GETJSAMPLE(above_ptr[1]) +
	       GETJSAMPLE(*below_ptr) + GETJSAMPLE(below_ptr[1]) +
	       GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[2]) +
	       GETJSAMPLE(*inptr1) + GETJSAMPLE(inptr1[2]);
    neighsum += neighsum;
    neighsum += GETJSAMPLE(*above_ptr) + GETJSAMPLE(above_ptr[2]) +
		GETJSAMPLE(*below_ptr) + GETJSAMPLE(below_ptr[2]);
    membersum = membersum * memberscale + neighsum * neighscale;
    *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16);
    inptr0 += 2; inptr1 += 2; above_ptr += 2; below_ptr += 2;

    for (colctr = output_cols - 2; colctr > 0; colctr--) {
      /* sum of pixels directly mapped to this output element */
      membersum = GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[1]) +
		  GETJSAMPLE(*inptr1) + GETJSAMPLE(inptr1[1]);
      /* sum of edge-neighbor pixels */
      neighsum = GETJSAMPLE(*above_ptr) + GETJSAMPLE(above_ptr[1]) +
		 GETJSAMPLE(*below_ptr) + GETJSAMPLE(below_ptr[1]) +
		 GETJSAMPLE(inptr0[-1]) + GETJSAMPLE(inptr0[2]) +
		 GETJSAMPLE(inptr1[-1]) + GETJSAMPLE(inptr1[2]);
      /* The edge-neighbors count twice as much as corner-neighbors */
      neighsum += neighsum;
      /* Add in the corner-neighbors */
      neighsum += GETJSAMPLE(above_ptr[-1]) + GETJSAMPLE(above_ptr[2]) +
		  GETJSAMPLE(below_ptr[-1]) + GETJSAMPLE(below_ptr[2]);
      /* form final output scaled up by 2^16 */
      membersum = membersum * memberscale + neighsum * neighscale;
      /* round, descale and output it */
      *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16);
      inptr0 += 2; inptr1 += 2; above_ptr += 2; below_ptr += 2;
    }

    /* Special case for last column */
    membersum = GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[1]) +
		GETJSAMPLE(*inptr1) + GETJSAMPLE(inptr1[1]);
    neighsum = GETJSAMPLE(*above_ptr) + GETJSAMPLE(above_ptr[1]) +
	       GETJSAMPLE(*below_ptr) + GETJSAMPLE(below_ptr[1]) +
	       GETJSAMPLE(inptr0[-1]) + GETJSAMPLE(inptr0[1]) +
	       GETJSAMPLE(inptr1[-1]) + GETJSAMPLE(inptr1[1]);
    neighsum += neighsum;
    neighsum += GETJSAMPLE(above_ptr[-1]) + GETJSAMPLE(above_ptr[1]) +
		GETJSAMPLE(below_ptr[-1]) + GETJSAMPLE(below_ptr[1]);
    membersum = membersum * memberscale + neighsum * neighscale;
    *outptr = (JSAMPLE) ((membersum + 32768) >> 16);

    inrow += 2;
  }
}


/*
 * Downsample pixel values of a single component.
 * This version handles the special case of a full-size component,
 * with smoothing.  One row of context is required.
 */

METHODDEF(void)
fullsize_smooth_downsample (j_compress_ptr cinfo, jpeg_component_info *compptr,
			    JSAMPARRAY input_data, JSAMPARRAY output_data)
{
  int outrow;
  JDIMENSION colctr;
  JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE;
  register JSAMPROW inptr, above_ptr, below_ptr, outptr;
  INT32 membersum, neighsum, memberscale, neighscale;
  int colsum, lastcolsum, nextcolsum;

  /* Expand input data enough to let all the output samples be generated
   * by the standard loop.  Special-casing padded output would be more
   * efficient.
   */
  expand_right_edge(input_data - 1, cinfo->max_v_samp_factor + 2,
		    cinfo->image_width, output_cols);

  /* Each of the eight neighbor pixels contributes a fraction SF to the
   * smoothed pixel, while the main pixel contributes (1-8*SF).  In order
   * to use integer arithmetic, these factors are multiplied by 2^16 = 65536.
   * Also recall that SF = smoothing_factor / 1024.
   */

  memberscale = 65536L - cinfo->smoothing_factor * 512L; /* scaled 1-8*SF */
  neighscale = cinfo->smoothing_factor * 64; /* scaled SF */

  for (outrow = 0; outrow < compptr->v_samp_factor; outrow++) {
    outptr = output_data[outrow];
    inptr = input_data[outrow];
    above_ptr = input_data[outrow-1];
    below_ptr = input_data[outrow+1];

    /* Special case for first column */
    colsum = GETJSAMPLE(*above_ptr++) + GETJSAMPLE(*below_ptr++) +
	     GETJSAMPLE(*inptr);
    membersum = GETJSAMPLE(*inptr++);
    nextcolsum = GETJSAMPLE(*above_ptr) + GETJSAMPLE(*below_ptr) +
		 GETJSAMPLE(*inptr);
    neighsum = colsum + (colsum - membersum) + nextcolsum;
    membersum = membersum * memberscale + neighsum * neighscale;
    *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16);
    lastcolsum = colsum; colsum = nextcolsum;

    for (colctr = output_cols - 2; colctr > 0; colctr--) {
      membersum = GETJSAMPLE(*inptr++);
      above_ptr++; below_ptr++;
      nextcolsum = GETJSAMPLE(*above_ptr) + GETJSAMPLE(*below_ptr) +
		   GETJSAMPLE(*inptr);
      neighsum = lastcolsum + (colsum - membersum) + nextcolsum;
      membersum = membersum * memberscale + neighsum * neighscale;
      *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16);
      lastcolsum = colsum; colsum = nextcolsum;
    }

    /* Special case for last column */
    membersum = GETJSAMPLE(*inptr);
    neighsum = lastcolsum + (colsum - membersum) + colsum;
    membersum = membersum * memberscale + neighsum * neighscale;
    *outptr = (JSAMPLE) ((membersum + 32768) >> 16);

  }
}

#endif /* INPUT_SMOOTHING_SUPPORTED */


/*
 * Module initialization routine for downsampling.
 * Note that we must select a routine for each component.
 */

GLOBAL(void)
jinit_downsampler (j_compress_ptr cinfo)
{
  my_downsample_ptr downsample;
  int ci;
  jpeg_component_info * compptr;
  boolean smoothok = TRUE;

  downsample = (my_downsample_ptr)
    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
				SIZEOF(my_downsampler));
  cinfo->downsample = (struct jpeg_downsampler *) downsample;
  downsample->pub.start_pass = start_pass_downsample;
  downsample->pub.downsample = sep_downsample;
  downsample->pub.need_context_rows = FALSE;

  if (cinfo->CCIR601_sampling)
    ERREXIT(cinfo, JERR_CCIR601_NOTIMPL);

  /* Verify we can handle the sampling factors, and set up method pointers */
  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
       ci++, compptr++) {
    if (compptr->h_samp_factor == cinfo->max_h_samp_factor &&
	compptr->v_samp_factor == cinfo->max_v_samp_factor) {
#ifdef INPUT_SMOOTHING_SUPPORTED
      if (cinfo->smoothing_factor) {
	downsample->methods[ci] = fullsize_smooth_downsample;
	downsample->pub.need_context_rows = TRUE;
      } else
#endif
	downsample->methods[ci] = fullsize_downsample;
    } else if (compptr->h_samp_factor * 2 == cinfo->max_h_samp_factor &&
	       compptr->v_samp_factor == cinfo->max_v_samp_factor) {
      smoothok = FALSE;
      downsample->methods[ci] = h2v1_downsample;
    } else if (compptr->h_samp_factor * 2 == cinfo->max_h_samp_factor &&
	       compptr->v_samp_factor * 2 == cinfo->max_v_samp_factor) {
#ifdef INPUT_SMOOTHING_SUPPORTED
      if (cinfo->smoothing_factor) {
	downsample->methods[ci] = h2v2_smooth_downsample;
	downsample->pub.need_context_rows = TRUE;
      } else
#endif
	downsample->methods[ci] = h2v2_downsample;
    } else if ((cinfo->max_h_samp_factor % compptr->h_samp_factor) == 0 &&
	       (cinfo->max_v_samp_factor % compptr->v_samp_factor) == 0) {
      smoothok = FALSE;
      downsample->methods[ci] = int_downsample;
    } else
      ERREXIT(cinfo, JERR_FRACT_SAMPLE_NOTIMPL);
  }

#ifdef INPUT_SMOOTHING_SUPPORTED
  if (cinfo->smoothing_factor && !smoothok)
    TRACEMS(cinfo, 0, JTRC_SMOOTH_NOTIMPL);
#endif
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丰满放荡岳乱妇91ww| 91精品在线免费观看| 国产一区 二区| 美日韩一级片在线观看| 日韩中文字幕不卡| 午夜日韩在线观看| 日韩精品每日更新| 美女久久久精品| 久久精品免费看| 麻豆一区二区三区| 美腿丝袜一区二区三区| 激情久久久久久久久久久久久久久久| 天堂精品中文字幕在线| 天天影视色香欲综合网老头| 天天综合网 天天综合色| 日韩专区一卡二卡| 久久 天天综合| 国产精品资源站在线| 成人app在线观看| 色综合久久久久综合体| 欧洲国产伦久久久久久久| 欧美美女网站色| 欧美一级高清大全免费观看| 精品久久久影院| 国产午夜亚洲精品午夜鲁丝片 | 欧美精品在线观看播放| 欧美日韩亚洲综合在线| 欧美一区二区三区免费观看视频 | 欧美日韩不卡在线| 欧美一区二区日韩一区二区| 精品对白一区国产伦| 国产人妖乱国产精品人妖| 18涩涩午夜精品.www| 亚洲第一av色| 国产主播一区二区三区| 99久久综合狠狠综合久久| 日本高清不卡在线观看| 日韩一区二区电影| 国产精品久久久久久久久免费桃花| 自拍偷自拍亚洲精品播放| 亚洲h精品动漫在线观看| 久久精品国产77777蜜臀| 成人免费视频app| 欧美午夜精品免费| 久久久久久久久久久电影| 18欧美乱大交hd1984| 亚洲国产成人av网| 国产精品一区不卡| 欧美在线看片a免费观看| 日韩视频免费直播| 中文字幕在线一区免费| 视频一区视频二区在线观看| 国产成人午夜精品5599| 欧美日韩卡一卡二| 国产日韩av一区二区| 亚洲综合色婷婷| 国产综合色视频| 在线免费观看日本一区| 久久综合色8888| 亚洲在线视频一区| 国产suv精品一区二区三区| 欧美系列一区二区| 中文成人av在线| 日韩中文字幕区一区有砖一区| 不卡一区在线观看| 日韩欧美一二三区| 亚洲激情在线播放| 粉嫩aⅴ一区二区三区四区| 欧美二区在线观看| 亚洲色图.com| 国产精品伊人色| 欧美一级精品大片| 一区二区三区精品在线| 国产风韵犹存在线视精品| 欧美另类一区二区三区| 亚洲精品高清在线| 成人福利视频网站| 久久综合色婷婷| 毛片av一区二区| 9191国产精品| 亚洲国产成人91porn| av在线不卡免费看| 国产精品私人影院| 国产成人av自拍| 2023国产精品| 狠狠久久亚洲欧美| 日韩免费福利电影在线观看| 亚洲第一会所有码转帖| 在线日韩一区二区| 亚洲一线二线三线视频| 91在线精品一区二区| 国产精品天干天干在观线| 国产美女av一区二区三区| 日韩欧美一级精品久久| 日本aⅴ精品一区二区三区 | 国产最新精品精品你懂的| av在线一区二区| 国产精品免费看片| 国产伦精品一区二区三区免费迷 | 欧美性受xxxx| 国产精品久久毛片a| 精彩视频一区二区三区| 欧美麻豆精品久久久久久| 一区二区三区欧美激情| 91蝌蚪porny九色| 国产欧美视频一区二区| 久久精品久久综合| 91精品一区二区三区久久久久久| 亚洲精品日日夜夜| 99久久久免费精品国产一区二区| 日韩欧美成人午夜| 亚洲国产另类精品专区| 一本到一区二区三区| 亚洲另类春色国产| 成人91在线观看| 国产精品毛片a∨一区二区三区| 国产毛片一区二区| 欧美一区二区三区视频| 美女视频黄频大全不卡视频在线播放| 欧美老女人在线| 亚洲高清免费视频| 欧美亚洲国产怡红院影院| 亚洲伦理在线精品| 91在线观看美女| 国产精品久久久久精k8| 色妹子一区二区| 亚洲免费伊人电影| 色综合久久久久久久久| 综合电影一区二区三区| 99re在线精品| 中文字幕亚洲在| 狠狠色狠狠色合久久伊人| 欧美激情在线观看视频免费| 成人美女视频在线看| 中文字幕第一区| av在线这里只有精品| 亚洲美女偷拍久久| 欧美最猛性xxxxx直播| 亚洲国产精品一区二区久久恐怖片| 欧美日韩亚洲综合一区二区三区| 亚洲va欧美va人人爽午夜| 欧美色图12p| 国产一区二区精品久久| 国产精品九色蝌蚪自拍| 欧美亚洲一区三区| 奇米影视一区二区三区小说| 日韩欧美国产高清| 精品一区二区久久| 久久精品亚洲乱码伦伦中文| 99久久99久久久精品齐齐| 国产精品电影一区二区三区| 9191久久久久久久久久久| 国产美女一区二区| 亚洲欧美一区二区三区国产精品 | 国产成a人无v码亚洲福利| 国产三区在线成人av| 91黄视频在线| 日本不卡一二三| 国产视频一区在线播放| 色综合一区二区三区| 亚洲18色成人| 欧美一卡2卡三卡4卡5免费| 蜜桃久久久久久| 国产人伦精品一区二区| 欧美在线观看禁18| 狠狠狠色丁香婷婷综合久久五月| 中文字幕一区av| www久久精品| 91福利在线免费观看| 久久成人免费网| 亚洲欧美色图小说| 日韩一区二区电影| 国产凹凸在线观看一区二区| 日韩av在线播放中文字幕| 中文在线资源观看网站视频免费不卡| 色婷婷综合激情| 极品尤物av久久免费看| 国产精品影音先锋| 日韩极品在线观看| 中文字幕在线观看一区| 欧美日韩国产成人在线免费| 国产成人一级电影| 无吗不卡中文字幕| 亚洲在线中文字幕| 国产精品欧美一区二区三区| 91精品国产手机| 99国产麻豆精品| 国产精品一区二区久久不卡| 亚洲r级在线视频| ...xxx性欧美| 久久久久久久久久久久电影 | 久久99精品久久只有精品| 一区二区三区**美女毛片| 久久久久亚洲蜜桃| 欧美肥大bbwbbw高潮| 一本到不卡精品视频在线观看| 国产在线不卡视频| 亚洲激情综合网| 一区二区三区欧美视频| 国产精品久久一卡二卡|