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

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

?? jdsample.c

?? 一款最完整的工業組態軟源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:

  for (inrow = 0; inrow < cinfo->max_v_samp_factor; inrow++) {
    inptr = input_data[inrow];
    outptr = output_data[inrow];
    outend = outptr + cinfo->output_width;
    while (outptr < outend) {
      invalue = *inptr++;	/* don't need GETJSAMPLE() here */
      *outptr++ = invalue;
      *outptr++ = invalue;
    }
  }
}


/*
 * Fast processing for the common case of 2:1 horizontal and 2:1 vertical.
 * It's still a box filter.
 */

METHODDEF(void)
h2v2_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr,
	       JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr)
{
  JSAMPARRAY output_data = *output_data_ptr;
  register JSAMPROW inptr, outptr;
  register JSAMPLE invalue;
  JSAMPROW outend;
  int inrow, outrow;

  inrow = outrow = 0;
  while (outrow < cinfo->max_v_samp_factor) {
    inptr = input_data[inrow];
    outptr = output_data[outrow];
    outend = outptr + cinfo->output_width;
    while (outptr < outend) {
      invalue = *inptr++;	/* don't need GETJSAMPLE() here */
      *outptr++ = invalue;
      *outptr++ = invalue;
    }
    jcopy_sample_rows(output_data, outrow, output_data, outrow+1,
		      1, cinfo->output_width);
    inrow++;
    outrow += 2;
  }
}


/*
 * Fancy processing for the common case of 2:1 horizontal and 1:1 vertical.
 *
 * The upsampling algorithm is linear interpolation between pixel centers,
 * also known as a "triangle filter".  This is a good compromise between
 * speed and visual quality.  The centers of the output pixels are 1/4 and 3/4
 * of the way between input pixel centers.
 *
 * A note about the "bias" calculations: when rounding fractional values to
 * integer, we do not want to always round 0.5 up to the next integer.
 * If we did that, we'd introduce a noticeable bias towards larger values.
 * Instead, this code is arranged so that 0.5 will be rounded up or down at
 * alternate pixel locations (a simple ordered dither pattern).
 */

METHODDEF(void)
h2v1_fancy_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr,
		     JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr)
{
  JSAMPARRAY output_data = *output_data_ptr;
  register JSAMPROW inptr, outptr;
  register int invalue;
  register JDIMENSION colctr;
  int inrow;

  for (inrow = 0; inrow < cinfo->max_v_samp_factor; inrow++) {
    inptr = input_data[inrow];
    outptr = output_data[inrow];
    /* Special case for first column */
    invalue = GETJSAMPLE(*inptr++);
    *outptr++ = (JSAMPLE) invalue;
    *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(*inptr) + 2) >> 2);

    for (colctr = compptr->downsampled_width - 2; colctr > 0; colctr--) {
      /* General case: 3/4 * nearer pixel + 1/4 * further pixel */
      invalue = GETJSAMPLE(*inptr++) * 3;
      *outptr++ = (JSAMPLE) ((invalue + GETJSAMPLE(inptr[-2]) + 1) >> 2);
      *outptr++ = (JSAMPLE) ((invalue + GETJSAMPLE(*inptr) + 2) >> 2);
    }

    /* Special case for last column */
    invalue = GETJSAMPLE(*inptr);
    *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(inptr[-1]) + 1) >> 2);
    *outptr++ = (JSAMPLE) invalue;
  }
}


/*
 * Fancy processing for the common case of 2:1 horizontal and 2:1 vertical.
 * Again a triangle filter; see comments for h2v1 case, above.
 *
 * It is OK for us to reference the adjacent input rows because we demanded
 * context from the main buffer controller (see initialization code).
 */

