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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? jdpostct.c

?? 支持各種柵格圖像和矢量圖像讀取的庫
?? C
字號(hào):
/* * jdpostct.c * * Copyright (C) 1994-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 the decompression postprocessing controller. * This controller manages the upsampling, color conversion, and color * quantization/reduction steps; specifically, it controls the buffering * between upsample/color conversion and color quantization/reduction. * * If no color quantization/reduction is required, then this module has no * work to do, and it just hands off to the upsample/color conversion code. * An integrated upsample/convert/quantize process would replace this module * entirely. */#define JPEG_INTERNALS#include "jinclude.h"#include "jpeglib.h"/* Private buffer controller object */typedef struct {  struct jpeg_d_post_controller pub; /* public fields */  /* Color quantization source buffer: this holds output data from   * the upsample/color conversion step to be passed to the quantizer.   * For two-pass color quantization, we need a full-image buffer;   * for one-pass operation, a strip buffer is sufficient.   */  jvirt_sarray_ptr whole_image;	/* virtual array, or NULL if one-pass */  JSAMPARRAY buffer;		/* strip buffer, or current strip of virtual */  JDIMENSION strip_height;	/* buffer size in rows */  /* for two-pass mode only: */  JDIMENSION starting_row;	/* row # of first row in current strip */  JDIMENSION next_row;		/* index of next row to fill/empty in strip */} my_post_controller;typedef my_post_controller * my_post_ptr;/* Forward declarations */METHODDEF(void) post_process_1pass	JPP((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));#ifdef QUANT_2PASS_SUPPORTEDMETHODDEF(void) post_process_prepass	JPP((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));METHODDEF(void) post_process_2pass	JPP((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));#endif/* * Initialize for a processing pass. */METHODDEF(void)start_pass_dpost (j_decompress_ptr cinfo, J_BUF_MODE pass_mode){  my_post_ptr post = (my_post_ptr) cinfo->post;  switch (pass_mode) {  case JBUF_PASS_THRU:    if (cinfo->quantize_colors) {      /* Single-pass processing with color quantization. */      post->pub.post_process_data = post_process_1pass;      /* We could be doing buffered-image output before starting a 2-pass       * color quantization; in that case, jinit_d_post_controller did not       * allocate a strip buffer.  Use the virtual-array buffer as workspace.       */      if (post->buffer == NULL) {	post->buffer = (*cinfo->mem->access_virt_sarray)	  ((j_common_ptr) cinfo, post->whole_image,	   (JDIMENSION) 0, post->strip_height, TRUE);      }    } else {      /* For single-pass processing without color quantization,       * I have no work to do; just call the upsampler directly.       */      post->pub.post_process_data = cinfo->upsample->upsample;    }    break;#ifdef QUANT_2PASS_SUPPORTED  case JBUF_SAVE_AND_PASS:    /* First pass of 2-pass quantization */    if (post->whole_image == NULL)      ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);    post->pub.post_process_data = post_process_prepass;    break;  case JBUF_CRANK_DEST:    /* Second pass of 2-pass quantization */    if (post->whole_image == NULL)      ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);    post->pub.post_process_data = post_process_2pass;    break;#endif /* QUANT_2PASS_SUPPORTED */  default:    ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);    break;  }  post->starting_row = post->next_row = 0;}/* * Process some data in the one-pass (strip buffer) case. * This is used for color precision reduction as well as one-pass quantization. */METHODDEF(void)post_process_1pass (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_post_ptr post = (my_post_ptr) cinfo->post;  JDIMENSION num_rows, max_rows;  /* Fill the buffer, but not more than what we can dump out in one go. */  /* Note we rely on the upsampler to detect bottom of image. */  max_rows = out_rows_avail - *out_row_ctr;  if (max_rows > post->strip_height)    max_rows = post->strip_height;  num_rows = 0;  (*cinfo->upsample->upsample) (cinfo,		input_buf, in_row_group_ctr, in_row_groups_avail,		post->buffer, &num_rows, max_rows);  /* Quantize and emit data. */  (*cinfo->cquantize->color_quantize) (cinfo,		post->buffer, output_buf + *out_row_ctr, (int) num_rows);  *out_row_ctr += num_rows;}#ifdef QUANT_2PASS_SUPPORTED/* * Process some data in the first pass of 2-pass quantization. */METHODDEF(void)post_process_prepass (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_post_ptr post = (my_post_ptr) cinfo->post;  JDIMENSION old_next_row, num_rows;  /* Reposition virtual buffer if at start of strip. */  if (post->next_row == 0) {    post->buffer = (*cinfo->mem->access_virt_sarray)	((j_common_ptr) cinfo, post->whole_image,	 post->starting_row, post->strip_height, TRUE);  }  /* Upsample some data (up to a strip height's worth). */  old_next_row = post->next_row;  (*cinfo->upsample->upsample) (cinfo,		input_buf, in_row_group_ctr, in_row_groups_avail,		post->buffer, &post->next_row, post->strip_height);  /* Allow quantizer to scan new data.  No data is emitted, */  /* but we advance out_row_ctr so outer loop can tell when we're done. */  if (post->next_row > old_next_row) {    num_rows = post->next_row - old_next_row;    (*cinfo->cquantize->color_quantize) (cinfo, post->buffer + old_next_row,					 (JSAMPARRAY) NULL, (int) num_rows);    *out_row_ctr += num_rows;  }  /* Advance if we filled the strip. */  if (post->next_row >= post->strip_height) {    post->starting_row += post->strip_height;    post->next_row = 0;  }}/* * Process some data in the second pass of 2-pass quantization. */METHODDEF(void)post_process_2pass (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_post_ptr post = (my_post_ptr) cinfo->post;  JDIMENSION num_rows, max_rows;  /* Reposition virtual buffer if at start of strip. */  if (post->next_row == 0) {    post->buffer = (*cinfo->mem->access_virt_sarray)	((j_common_ptr) cinfo, post->whole_image,	 post->starting_row, post->strip_height, FALSE);  }  /* Determine number of rows to emit. */  num_rows = post->strip_height - post->next_row; /* available in strip */  max_rows = out_rows_avail - *out_row_ctr; /* available in output area */  if (num_rows > max_rows)    num_rows = max_rows;  /* We have to check bottom of image here, can't depend on upsampler. */  max_rows = cinfo->output_height - post->starting_row;  if (num_rows > max_rows)    num_rows = max_rows;  /* Quantize and emit data. */  (*cinfo->cquantize->color_quantize) (cinfo,		post->buffer + post->next_row, output_buf + *out_row_ctr,		(int) num_rows);  *out_row_ctr += num_rows;  /* Advance if we filled the strip. */  post->next_row += num_rows;  if (post->next_row >= post->strip_height) {    post->starting_row += post->strip_height;    post->next_row = 0;  }}#endif /* QUANT_2PASS_SUPPORTED *//* * Initialize postprocessing controller. */GLOBAL(void)jinit_d_post_controller (j_decompress_ptr cinfo, boolean need_full_buffer){  my_post_ptr post;  post = (my_post_ptr)    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,				SIZEOF(my_post_controller));  cinfo->post = (struct jpeg_d_post_controller *) post;  post->pub.start_pass = start_pass_dpost;  post->whole_image = NULL;	/* flag for no virtual arrays */  post->buffer = NULL;		/* flag for no strip buffer */  /* Create the quantization buffer, if needed */  if (cinfo->quantize_colors) {    /* The buffer strip height is max_v_samp_factor, which is typically     * an efficient number of rows for upsampling to return.     * (In the presence of output rescaling, we might want to be smarter?)     */    post->strip_height = (JDIMENSION) cinfo->max_v_samp_factor;    if (need_full_buffer) {      /* Two-pass color quantization: need full-image storage. */      /* We round up the number of rows to a multiple of the strip height. */#ifdef QUANT_2PASS_SUPPORTED      post->whole_image = (*cinfo->mem->request_virt_sarray)	((j_common_ptr) cinfo, JPOOL_IMAGE, FALSE,	 cinfo->output_width * cinfo->out_color_components,	 (JDIMENSION) jround_up((long) cinfo->output_height,				(long) post->strip_height),	 post->strip_height);#else      ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);#endif /* QUANT_2PASS_SUPPORTED */    } else {      /* One-pass color quantization: just make a strip buffer. */      post->buffer = (*cinfo->mem->alloc_sarray)	((j_common_ptr) cinfo, JPOOL_IMAGE,	 cinfo->output_width * cinfo->out_color_components,	 post->strip_height);    }  }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久九九99视频| 7777精品伊人久久久大香线蕉超级流畅 | 欧美日韩国产高清一区二区| 美女网站色91| 成人免费在线视频观看| 欧美日韩精品一区二区三区四区 | 中文字幕一区二区在线播放| 欧美日韩的一区二区| 午夜精品免费在线| 国产欧美日韩亚州综合 | 欧美精品丝袜中出| 国产成人精品www牛牛影视| 亚洲另类春色校园小说| 欧美三级电影精品| 成人免费电影视频| 肉肉av福利一精品导航| 久久精品视频一区二区| 在线免费视频一区二区| 精品无码三级在线观看视频 | 精品美女在线观看| 99re视频精品| 成人在线综合网| 奇米亚洲午夜久久精品| 亚洲色图制服诱惑| 国产欧美久久久精品影院| 日韩一级完整毛片| 欧美性高清videossexo| 国产成人在线视频网站| 日韩1区2区3区| 亚洲一区免费视频| 亚洲国产精品av| 久久久噜噜噜久久中文字幕色伊伊| 色呦呦一区二区三区| 国产精品综合一区二区三区| 狠狠色丁香久久婷婷综| 日韩av一区二区三区四区| 亚洲天堂网中文字| 精品国产免费久久| 日韩欧美成人激情| 欧美精品乱人伦久久久久久| 丰满少妇久久久久久久| 高清久久久久久| 国产精品1区2区3区在线观看| 美女在线视频一区| 国内精品久久久久影院色| 日韩电影免费在线| 午夜精品久久久久久久久久 | 激情久久久久久久久久久久久久久久| 亚洲国产视频直播| 午夜精品久久久久久久蜜桃app| 伊人色综合久久天天| 亚洲日本成人在线观看| 国产情人综合久久777777| 国产日韩av一区二区| 久久久久久久久久久99999| www国产成人| 综合电影一区二区三区 | 国产乱码精品一品二品| 国产在线精品免费av| 久久se精品一区精品二区| 蜜臀av一区二区在线观看| 亚洲一区二区欧美| 麻豆精品国产传媒mv男同| 久久不见久久见中文字幕免费| 麻豆久久久久久久| 国产91精品久久久久久久网曝门| 国产91精品精华液一区二区三区 | 99re在线精品| 色婷婷狠狠综合| 欧美性一二三区| 日韩三级电影网址| 日韩欧美国产精品一区| 日韩欧美国产一区二区在线播放 | 亚洲成人在线观看视频| 亚洲一二三区视频在线观看| 亚洲女厕所小便bbb| 免费国产亚洲视频| 黄色日韩网站视频| www.爱久久.com| 777久久久精品| 精品久久国产字幕高潮| 国产精品入口麻豆九色| 午夜久久久久久| 国产精品1区2区3区在线观看| 成人国产在线观看| fc2成人免费人成在线观看播放| 在线观看www91| 日韩一区二区在线观看视频| 精品第一国产综合精品aⅴ| 亚洲免费色视频| 免费看精品久久片| av电影天堂一区二区在线观看| 欧美日韩国产片| 久久久久久久久久电影| 亚洲综合无码一区二区| 精品一区免费av| 色综合婷婷久久| 日韩三级伦理片妻子的秘密按摩| 国产精品国产三级国产| 日本不卡123| 93久久精品日日躁夜夜躁欧美| 欧美日韩高清影院| 国产精品久久久久久久久免费丝袜 | 国产经典欧美精品| 在线观看日韩毛片| 久久精品人人做人人综合| 一级特黄大欧美久久久| 国产一二精品视频| 欧美精品三级日韩久久| 国产精品你懂的| 国产精品一级黄| 欧美日韩国产小视频在线观看| 国产亚洲精品中文字幕| 成人av片在线观看| 制服丝袜在线91| 中文字幕中文字幕中文字幕亚洲无线| 亚洲国产一区二区在线播放| 丁香五精品蜜臀久久久久99网站| 高清成人免费视频| 欧美一区二区三区色| 亚洲欧美视频在线观看视频| 理论片日本一区| 欧美一区二区视频在线观看| 视频一区在线视频| 风间由美中文字幕在线看视频国产欧美| 欧洲一区二区av| 国产精品久久久久久久久搜平片| 国产成人精品aa毛片| 欧美一区二区视频在线观看2020| 亚洲私人黄色宅男| 色域天天综合网| 国产精品乱人伦中文| 国精产品一区一区三区mba桃花 | 99久久免费精品| www国产成人免费观看视频 深夜成人网| 亚洲国产一区二区三区青草影视| 91国产视频在线观看| 国产精品麻豆久久久| 国产成人av网站| www成人在线观看| 国产精品羞羞答答xxdd | 国产精品久久久久影院老司 | 亚洲成人av中文| 欧美高清性hdvideosex| 亚洲狠狠丁香婷婷综合久久久| 丁香桃色午夜亚洲一区二区三区| 久久天堂av综合合色蜜桃网| 国产成人欧美日韩在线电影| 国产精品天干天干在观线| 99久久伊人精品| 亚洲亚洲人成综合网络| 欧美一级爆毛片| 国产精品主播直播| 亚洲图片欧美激情| 欧美日韩视频在线观看一区二区三区 | 亚洲欧美偷拍三级| 欧美日韩精品一区视频| 六月婷婷色综合| 中文在线一区二区| 在线观看免费成人| 精品中文av资源站在线观看| 中文字幕av一区二区三区免费看| 色婷婷狠狠综合| 看电视剧不卡顿的网站| 欧美激情一区二区| 欧美亚日韩国产aⅴ精品中极品| 美女一区二区视频| 亚洲图片激情小说| 日韩一级大片在线观看| 成人精品高清在线| 亚洲成人免费影院| 久久久亚洲国产美女国产盗摄| 91蝌蚪porny| 免费在线一区观看| 国产精品电影一区二区| 欧美一级一级性生活免费录像| 丁香天五香天堂综合| 视频在线在亚洲| 亚洲欧美综合另类在线卡通| 制服丝袜亚洲网站| 91一区在线观看| 久久99九九99精品| 亚洲无线码一区二区三区| 国产亚洲欧美日韩日本| 欧美日韩在线播放三区| 国产69精品久久久久777| 亚洲丰满少妇videoshd| 中文字幕精品一区| 日韩一区二区三区电影在线观看 | 日本不卡一区二区| 中文字幕一区二区在线播放| 日韩欧美一区二区在线视频| 色综合久久久久| 国产成人在线视频网站| 日韩成人一区二区| 一区二区三区在线观看动漫| 久久久久国产精品免费免费搜索| 欧美天天综合网| 不卡一区中文字幕| 久久精品国产99|