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

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

?? jdsample.c

?? 支持各種柵格圖像和矢量圖像讀取的庫
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* * jdsample.c * * Copyright (C) 1991-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 upsampling routines. * * Upsampling input data is counted in "row groups".  A row group * is defined to be (v_samp_factor * DCT_scaled_size / min_DCT_scaled_size) * sample rows of each component.  Upsampling will normally produce * max_v_samp_factor pixel rows from each row group (but this could vary * if the upsampler is applying a scale factor of its own). * * An excellent reference for image resampling is *   Digital Image Warping, George Wolberg, 1990. *   Pub. by IEEE Computer Society Press, Los Alamitos, CA. ISBN 0-8186-8944-7. */#define JPEG_INTERNALS#include "jinclude.h"#include "jpeglib.h"/* Pointer to routine to upsample a single component */typedef JMETHOD(void, upsample1_ptr,		(j_decompress_ptr cinfo, jpeg_component_info * compptr,		 JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr));/* Private subobject */typedef struct {  struct jpeg_upsampler pub;	/* public fields */  /* Color conversion buffer.  When using separate upsampling and color   * conversion steps, this buffer holds one upsampled row group until it   * has been color converted and output.   * Note: we do not allocate any storage for component(s) which are full-size,   * ie do not need rescaling.  The corresponding entry of color_buf[] is   * simply set to point to the input data array, thereby avoiding copying.   */  JSAMPARRAY color_buf[MAX_COMPONENTS];  /* Per-component upsampling method pointers */  upsample1_ptr methods[MAX_COMPONENTS];  int next_row_out;		/* counts rows emitted from color_buf */  JDIMENSION rows_to_go;	/* counts rows remaining in image */  /* Height of an input row group for each component. */  int rowgroup_height[MAX_COMPONENTS];  /* These arrays save pixel expansion factors so that int_expand need not   * recompute them each time.  They are unused for other upsampling methods.   */  UINT8 h_expand[MAX_COMPONENTS];  UINT8 v_expand[MAX_COMPONENTS];} my_upsampler;typedef my_upsampler * my_upsample_ptr;/* * Initialize for an upsampling pass. */METHODDEF(void)start_pass_upsample (j_decompress_ptr cinfo){  my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample;  /* Mark the conversion buffer empty */  upsample->next_row_out = cinfo->max_v_samp_factor;  /* Initialize total-height counter for detecting bottom of image */  upsample->rows_to_go = cinfo->output_height;}/* * Control routine to do upsampling (and color conversion). * * In this version we upsample each component independently. * We upsample one row group into the conversion buffer, then apply * color conversion a row at a time. */METHODDEF(void)sep_upsample (j_decompress_ptr cinfo,	      JSAMPIMAGE input_buf, JDIMENSION *in_row_group_ctr,	      JDIMENSION in_row_groups_avail,	      JSAMPARRAY output_buf, JDIMENSION *out_row_ctr,	      JDIMENSION out_rows_avail){  my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample;  int ci;  jpeg_component_info * compptr;  JDIMENSION num_rows;  /* Fill the conversion buffer, if it's empty */  if (upsample->next_row_out >= cinfo->max_v_samp_factor) {    for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;	 ci++, compptr++) {      /* Invoke per-component upsample method.  Notice we pass a POINTER       * to color_buf[ci], so that fullsize_upsample can change it.       */      (*upsample->methods[ci]) (cinfo, compptr,	input_buf[ci] + (*in_row_group_ctr * upsample->rowgroup_height[ci]),	upsample->color_buf + ci);    }    upsample->next_row_out = 0;  }  /* Color-convert and emit rows */  /* How many we have in the buffer: */  num_rows = (JDIMENSION) (cinfo->max_v_samp_factor - upsample->next_row_out);  /* Not more than the distance to the end of the image.  Need this test   * in case the image height is not a multiple of max_v_samp_factor:   */  if (num_rows > upsample->rows_to_go)     num_rows = upsample->rows_to_go;  /* And not more than what the client can accept: */  out_rows_avail -= *out_row_ctr;  if (num_rows > out_rows_avail)    num_rows = out_rows_avail;  (*cinfo->cconvert->color_convert) (cinfo, upsample->color_buf,				     (JDIMENSION) upsample->next_row_out,				     output_buf + *out_row_ctr,				     (int) num_rows);  /* Adjust counts */  *out_row_ctr += num_rows;  upsample->rows_to_go -= num_rows;  upsample->next_row_out += num_rows;  /* When the buffer is emptied, declare this input row group consumed */  if (upsample->next_row_out >= cinfo->max_v_samp_factor)    (*in_row_group_ctr)++;}/* * These are the routines invoked by sep_upsample to upsample pixel values * of a single component.  One row group is processed per call. *//* * For full-size components, we just make color_buf[ci] point at the * input buffer, and thus avoid copying any data.  Note that this is * safe only because sep_upsample doesn't declare the input row group * "consumed" until we are done color converting and emitting it. */METHODDEF(void)fullsize_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr,		   JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr){  *output_data_ptr = input_data;}/* * This is a no-op version used for "uninteresting" components. * These components will not be referenced by color conversion. */METHODDEF(void)noop_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr,	       JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr){  *output_data_ptr = NULL;	/* safety check */}/* * This version handles any integral sampling ratios. * This is not used for typical JPEG files, so it need not be fast. * Nor, for that matter, is it particularly accurate: the algorithm is * simple replication of the input pixel onto the corresponding output * pixels.  The hi-falutin sampling literature refers to this as a * "box filter".  A box filter tends to introduce visible artifacts, * so if you are actually going to use 3:1 or 4:1 sampling ratios * you would be well advised to improve this code. */METHODDEF(void)int_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr,	      JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr){  my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample;  JSAMPARRAY output_data = *output_data_ptr;  register JSAMPROW inptr, outptr;  register JSAMPLE invalue;  register int h;  JSAMPROW outend;  int h_expand, v_expand;  int inrow, outrow;  h_expand = upsample->h_expand[compptr->component_index];  v_expand = upsample->v_expand[compptr->component_index];  inrow = outrow = 0;  while (outrow < cinfo->max_v_samp_factor) {    /* Generate one output row with proper horizontal expansion */    inptr = input_data[inrow];    outptr = output_data[outrow];    outend = outptr + cinfo->output_width;    while (outptr < outend) {      invalue = *inptr++;	/* don't need GETJSAMPLE() here */      for (h = h_expand; h > 0; h--) {	*outptr++ = invalue;      }    }    /* Generate any additional output rows by duplicating the first one */    if (v_expand > 1) {      jcopy_sample_rows(output_data, outrow, output_data, outrow+1,			v_expand-1, cinfo->output_width);    }    inrow++;    outrow += v_expand;  }}/* * Fast processing for the common case of 2:1 horizontal and 1:1 vertical. * It's still a box filter. */METHODDEF(void)h2v1_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;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区男女天堂| 国产伦精品一区二区三区免费| 国产成a人亚洲精品| 中文字幕一区二区三区在线播放| 国产精品小仙女| 日本一区二区成人在线| 国产综合久久久久久鬼色| 欧美国产丝袜视频| 色8久久精品久久久久久蜜| 亚洲h精品动漫在线观看| 精品精品国产高清一毛片一天堂| 国产**成人网毛片九色| 亚洲成av人片在www色猫咪| 久久久国际精品| 欧美自拍偷拍一区| 调教+趴+乳夹+国产+精品| 精品国产91乱码一区二区三区| 一区二区国产盗摄色噜噜| 欧美日韩在线精品一区二区三区激情| 久久久91精品国产一区二区精品| 99精品桃花视频在线观看| 免费成人美女在线观看.| 九九九精品视频| 亚洲一区二区三区三| 日本一区二区久久| 欧美在线小视频| 麻豆91在线播放| 寂寞少妇一区二区三区| 麻豆成人免费电影| 国产电影精品久久禁18| 成人午夜电影久久影院| 国产91精品在线观看| 高清日韩电视剧大全免费| 亚洲一区二区五区| 国产在线精品一区二区| 色爱区综合激月婷婷| 欧美视频一二三区| 7777精品伊人久久久大香线蕉| 欧美最猛性xxxxx直播| 日韩一区二区三区视频在线观看| 日韩一区二区三区视频| 国产校园另类小说区| 中文字幕佐山爱一区二区免费| 亚洲午夜精品网| 久99久精品视频免费观看| 成人免费av网站| 欧美日韩国产片| 久久嫩草精品久久久精品一| 一区二区三区中文字幕电影| 蜜桃视频一区二区三区在线观看| 国产精品性做久久久久久| 欧美亚洲高清一区二区三区不卡| 欧美大片顶级少妇| 天天影视网天天综合色在线播放 | 免费人成黄页网站在线一区二区| 国产精品66部| 欧美精品777| 日韩理论片网站| 蜜臀久久99精品久久久久宅男 | 久久aⅴ国产欧美74aaa| 色综合色狠狠天天综合色| 久久综合久久久久88| 亚洲高清视频的网址| 99久久777色| 久久久久国产精品免费免费搜索| 日本午夜精品视频在线观看| 91免费看`日韩一区二区| 国产日韩三级在线| 蜜臀久久久久久久| 欧美美女直播网站| 一区二区欧美视频| 在线视频一区二区三| 国产精品卡一卡二| 粉嫩aⅴ一区二区三区四区| 日韩一区二区视频在线观看| 亚洲国产成人tv| 91久久精品一区二区三区| 久久免费电影网| 一区二区三区在线视频观看| 成人v精品蜜桃久久一区| wwww国产精品欧美| 捆绑变态av一区二区三区| 欧美一级精品大片| 日本不卡一二三区黄网| 欧美一区二区三区四区在线观看 | 精品免费视频一区二区| 六月丁香综合在线视频| 精品欧美一区二区在线观看| 久久成人18免费观看| 久久久久亚洲综合| 92精品国产成人观看免费| 亚洲同性gay激情无套| 91捆绑美女网站| 亚洲bt欧美bt精品| 日韩一区二区免费电影| 国产精一品亚洲二区在线视频| 久久久精品一品道一区| 亚洲日本一区二区| 日本在线不卡视频| www激情久久| 波多野结衣一区二区三区| 国产精品久久久久一区二区三区共| 99视频国产精品| 亚洲黄网站在线观看| 7777精品伊人久久久大香线蕉超级流畅 | 亚洲三级电影网站| 欧美午夜宅男影院| 国产成人综合自拍| 国产视频在线观看一区二区三区| 国模娜娜一区二区三区| 久久久.com| 波多野结衣中文字幕一区| 亚洲人精品一区| 欧美性xxxxxxxx| 五月激情综合婷婷| 欧美激情一区在线| 欧美性猛片xxxx免费看久爱| 日本v片在线高清不卡在线观看| 欧美一区二区国产| 免费观看一级特黄欧美大片| 精品精品国产高清a毛片牛牛| 99久久er热在这里只有精品66| 亚洲第一在线综合网站| 国产日韩亚洲欧美综合| 91丨porny丨国产| 麻豆91在线播放| 亚洲午夜日本在线观看| 国产日韩欧美a| 欧美日韩mp4| 在线免费亚洲电影| 国产麻豆精品95视频| 亚洲成人激情自拍| 国产精品美女久久久久久久久| 欧美一区二区女人| 91国偷自产一区二区三区观看| 国产亚洲一区二区三区| 午夜伊人狠狠久久| 国产欧美日韩另类视频免费观看| 欧洲一区在线电影| 国产成人免费在线观看不卡| 伊人色综合久久天天人手人婷| 国产精品视频线看| 久久久精品国产99久久精品芒果| 在线不卡欧美精品一区二区三区| 成人午夜av在线| 激情六月婷婷综合| 美腿丝袜亚洲综合| 亚洲成a人v欧美综合天堂| 亚洲 欧美综合在线网络| 亚洲精品免费在线观看| 国产精品福利一区二区| 国产精品三级视频| 国产精品色哟哟网站| 久久精品网站免费观看| 精品免费99久久| 日韩免费性生活视频播放| 久久丝袜美腿综合| 久久综合久久综合亚洲| 欧美精品一区二区久久婷婷| 欧美精品久久天天躁| 国产欧美1区2区3区| 欧美成人vr18sexvr| 国产婷婷精品av在线| 国产精品视频观看| 亚洲欧美一区二区三区久本道91| 亚洲国产高清不卡| 亚洲欧洲精品天堂一级| 日本一区二区动态图| 国产精品久久久久久久久久免费看 | 国产一区二区精品久久99| 国产一区二区精品久久91| 国产精品1区2区| 春色校园综合激情亚洲| 欧美综合色免费| 欧美撒尿777hd撒尿| 欧美一区二区成人| 精品区一区二区| 国产精品每日更新| 日韩在线一二三区| 日韩中文字幕一区二区三区| 国产麻豆精品在线| 欧美在线视频不卡| 日韩一区二区电影在线| 精品国产91洋老外米糕| 中文字幕中文字幕一区二区| 亚洲婷婷在线视频| 亚洲色图欧洲色图婷婷| 免费看黄色91| 暴力调教一区二区三区| 7777精品久久久大香线蕉 | 91视视频在线观看入口直接观看www | 国产成a人亚洲| 欧美无乱码久久久免费午夜一区| 欧美成人精精品一区二区频| 亚洲欧美在线另类| 精品一区二区三区免费播放| 91免费看视频| 日本一区二区三区在线观看| 综合欧美一区二区三区| 蜜桃在线一区二区三区|