METHODDEF(void)
h2v2_fancy_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr,
		     JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr)
{
  JSAMPARRAY output_data = *output_data_ptr;
  register JSAMPROW inptr0, inptr1, outptr;
#if BITS_IN_JSAMPLE == 8
  register int thiscolsum, lastcolsum, nextcolsum;
#else
  register INT32 thiscolsum, lastcolsum, nextcolsum;
#endif
  register JDIMENSION colctr;
  int inrow, outrow, v;

  inrow = outrow = 0;
  while (outrow < cinfo->max_v_samp_factor) {
    for (v = 0; v < 2; v++) {
      /* inptr0 points to nearest input row, inptr1 points to next nearest */
      inptr0 = input_data[inrow];
      if (v == 0)		/* next nearest is row above */
	inptr1 = input_data[inrow-1];
      else			/* next nearest is row below */
	inptr1 = input_data[inrow+1];
      outptr = output_data[outrow++];

      /* Special case for first column */
      thiscolsum = GETJSAMPLE(*inptr0++) * 3 + GETJSAMPLE(*inptr1++);
      nextcolsum = GETJSAMPLE(*inptr0++) * 3 + GETJSAMPLE(*inptr1++);
      *outptr++ = (JSAMPLE) ((thiscolsum * 4 + 8) >> 4);
      *outptr++ = (JSAMPLE) ((thiscolsum * 3 + nextcolsum + 7) >> 4);
      lastcolsum = thiscolsum; thiscolsum = nextcolsum;

      for (colctr = compptr->downsampled_width - 2; colctr > 0; colctr--) {
	/* General case: 3/4 * nearer pixel + 1/4 * further pixel in each */
	/* dimension, thus 9/16, 3/16, 3/16, 1/16 overall */
	nextcolsum = GETJSAMPLE(*inptr0++) * 3 + GETJSAMPLE(*inptr1++);
	*outptr++ = (JSAMPLE) ((thiscolsum * 3 + lastcolsum + 8) >> 4);
	*outptr++ = (JSAMPLE) ((thiscolsum * 3 + nextcolsum + 7) >> 4);
	lastcolsum = thiscolsum; thiscolsum = nextcolsum;
      }

      /* Special case for last column */
      *outptr++ = (JSAMPLE) ((thiscolsum * 3 + lastcolsum + 8) >> 4);
      *outptr++ = (JSAMPLE) ((thiscolsum * 4 + 7) >> 4);
    }
    inrow++;
  }
}


/*
 * Module initialization routine for upsampling.
 */

