亚洲欧美第一页_禁久久精品乱码_粉嫩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电影| 久久综合久久久久88| 亚洲午夜在线电影| 成人一道本在线| 精品久久人人做人人爰| 亚洲一区二区三区四区不卡| 99综合影院在线| 久久日一线二线三线suv| 丝袜亚洲另类欧美| 91久久人澡人人添人人爽欧美 | 日韩电影一区二区三区四区| 91免费在线看| 国产精品欧美综合在线| 精品午夜久久福利影院| 欧美男女性生活在线直播观看| 亚洲同性gay激情无套| 国产乱子轮精品视频| 欧美电影免费观看高清完整版| 亚洲国产美国国产综合一区二区| 91亚洲精品久久久蜜桃网站| 国产午夜精品一区二区三区视频| 久久草av在线| 欧美一区日本一区韩国一区| 亚洲大尺度视频在线观看| 色偷偷88欧美精品久久久| 亚洲六月丁香色婷婷综合久久| 成人视屏免费看| 国产精品不卡在线观看| 99免费精品视频| 国产精品日产欧美久久久久| 成人免费黄色在线| 亚洲欧洲国产日韩| 91浏览器在线视频| 亚洲va欧美va天堂v国产综合| 欧美亚一区二区| 午夜影院久久久| 日韩三级在线观看| 国产精品夜夜嗨| 国产精品麻豆久久久| 97se狠狠狠综合亚洲狠狠| 亚洲女女做受ⅹxx高潮| 欧美午夜电影网| 日韩二区三区在线观看| 欧美va亚洲va国产综合| 成人性生交大合| 一区二区在线看| 欧美一卡二卡三卡| 国产伦精品一区二区三区免费| 国产精品久久久久久久久快鸭| 色香色香欲天天天影视综合网| 亚洲尤物视频在线| 日韩一区二区视频| 国产成人日日夜夜| 亚洲综合精品久久| 精品区一区二区| 99国产精品久久久久久久久久| 亚洲成a人v欧美综合天堂| 欧美电视剧免费全集观看 | 久久精品国内一区二区三区| 久久久精品天堂| 欧美调教femdomvk| 国产精品一二三四| 亚洲丶国产丶欧美一区二区三区| 欧美成人欧美edvon| av激情综合网| 男男视频亚洲欧美| 自拍偷拍国产亚洲| 26uuu亚洲综合色| 色94色欧美sute亚洲13| 国产自产视频一区二区三区| 亚洲自拍都市欧美小说| 国产欧美中文在线| 91麻豆精品国产91久久久久久久久| 国产在线播放一区| 午夜精品福利一区二区蜜股av| 国产无人区一区二区三区| 欧美人伦禁忌dvd放荡欲情| 成人小视频免费观看| 喷白浆一区二区| 一区二区三区色| 国产精品色哟哟| 欧美不卡一区二区三区| 欧美视频一区二区三区| 不卡的av在线播放| 国产精品一色哟哟哟| 蜜桃一区二区三区四区| 一区二区三区在线免费视频| 国产色产综合产在线视频| 日韩一级片网站| 在线观看91视频| 91在线观看视频| 国产suv一区二区三区88区| 麻豆一区二区在线| 午夜激情一区二区三区| 亚洲精品国产高清久久伦理二区| 日本一区二区三级电影在线观看 | 日欧美一区二区| 亚洲自拍另类综合| 亚洲精品成a人| 亚洲视频一二三| 国产精品久久久久久久第一福利 | 国产成人亚洲综合a∨猫咪| 九九视频精品免费| 免费人成网站在线观看欧美高清| 亚洲电影在线免费观看| 夜夜嗨av一区二区三区网页 | 91黄色免费看| 日本精品裸体写真集在线观看| a4yy欧美一区二区三区| 91免费看片在线观看| 不卡一区二区在线| 91视频一区二区| 色激情天天射综合网| 在线观看亚洲一区| 欧美视频中文字幕| 欧美久久婷婷综合色| 91精品国产综合久久久久久久久久| 欧美日韩在线一区二区| 欧美日韩精品是欧美日韩精品| 欧美日本一区二区| 日韩视频一区在线观看| 久久久蜜臀国产一区二区| 国产亚洲欧美色| 国产精品福利影院| 亚洲一二三四在线| 免费xxxx性欧美18vr| 国产精选一区二区三区 | 狠狠狠色丁香婷婷综合激情| 国产一区二区视频在线播放| av不卡在线播放| 欧美丝袜自拍制服另类| 日韩一区国产二区欧美三区| 久久久亚洲精品一区二区三区| 国产精品无圣光一区二区| 亚洲乱码日产精品bd| 日韩中文字幕区一区有砖一区| 开心九九激情九九欧美日韩精美视频电影 | 日本一区二区三区在线观看| 亚洲男人的天堂在线aⅴ视频| 伊人性伊人情综合网| 黄一区二区三区| 92国产精品观看| 精品国产91乱码一区二区三区 | 日韩一区二区在线观看视频播放| 国产三级三级三级精品8ⅰ区| 一区二区三区在线视频观看| 久久99国产乱子伦精品免费| 99视频一区二区三区| 538在线一区二区精品国产| 久久综合资源网| 夜夜嗨av一区二区三区网页 | 午夜伊人狠狠久久| 国产福利视频一区二区三区| 日本精品一级二级| 久久精品一二三| 日本亚洲天堂网| youjizz久久| 精品久久久久av影院 | 欧美高清dvd| 国产精品毛片无遮挡高清| 日本不卡高清视频| 北条麻妃国产九九精品视频| 欧美一区二区三区视频在线| 亚洲日本成人在线观看| 国产主播一区二区三区| 欧美日韩国产另类不卡| 国产精品无人区| 青青草精品视频| 欧美性做爰猛烈叫床潮| 最新日韩在线视频| 国产精品1024| 欧美一区二区视频在线观看2020| 亚洲三级久久久| 成人污视频在线观看| 久久综合色综合88| 奇米精品一区二区三区在线观看| 色婷婷狠狠综合| 欧美国产精品专区| 韩国v欧美v日本v亚洲v| 日韩一区二区在线免费观看| 一区二区高清在线| 91蜜桃在线免费视频| 欧美精品一区二| 老司机午夜精品99久久| 91精品国产入口| 丝袜脚交一区二区| 欧美久久久一区| 男女性色大片免费观看一区二区| 欧美日韩不卡一区二区| 亚洲综合在线电影| 欧美性生活大片视频| 亚洲444eee在线观看| 欧美日韩免费一区二区三区视频| 亚洲视频一区在线| 欧美私模裸体表演在线观看| 午夜精品一区二区三区电影天堂| 欧美区视频在线观看|