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

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

?? jdpostct.c

?? 基于Linux的ffmepg decoder
?? C
字號:
/* * 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);    }  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区在线播放| 另类的小说在线视频另类成人小视频在线| 在线影院国内精品| 久久99这里只有精品| 亚洲乱码一区二区三区在线观看| 91麻豆精品国产91久久久久久| 成人性视频免费网站| 视频一区欧美精品| 国产精品传媒视频| 久久免费午夜影院| 91麻豆精品国产91久久久使用方法| 不卡的av电影在线观看| 蜜乳av一区二区| 亚洲国产wwwccc36天堂| 国产精品久久网站| 久久久亚洲精品一区二区三区 | 美日韩一区二区| 亚洲精品你懂的| 欧美激情在线一区二区| 欧美videos大乳护士334| 欧美日韩激情一区| 欧美专区在线观看一区| 成人一区二区三区| 国产99久久久久久免费看农村| 青椒成人免费视频| 午夜免费欧美电影| 一区二区欧美精品| 成人免费在线观看入口| 中文字幕一区在线观看视频| 欧美国产日产图区| 国产亚洲精品资源在线26u| 日韩美女在线视频| 91精品国产品国语在线不卡| 欧美日韩亚洲综合一区| 在线观看一区二区视频| 欧美亚洲图片小说| 91麻豆.com| 91亚洲精品乱码久久久久久蜜桃| 99久久免费视频.com| 成人av在线资源网| 不卡av免费在线观看| 国产成人午夜电影网| 国产成人综合网站| 高清久久久久久| 成人免费视频网站在线观看| 成人97人人超碰人人99| 99在线精品观看| 色综合久久九月婷婷色综合| 91麻豆精东视频| 欧美性欧美巨大黑白大战| 欧美日韩一区三区| 91精品国产91久久久久久一区二区 | 91丝袜高跟美女视频| www.欧美色图| 在线日韩国产精品| 欧美二区乱c少妇| 精品理论电影在线观看| 久久久www免费人成精品| 欧美激情在线一区二区三区| 亚洲欧美日韩在线不卡| 亚洲福利一二三区| 蜜臀精品一区二区三区在线观看| 国产尤物一区二区在线| 成人永久aaa| 色94色欧美sute亚洲线路一ni | 日韩在线观看一区二区| 久久精品av麻豆的观看方式| 精东粉嫩av免费一区二区三区| 高清国产一区二区三区| 91啪在线观看| 欧美男女性生活在线直播观看 | 亚洲成年人影院| 精品一二三四区| gogogo免费视频观看亚洲一| 欧美色图片你懂的| 精品国产91九色蝌蚪| 国产精品久久久久久久久晋中 | 精品久久免费看| 国产精品九色蝌蚪自拍| 亚洲动漫第一页| 国产精品综合一区二区三区| 91麻豆成人久久精品二区三区| 91精品国产入口在线| 国产精品污污网站在线观看| 亚洲一区二区美女| 国产一区在线观看麻豆| 欧美在线制服丝袜| 久久五月婷婷丁香社区| 一区二区欧美精品| 国产福利一区二区| 91麻豆精品国产91久久久久久| 国产精品久久久久久久久动漫| 免费看日韩精品| 色一情一乱一乱一91av| 久久亚洲一级片| 午夜精品123| www一区二区| 国产精品美女久久久久久| 日韩黄色免费电影| 99re66热这里只有精品3直播 | 亚洲免费在线电影| 国产美女视频91| 欧美午夜视频网站| 国产精品国产三级国产专播品爱网| 日韩精品成人一区二区在线| 99免费精品在线观看| 日韩一卡二卡三卡四卡| 亚洲精品亚洲人成人网| 国产精品一区二区91| 日韩精品自拍偷拍| 亚洲成人激情社区| 色婷婷综合久久久久中文一区二区 | 不卡的看片网站| 精品日韩在线一区| 日韩精品电影一区亚洲| 在线观看日韩电影| 中文字幕亚洲不卡| 国产成人午夜99999| 精品国精品自拍自在线| 秋霞午夜av一区二区三区| 欧美亚洲另类激情小说| 亚洲色图欧美激情| jvid福利写真一区二区三区| 中文字幕不卡三区| 国产精品一二三四五| 欧美大肚乱孕交hd孕妇| 美女视频黄 久久| 欧美一区二区三区的| 亚洲成人激情社区| 欧美日韩不卡一区二区| 亚洲午夜私人影院| 91成人网在线| 亚洲一区二区美女| 欧美日本免费一区二区三区| 亚洲一区自拍偷拍| 欧美日韩中文字幕精品| 亚洲国产日韩一级| 欧美日韩免费电影| 日本色综合中文字幕| 日韩精品一区二区三区三区免费| 蜜桃av噜噜一区二区三区小说| 欧美一区二区福利在线| 久久99精品久久久久久久久久久久| 日韩一区二区在线看片| 久久99精品国产| 国产视频在线观看一区二区三区| 国产suv精品一区二区883| 欧美国产一区二区在线观看| 成人高清在线视频| 亚洲免费视频中文字幕| 欧美日韩视频第一区| 日本aⅴ精品一区二区三区| 欧美成人欧美edvon| 国产成人精品午夜视频免费| 国产精品久久久久aaaa樱花 | 国产超碰在线一区| 1区2区3区精品视频| 色偷偷一区二区三区| 丝袜诱惑亚洲看片| 欧美精品一区在线观看| 成人avav在线| 视频在线观看91| 久久这里只有精品视频网| 不卡影院免费观看| 一区二区欧美精品| 欧美大片在线观看| 成人va在线观看| 亚洲一区二区三区三| 日韩欧美亚洲国产另类| 粉嫩aⅴ一区二区三区四区 | 中文字幕不卡在线播放| 91久久线看在观草草青青| 婷婷亚洲久悠悠色悠在线播放| 欧美一二三区精品| 成人动漫在线一区| 日本色综合中文字幕| 中文一区在线播放| 91精品一区二区三区在线观看| 国产一区二区三区免费观看| 一区二区在线观看免费| 日韩欧美123| 在线免费观看视频一区| 久久99精品视频| 亚洲精品乱码久久久久久黑人| 日韩欧美精品三级| av在线综合网| 韩日欧美一区二区三区| 一区二区三区四区精品在线视频| 欧美成人精品福利| 色狠狠一区二区| 国产成都精品91一区二区三| 午夜久久电影网| 亚洲手机成人高清视频| 精品久久国产97色综合| 欧美性极品少妇| heyzo一本久久综合| 韩国在线一区二区| 偷拍自拍另类欧美| 亚洲日本va午夜在线影院| 久久亚洲欧美国产精品乐播 |