亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
豆国产96在线|亚洲| 北条麻妃国产九九精品视频| 亚洲国产精品二十页| 欧美三级蜜桃2在线观看| 国产成人8x视频一区二区| 水野朝阳av一区二区三区| 中文字幕永久在线不卡| 欧美一区二区三区免费在线看| 99久久99久久精品国产片果冻 | 欧洲精品视频在线观看| 国产精品综合二区| 亚洲h动漫在线| 中文字幕一区二区5566日韩| 337p粉嫩大胆噜噜噜噜噜91av| 欧美综合在线视频| 成人动漫在线一区| 国产精品一区二区免费不卡| 日韩黄色免费网站| 亚洲国产精品久久不卡毛片| 中文字幕中文字幕一区| 久久精品免视看| 精品欧美久久久| 91精品国产欧美一区二区| 色老汉一区二区三区| 99国产精品久久久久久久久久| 国产精品一级在线| 狠狠色狠狠色综合系列| 婷婷综合久久一区二区三区| 亚洲另类一区二区| 亚洲欧美影音先锋| 国产精品高潮久久久久无| 国产欧美精品日韩区二区麻豆天美| 欧美成人国产一区二区| 日韩欧美综合一区| 欧美日韩www| 欧美男女性生活在线直播观看| 欧美午夜精品一区二区三区| 91国内精品野花午夜精品| 在线免费不卡电影| 欧美性感一类影片在线播放| 欧美三级中文字幕在线观看| 欧美曰成人黄网| 欧美色窝79yyyycom| 在线亚洲一区观看| 欧美日韩国产精品成人| 这里是久久伊人| 日韩欧美在线1卡| 久久婷婷国产综合国色天香| 久久精品在这里| 国产精品美女一区二区在线观看| 国产精品女同互慰在线看| 国产精品国产三级国产aⅴ原创| 中文字幕 久热精品 视频在线| 18成人在线观看| 亚洲国产乱码最新视频| 六月丁香综合在线视频| 国产精品一品二品| 99久久伊人精品| 欧美性感一类影片在线播放| 欧美一区二区高清| 国产日韩欧美精品一区| 亚洲精品福利视频网站| 日韩成人精品在线| 国产精华液一区二区三区| av成人免费在线| 欧美日韩一区在线| 人人精品人人爱| 欧美日韩精品高清| 欧美天天综合网| 色屁屁一区二区| www.av亚洲| 91视频你懂的| 欧美三级蜜桃2在线观看| 欧美一区二区三区精品| 国产欧美精品国产国产专区| 日韩精品专区在线| 色综合久久综合| 色综合久久天天综合网| 欧美丰满嫩嫩电影| 国产欧美日韩三区| 香蕉久久一区二区不卡无毒影院| 国产一区二区三区四区在线观看| 色综合天天综合狠狠| 欧美一区二区三区四区五区| 中文字幕免费在线观看视频一区| 视频一区视频二区中文字幕| 国产99久久精品| 91精品国产色综合久久ai换脸| 久久久精品综合| 丝袜亚洲精品中文字幕一区| 成人h精品动漫一区二区三区| 日韩一区二区免费在线观看| 最近日韩中文字幕| 精品一区二区三区香蕉蜜桃| 色国产综合视频| 久久久久高清精品| 日本三级韩国三级欧美三级| 一本色道久久综合精品竹菊| 国产亚洲精品aa午夜观看| 婷婷六月综合亚洲| 色哦色哦哦色天天综合| 欧美经典一区二区三区| 激情综合色丁香一区二区| 欧美日韩免费在线视频| 亚洲欧洲国产日韩| 国产成人在线免费观看| 日韩欧美国产高清| 偷拍与自拍一区| 日本久久一区二区| 国产精品网曝门| 国产一区 二区 三区一级| 在线综合视频播放| 亚洲网友自拍偷拍| 色综合av在线| 中文字幕亚洲视频| 成人免费视频国产在线观看| 久久久蜜桃精品| 国产精品资源在线| 久久婷婷色综合| 美女免费视频一区二区| 欧美人与z0zoxxxx视频| 亚洲亚洲精品在线观看| 99热这里都是精品| 国产精品亲子伦对白| 国产传媒日韩欧美成人| 精品1区2区在线观看| 久久国产麻豆精品| 欧美成人精品福利| 国产在线精品免费av| 精品国产第一区二区三区观看体验| 日韩成人精品视频| 日韩三级高清在线| 精品一区二区三区在线观看| 精品免费一区二区三区| 国产一区二三区好的| 久久久精品人体av艺术| 国产成人99久久亚洲综合精品| 国产三级精品三级| av一本久道久久综合久久鬼色| 中文字幕第一区综合| 国产成人av电影在线| 国产精品不卡在线| 91浏览器在线视频| 亚洲国产一二三| 欧美一区中文字幕| 久久99久国产精品黄毛片色诱| 精品少妇一区二区三区日产乱码| 美女国产一区二区三区| 久久久久久久免费视频了| 国产99久久久国产精品免费看 | 91国偷自产一区二区三区观看| 一二三四社区欧美黄| 欧美精品xxxxbbbb| 美女看a上一区| 国产欧美一二三区| 色欧美乱欧美15图片| 男女性色大片免费观看一区二区 | 欧美大片一区二区| 国产精品18久久久久久久久久久久 | 日本在线播放一区二区三区| 欧美一区二区女人| 国产精品一区二区你懂的| 中文字幕亚洲电影| 欧美高清视频在线高清观看mv色露露十八| 亚洲成人三级小说| 欧美精品一区二区三区视频| 懂色av一区二区三区免费看| 伊人性伊人情综合网| 欧美电影免费观看完整版| 岛国一区二区三区| 亚洲一区二区三区四区在线 | 99国产精品久久久久久久久久久| 亚洲一区二区欧美激情| 91精品国产欧美一区二区成人| 国产乱子伦一区二区三区国色天香| 国产精品久久久久久户外露出| 欧美三级中文字| 国产乱码一区二区三区| 亚洲最新视频在线观看| 日韩精品中文字幕在线一区| 94色蜜桃网一区二区三区| 日韩中文字幕亚洲一区二区va在线| 久久综合色一综合色88| 在线视频国内自拍亚洲视频| 激情小说亚洲一区| 亚洲成av人影院| 国产精品成人免费在线| 欧美成人官网二区| 在线日韩国产精品| 国产成人精品影院| 亚洲一区二区在线观看视频 | 中国av一区二区三区| 欧美日韩精品一区二区三区蜜桃 | 色国产精品一区在线观看| 国产一区二区三区免费在线观看| 亚洲激情综合网| 国产日韩精品久久久| 欧美一级专区免费大片| 色综合视频一区二区三区高清| 国产剧情av麻豆香蕉精品|