GLOBAL(void)
jinit_upsampler (j_decompress_ptr cinfo)
{
  my_upsample_ptr upsample;
  int ci;
  jpeg_component_info * compptr;
  boolean need_buffer, do_fancy;
  int h_in_group, v_in_group, h_out_group, v_out_group;

  upsample = (my_upsample_ptr)
    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
				SIZEOF(my_upsampler));
  cinfo->upsample = (struct jpeg_upsampler *) upsample;
  upsample->pub.start_pass = start_pass_upsample;
  upsample->pub.upsample = sep_upsample;
  upsample->pub.need_context_rows = FALSE; /* until we find out differently */

  if (cinfo->CCIR601_sampling)	/* this isn't supported */
    ERREXIT(cinfo, JERR_CCIR601_NOTIMPL);

  /* jdmainct.c doesn't support context rows when min_DCT_scaled_size = 1,
   * so don't ask for it.
   */
  do_fancy = cinfo->do_fancy_upsampling && cinfo->min_DCT_scaled_size > 1;

  /* Verify we can handle the sampling factors, select per-component methods,
   * and create storage as needed.
   */
  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
       ci++, compptr++) {
    /* Compute size of an "input group" after IDCT scaling.  This many samples
     * are to be converted to max_h_samp_factor * max_v_samp_factor pixels.
     */
    h_in_group = (compptr->h_samp_factor * compptr->DCT_scaled_size) /
		 cinfo->min_DCT_scaled_size;
    v_in_group = (compptr->v_samp_factor * compptr->DCT_scaled_size) /
		 cinfo->min_DCT_scaled_size;
    h_out_group = cinfo->max_h_samp_factor;
    v_out_group = cinfo->max_v_samp_factor;
    upsample->rowgroup_height[ci] = v_in_group; /* save for use later */
    need_buffer = TRUE;
    if (! compptr->component_needed) {
      /* Don't bother to upsample an uninteresting component. */
      upsample->methods[ci] = noop_upsample;
      need_buffer = FALSE;
    } else if (h_in_group == h_out_group && v_in_group == v_out_group) {
      /* Fullsize components can be processed without any work. */
      upsample->methods[ci] = fullsize_upsample;
      need_buffer = FALSE;
    } else if (h_in_group * 2 == h_out_group &&
	       v_in_group == v_out_group) {
      /* Special cases for 2h1v upsampling */
      if (do_fancy && compptr->downsampled_width > 2)
	upsample->methods[ci] = h2v1_fancy_upsample;
      else
	upsample->methods[ci] = h2v1_upsample;
    } else if (h_in_group * 2 == h_out_group &&
	       v_in_group * 2 == v_out_group) {
      /* Special cases for 2h2v upsampling */
      if (do_fancy && compptr->downsampled_width > 2) {
	upsample->methods[ci] = h2v2_fancy_upsample;
	upsample->pub.need_context_rows = TRUE;
      } else
	upsample->methods[ci] = h2v2_upsample;
    } else if ((h_out_group % h_in_group) == 0 &&
	       (v_out_group % v_in_group) == 0) {
      /* Generic integral-factors upsampling method */
      upsample->methods[ci] = int_upsample;
      upsample->h_expand[ci] = (UINT8) (h_out_group / h_in_group);
      upsample->v_expand[ci] = (UINT8) (v_out_group / v_in_group);
    } else
      ERREXIT(cinfo, JERR_FRACT_SAMPLE_NOTIMPL);
    if (need_buffer) {
      upsample->color_buf[ci] = (*cinfo->mem->alloc_sarray)
	((j_common_ptr) cinfo, JPOOL_IMAGE,
	 (JDIMENSION) jround_up((long) cinfo->output_width,
				(long) cinfo->max_h_samp_factor),
	 (JDIMENSION) cinfo->max_v_samp_factor);
    }
  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
大胆欧美人体老妇| 久久66热偷产精品| 日韩电影一二三区| 99国内精品久久| 日韩欧美国产综合一区 | 国产成人鲁色资源国产91色综| 99免费精品视频| 精品欧美一区二区三区精品久久 | 欧美成人vps| 亚洲综合在线免费观看| 国产在线一区二区综合免费视频| 欧美中文字幕一区| 亚洲欧美乱综合| 成人天堂资源www在线| 精品国内片67194| 午夜国产不卡在线观看视频| 色94色欧美sute亚洲线路一久| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 国产精品久久久久久久久免费樱桃| 亚洲一二三区不卡| 在线观看日韩高清av| 国产精品美女久久福利网站| 国产老妇另类xxxxx| 欧美成人aa大片| 久久国产三级精品| 欧美成人a∨高清免费观看| 日韩电影在线一区| 欧美一区二区三区四区五区| 日韩中文欧美在线| 91精品一区二区三区久久久久久| 亚洲第一成年网| 4hu四虎永久在线影院成人| 亚洲午夜成aⅴ人片| 欧美乱妇一区二区三区不卡视频| 五月婷婷综合激情| 欧美一级免费大片| 精久久久久久久久久久| 26uuu亚洲综合色欧美| 国产精品一区二区男女羞羞无遮挡| 日韩欧美不卡一区| 国产一区二区不卡在线| 亚洲国产成人在线| 色综合色狠狠天天综合色| 国产精品高潮呻吟久久| 一本一本大道香蕉久在线精品| 一区二区三区中文在线| 欧美精品三级日韩久久| 久久机这里只有精品| 亚洲国产精品精华液2区45| 豆国产96在线|亚洲| 国产精品久久久久久妇女6080| 97久久超碰国产精品电影| 亚洲一区二区三区四区在线| 91精品在线观看入口| 国产精品亚洲专一区二区三区 | 久久欧美中文字幕| 99国产精品99久久久久久| 亚洲一区二区黄色| 日韩精品一区国产麻豆| 成人免费福利片| 五月婷婷久久丁香| 国产亚洲婷婷免费| 色婷婷精品久久二区二区蜜臂av | 日本精品裸体写真集在线观看| 亚洲成人av福利| wwww国产精品欧美| 日本久久精品电影| 国产乱一区二区| 亚洲大尺度视频在线观看| 久久色中文字幕| 欧亚洲嫩模精品一区三区| 国模冰冰炮一区二区| 一区二区三国产精华液| 2023国产精品| 日本精品视频一区二区三区| 国模一区二区三区白浆| 亚洲最大的成人av| 国产精品免费aⅴ片在线观看| 欧美久久一区二区| 色天使久久综合网天天| 国产成人自拍在线| 美女一区二区视频| 一区二区三区欧美视频| 国产性做久久久久久| 欧美一二三区在线| 色八戒一区二区三区| 成人国产精品免费网站| 久久99在线观看| 亚洲观看高清完整版在线观看| 欧美激情一区二区三区全黄| 日韩手机在线导航| 欧美福利视频导航| 色综合久久中文字幕| 丁香六月久久综合狠狠色| 卡一卡二国产精品| 亚欧色一区w666天堂| 亚洲麻豆国产自偷在线| 中文字幕va一区二区三区| 精品粉嫩aⅴ一区二区三区四区| 欧美丝袜自拍制服另类| av一区二区三区黑人| 国产精品一区一区三区| 韩国精品主播一区二区在线观看 | 岛国精品在线观看| 狠狠色狠狠色综合系列| 免费xxxx性欧美18vr| 偷拍自拍另类欧美| 午夜一区二区三区视频| 亚洲午夜激情网站| 日韩精品乱码免费| 日韩精品电影在线| 久久se这里有精品| 国产专区欧美精品| 国产电影一区在线| 国产成人在线免费观看| 成人永久免费视频| 成人av手机在线观看| 91日韩一区二区三区| 欧洲国内综合视频| 欧美一区永久视频免费观看| 欧美福利视频一区| 日韩精品一区二区三区老鸭窝 | 国产成人高清视频| 国产99久久久国产精品潘金| 成人高清免费观看| 色播五月激情综合网| 欧美日韩精品电影| 日韩一区二区精品在线观看| 精品欧美一区二区三区精品久久| 久久精品视频网| 亚洲视频在线观看一区| 亚洲国产精品欧美一二99| 日本亚洲免费观看| 丰满少妇在线播放bd日韩电影| 成人禁用看黄a在线| 在线观看日韩电影| 欧美精品一区二区在线观看| 国产精品久久毛片av大全日韩| 日韩理论电影院| 蜜臀久久99精品久久久画质超高清| 国产一区二区精品久久| 国产成人午夜精品5599| 欧洲亚洲精品在线| 日韩免费视频一区| 国产精品超碰97尤物18| 日韩精品国产精品| 成人网页在线观看| 欧美日本韩国一区二区三区视频| 久久这里只精品最新地址| 国产精品三级久久久久三级| 亚洲成人综合视频| 国产不卡视频在线播放| 欧美日韩高清在线播放| 久久久精品黄色| 天堂成人国产精品一区| 粉嫩av一区二区三区| 日韩欧美一二三四区| 亚洲精品一卡二卡| 国产激情精品久久久第一区二区| 日本道在线观看一区二区| 欧美xxxxx牲另类人与| 亚洲香肠在线观看| 成人午夜av影视| 精品国产乱码久久久久久浪潮 | 亚洲精品菠萝久久久久久久| 蜜臀精品久久久久久蜜臀 | 欧美专区亚洲专区| 中文字幕国产一区| 久久av老司机精品网站导航| 欧美亚洲动漫精品| 亚洲女人的天堂| 国产91综合一区在线观看| 日韩欧美一级二级三级久久久| 一区二区三区日韩欧美精品| 不卡av免费在线观看| 久久先锋影音av| 美女诱惑一区二区| 7777精品伊人久久久大香线蕉的 | 中文字幕一区二区不卡| 国产真实乱子伦精品视频| 8x8x8国产精品| 亚洲香肠在线观看| 欧美影院一区二区| 自拍偷拍国产精品| 99国产精品一区| 国产日产欧美一区二区视频| 久久精品国产久精国产| 欧美一区二区视频在线观看2020| 亚洲综合在线观看视频| 99精品一区二区| 中文字幕一区二区三区精华液| 国产精品一区在线| 国产欧美日韩综合| 成人亚洲精品久久久久软件| 久久久久久97三级| 国产成人免费网站| 中文字幕乱码日本亚洲一区二区| 国产精品中文字幕欧美| 国产农村妇女精品| av电影一区二区|