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

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

?? jdmaster.c

?? 在ecos 下mingui 的移植開發
?? C
?? 第 1 頁 / 共 2 頁
字號:
#define JPEG_INTERNALS#include "jpeglib.h"/* Private state */typedef struct {  struct jpeg_decomp_master pub; /* public fields */  int pass_number;		/* # of passes completed */  boolean using_merged_upsample; /* TRUE if using merged upsample/cconvert */  /* Saved references to initialized quantizer modules,   * in case we need to switch modes.   */  struct jpeg_color_quantizer * quantizer_1pass;  struct jpeg_color_quantizer * quantizer_2pass;} my_decomp_master;typedef my_decomp_master * my_master_ptr;/* * Determine whether merged upsample/color conversion should be used. * CRUCIAL: this must match the actual capabilities of jdmerge.c! */LOCAL(boolean)use_merged_upsample (j_decompress_ptr cinfo){#ifdef UPSAMPLE_MERGING_SUPPORTED  /* Merging is the equivalent of plain box-filter upsampling */  if (cinfo->do_fancy_upsampling || cinfo->CCIR601_sampling)    return FALSE;  /* jdmerge.c only supports YCC=>RGB color conversion */  if (cinfo->jpeg_color_space != JCS_YCbCr || cinfo->num_components != 3 ||      cinfo->out_color_space != JCS_RGB ||      cinfo->out_color_components != RGB_PIXELSIZE)    return FALSE;  /* and it only handles 2h1v or 2h2v sampling ratios */  if (cinfo->comp_info[0].h_samp_factor != 2 ||      cinfo->comp_info[1].h_samp_factor != 1 ||      cinfo->comp_info[2].h_samp_factor != 1 ||      cinfo->comp_info[0].v_samp_factor >  2 ||      cinfo->comp_info[1].v_samp_factor != 1 ||      cinfo->comp_info[2].v_samp_factor != 1)    return FALSE;  /* furthermore, it doesn't work if we've scaled the IDCTs differently */  if (cinfo->comp_info[0].DCT_scaled_size != cinfo->min_DCT_scaled_size ||      cinfo->comp_info[1].DCT_scaled_size != cinfo->min_DCT_scaled_size ||      cinfo->comp_info[2].DCT_scaled_size != cinfo->min_DCT_scaled_size)    return FALSE;  /* ??? also need to test for upsample-time rescaling, when & if supported */  return TRUE;			/* by golly, it'll work... */#else  return FALSE;#endif}/* * Compute output image dimensions and related values. * NOTE: this is exported for possible use by application. * Hence it mustn't do anything that can't be done twice. * Also note that it may be called before the master module is initialized! */GLOBAL(void)jpeg_calc_output_dimensions (j_decompress_ptr cinfo)/* Do computations that are needed before master selection phase */{  int ci;  jpeg_component_info *compptr;  /* Prevent application from calling me at wrong times */  if (cinfo->global_state != DSTATE_READY)    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);#ifdef IDCT_SCALING_SUPPORTED  /* Compute actual output image dimensions and DCT scaling choices. */  if (cinfo->scale_num * 8 <= cinfo->scale_denom) {    /* Provide 1/8 scaling */    cinfo->output_width = (JDIMENSION)      jdiv_round_up((long) cinfo->image_width, 8L);    cinfo->output_height = (JDIMENSION)      jdiv_round_up((long) cinfo->image_height, 8L);    cinfo->min_DCT_scaled_size = 1;  } else if (cinfo->scale_num * 4 <= cinfo->scale_denom) {    /* Provide 1/4 scaling */    cinfo->output_width = (JDIMENSION)      jdiv_round_up((long) cinfo->image_width, 4L);    cinfo->output_height = (JDIMENSION)      jdiv_round_up((long) cinfo->image_height, 4L);    cinfo->min_DCT_scaled_size = 2;  } else if (cinfo->scale_num * 2 <= cinfo->scale_denom) {    /* Provide 1/2 scaling */    cinfo->output_width = (JDIMENSION)      jdiv_round_up((long) cinfo->image_width, 2L);    cinfo->output_height = (JDIMENSION)      jdiv_round_up((long) cinfo->image_height, 2L);    cinfo->min_DCT_scaled_size = 4;  } else {    /* Provide 1/1 scaling */    cinfo->output_width = cinfo->image_width;    cinfo->output_height = cinfo->image_height;    cinfo->min_DCT_scaled_size = DCTSIZE;  }  /* In selecting the actual DCT scaling for each component, we try to   * scale up the chroma components via IDCT scaling rather than upsampling.   * This saves time if the upsampler gets to use 1:1 scaling.   * Note this code assumes that the supported DCT scalings are powers of 2.   */  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;       ci++, compptr++) {    int ssize = cinfo->min_DCT_scaled_size;    while (ssize < DCTSIZE &&	   (compptr->h_samp_factor * ssize * 2 <=	    cinfo->max_h_samp_factor * cinfo->min_DCT_scaled_size) &&	   (compptr->v_samp_factor * ssize * 2 <=	    cinfo->max_v_samp_factor * cinfo->min_DCT_scaled_size)) {      ssize = ssize * 2;    }    compptr->DCT_scaled_size = ssize;  }  /* Recompute downsampled dimensions of components;   * application needs to know these if using raw downsampled data.   */  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;       ci++, compptr++) {    /* Size in samples, after IDCT scaling */    compptr->downsampled_width = (JDIMENSION)      jdiv_round_up((long) cinfo->image_width *		    (long) (compptr->h_samp_factor * compptr->DCT_scaled_size),		    (long) (cinfo->max_h_samp_factor * DCTSIZE));    compptr->downsampled_height = (JDIMENSION)      jdiv_round_up((long) cinfo->image_height *		    (long) (compptr->v_samp_factor * compptr->DCT_scaled_size),		    (long) (cinfo->max_v_samp_factor * DCTSIZE));  }#else /* !IDCT_SCALING_SUPPORTED */  /* Hardwire it to "no scaling" */  cinfo->output_width = cinfo->image_width;  cinfo->output_height = cinfo->image_height;  /* jdinput.c has already initialized DCT_scaled_size to DCTSIZE,   * and has computed unscaled downsampled_width and downsampled_height.   */#endif /* IDCT_SCALING_SUPPORTED */  /* Report number of components in selected colorspace. */  /* Probably this should be in the color conversion module... */  switch (cinfo->out_color_space) {  case JCS_GRAYSCALE:    cinfo->out_color_components = 1;    break;  case JCS_RGB:#if RGB_PIXELSIZE != 3    cinfo->out_color_components = RGB_PIXELSIZE;    break;#endif /* else share code with YCbCr */  case JCS_YCbCr:    cinfo->out_color_components = 3;    break;  case JCS_CMYK:  case JCS_YCCK:    cinfo->out_color_components = 4;    break;  default:			/* else must be same colorspace as in file */    cinfo->out_color_components = cinfo->num_components;    break;  }  cinfo->output_components = (cinfo->quantize_colors ? 1 :			      cinfo->out_color_components);  /* See if upsampler will want to emit more than one row at a time */  if (use_merged_upsample(cinfo))    cinfo->rec_outbuf_height = cinfo->max_v_samp_factor;  else    cinfo->rec_outbuf_height = 1;}/* * Several decompression processes need to range-limit values to the range * 0..MAXJSAMPLE; the input value may fall somewhat outside this range * due to noise introduced by quantization, roundoff error, etc.  These * processes are inner loops and need to be as fast as possible.  On most * machines, particularly CPUs with pipelines or instruction prefetch, * a (subscript-check-less) C table lookup *		x = sample_range_limit[x]; * is faster than explicit tests *		if (x < 0)  x = 0; *		else if (x > MAXJSAMPLE)  x = MAXJSAMPLE; * These processes all use a common table prepared by the routine below. * * For most steps we can mathematically guarantee that the initial value * of x is within MAXJSAMPLE+1 of the legal range, so a table running from * -(MAXJSAMPLE+1) to 2*MAXJSAMPLE+1 is sufficient.  But for the initial * limiting step (just after the IDCT), a wildly out-of-range value is  * possible if the input data is corrupt.  To avoid any chance of indexing * off the end of memory and getting a bad-pointer trap, we perform the * post-IDCT limiting thus: *		x = range_limit[x & MASK]; * where MASK is 2 bits wider than legal sample data, ie 10 bits for 8-bit * samples.  Under normal circumstances this is more than enough range and * a correct output will be generated; with bogus input data the mask will * cause wraparound, and we will safely generate a bogus-but-in-range output. * For the post-IDCT step, we want to convert the data from signed to unsigned * representation by adding CENTERJSAMPLE at the same time that we limit it. * So the post-IDCT limiting table ends up looking like this: *   CENTERJSAMPLE,CENTERJSAMPLE+1,...,MAXJSAMPLE, *   MAXJSAMPLE (repeat 2*(MAXJSAMPLE+1)-CENTERJSAMPLE times), *   0          (repeat 2*(MAXJSAMPLE+1)-CENTERJSAMPLE times), *   0,1,...,CENTERJSAMPLE-1 * Negative inputs select values from the upper half of the table after * masking. * * We can save some space by overlapping the start of the post-IDCT table * with the simpler range limiting table.  The post-IDCT table begins at * sample_range_limit + CENTERJSAMPLE. * * Note that the table is allocated in near data space on PCs; it's small * enough and used often enough to justify this. */LOCAL(void)prepare_range_limit_table (j_decompress_ptr cinfo)/* Allocate and fill in the sample_range_limit table */{  JSAMPLE * table;  int i;  table = (JSAMPLE *)    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,		(5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * SIZEOF(JSAMPLE));  table += (MAXJSAMPLE+1);	/* allow negative subscripts of simple table */  cinfo->sample_range_limit = table;  /* First segment of "simple" table: limit[x] = 0 for x < 0 */  MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE));  /* Main part of "simple" table: limit[x] = x */  for (i = 0; i <= MAXJSAMPLE; i++)    table[i] = (JSAMPLE) i;  table += CENTERJSAMPLE;	/* Point to where post-IDCT table starts */  /* End of simple table, rest of first half of post-IDCT table */  for (i = CENTERJSAMPLE; i < 2*(MAXJSAMPLE+1); i++)    table[i] = (char)MAXJSAMPLE;  /* Second half of post-IDCT table */  MEMZERO(table + (2 * (MAXJSAMPLE+1)),	  (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * SIZEOF(JSAMPLE));  MEMCOPY(table + (4 * (MAXJSAMPLE+1) - CENTERJSAMPLE),	  cinfo->sample_range_limit, CENTERJSAMPLE * SIZEOF(JSAMPLE));}/*

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费高清在线一区| 日韩欧美在线网站| 成人av先锋影音| 91黄视频在线观看| 欧美日韩一级黄| 欧美精品一区二区三区四区 | 欧美日韩一卡二卡三卡 | 婷婷开心激情综合| 国内精品国产三级国产a久久| 成人av电影免费在线播放| 欧洲一区二区三区免费视频| 日韩精品一区二| 欧美国产激情二区三区| 日韩一区在线看| 捆绑调教一区二区三区| 国产91精品露脸国语对白| www.在线成人| 欧美一区二区三区爱爱| 久久久久久久久久美女| 亚洲国产综合色| 国产一区二区福利| 91在线视频在线| 2021久久国产精品不只是精品| 亚洲日本一区二区三区| 麻豆成人久久精品二区三区红| 成人免费视频视频在线观看免费| 欧美午夜理伦三级在线观看| 国产亚洲污的网站| 免费在线观看不卡| 欧美制服丝袜第一页| 欧美激情中文字幕| 国产在线视频一区二区三区| 欧美性猛交xxxx黑人交| 中文字幕综合网| 高清不卡一二三区| 欧美videos大乳护士334| 亚洲精品一二三区| 91亚洲精品一区二区乱码| 国产精品欧美久久久久一区二区| 青娱乐精品在线视频| 欧美久久一二区| 日本亚洲三级在线| 日韩精品专区在线影院重磅| 午夜电影网一区| 欧美久久一区二区| 蜜桃视频在线一区| 在线看日韩精品电影| 综合欧美一区二区三区| 在线观看91精品国产入口| 亚洲精品久久7777| 欧美日韩中文精品| 麻豆91在线看| 国产日本欧美一区二区| 欧美日韩国产综合视频在线观看| 91精品国产一区二区三区香蕉| 亚洲mv在线观看| 欧美日韩国产高清一区| 视频精品一区二区| 欧美大白屁股肥臀xxxxxx| 日本视频一区二区三区| 久久久精品欧美丰满| 色狠狠色狠狠综合| 国产精品1024| 日韩和欧美一区二区| 亚洲图片一区二区| 成人av电影免费在线播放| 亚洲一区二区三区在线播放| 欧美视频一区二区三区在线观看| 日韩一区有码在线| 久久精品亚洲精品国产欧美| 免费人成在线不卡| 精品粉嫩超白一线天av| 奇米在线7777在线精品| 色欧美片视频在线观看在线视频| 国产精品久久国产精麻豆99网站| 看电影不卡的网站| 精品sm在线观看| 麻豆高清免费国产一区| 日本免费新一区视频| 波多野结衣亚洲| 亚洲综合在线免费观看| 亚洲免费观看高清完整版在线观看 | 亚洲男同1069视频| 极品少妇xxxx精品少妇偷拍| 亚洲自拍偷拍综合| 99精品欧美一区二区三区小说| 国产亚洲欧美一区在线观看| 国模大尺度一区二区三区| 中文字幕综合网| 亚洲成人一区二区| 天天综合日日夜夜精品| 久久精品一区四区| 久久这里只精品最新地址| 国产欧美视频一区二区| 精品欧美乱码久久久久久 | 国产电影一区二区三区| 欧美一级一区二区| 日日夜夜精品免费视频| 中文字幕综合网| 成人美女在线观看| 日韩av在线播放中文字幕| 五月天激情小说综合| 日韩国产一二三区| 久久99久久久欧美国产| 国产综合色产在线精品| av一区二区不卡| 欧美在线视频全部完| 在线成人av影院| 欧美国产激情一区二区三区蜜月| 国产欧美一区二区三区在线老狼 | 免费在线观看精品| 国产成人精品免费在线| 91首页免费视频| 亚洲精品国产精品乱码不99| 五月天网站亚洲| 国产精品看片你懂得| 欧美精品一区二| 久久亚洲一级片| 色噜噜偷拍精品综合在线| av色综合久久天堂av综合| 国产在线精品免费| 成人av午夜电影| 色一情一伦一子一伦一区| 91日韩在线专区| 91蝌蚪国产九色| 色呦呦日韩精品| 色综合色综合色综合色综合色综合 | 日韩美女久久久| 亚洲综合免费观看高清完整版在线 | 天天色天天爱天天射综合| 国产一区二区精品久久91| 欧美裸体bbwbbwbbw| 亚洲国产成人在线| 精品一区二区三区日韩| 色av综合在线| 亚洲va欧美va天堂v国产综合| 国产丶欧美丶日本不卡视频| 久久精品亚洲国产奇米99| 国产毛片精品视频| 国产精品嫩草久久久久| voyeur盗摄精品| 亚洲精品菠萝久久久久久久| 99riav一区二区三区| 亚洲香蕉伊在人在线观| 欧美制服丝袜第一页| 亚洲国产精品久久不卡毛片| 国产日韩欧美一区二区三区乱码 | 3d动漫精品啪啪| 韩国理伦片一区二区三区在线播放| 欧美精品一区二区三区四区| 99久久综合精品| 美女在线观看视频一区二区| 国产精品久久久久四虎| 51午夜精品国产| 国产91在线观看| 三级成人在线视频| 国产精品久久久久影视| 欧美精品1区2区3区| 久久福利资源站| 亚洲精品国产精品乱码不99| 久久一区二区三区四区| 欧美日韩国产综合一区二区| 成人激情综合网站| 国模大尺度一区二区三区| 亚洲一区二区黄色| 亚洲欧美视频一区| 久久久久国产免费免费| 欧美一区二区在线不卡| 欧美午夜电影一区| 色哟哟精品一区| 99久久精品国产一区| 成人av在线看| 99久久综合99久久综合网站| 国产成人在线电影| 国产毛片一区二区| 国产剧情一区二区| 精品综合久久久久久8888| 久久精品久久综合| 麻豆精品视频在线观看免费| 美女久久久精品| 极品少妇xxxx精品少妇偷拍| 韩国精品一区二区| 国产精品自拍一区| 成人av网站在线观看免费| 福利一区在线观看| 色妞www精品视频| 欧美日韩免费视频| 精品国一区二区三区| 国产精品免费视频网站| 亚洲色大成网站www久久九九| 午夜视频在线观看一区二区| 免费高清不卡av| 成人丝袜18视频在线观看| 972aa.com艺术欧美| 欧美精品久久久久久久多人混战| 91麻豆精品国产91久久久久久| 久久丝袜美腿综合| 亚洲国产精品视频| 成人性生交大片免费看在线播放| www.欧美色图|