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

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

?? wrrle.c

?? jpeg解碼標準代碼
?? C
字號:
/* * wrrle.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 routines to write output images in RLE format. * The Utah Raster Toolkit library is required (version 3.1 or later). * * These routines may need modification for non-Unix environments or * specialized applications.  As they stand, they assume output to * an ordinary stdio stream. * * Based on code contributed by Mike Lijewski, * with updates from Robert Hutchinson. */#include "cdjpeg.h"		/* Common decls for cjpeg/djpeg applications */#ifdef RLE_SUPPORTED/* rle.h is provided by the Utah Raster Toolkit. */#include <rle.h>/* * We assume that JSAMPLE has the same representation as rle_pixel, * to wit, "unsigned char".  Hence we can't cope with 12- or 16-bit samples. */#if BITS_IN_JSAMPLE != 8  Sorry, this code only copes with 8-bit JSAMPLEs. /* deliberate syntax err */#endif/* * Since RLE stores scanlines bottom-to-top, we have to invert the image * from JPEG's top-to-bottom order.  To do this, we save the outgoing data * in a virtual array during put_pixel_row calls, then actually emit the * RLE file during finish_output. *//* * For now, if we emit an RLE color map then it is always 256 entries long, * though not all of the entries need be used. */#define CMAPBITS	8#define CMAPLENGTH	(1<<(CMAPBITS))typedef struct {  struct djpeg_dest_struct pub; /* public fields */  jvirt_sarray_ptr image;	/* virtual array to store the output image */  rle_map *colormap;	 	/* RLE-style color map, or NULL if none */  rle_pixel **rle_row;		/* To pass rows to rle_putrow() */} rle_dest_struct;typedef rle_dest_struct * rle_dest_ptr;/* Forward declarations */METHODDEF(void) rle_put_pixel_rows    JPP((j_decompress_ptr cinfo, djpeg_dest_ptr dinfo,	 JDIMENSION rows_supplied));/* * Write the file header. * * In this module it's easier to wait till finish_output to write anything. */METHODDEF(void)start_output_rle (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo){  rle_dest_ptr dest = (rle_dest_ptr) dinfo;  size_t cmapsize;  int i, ci;#ifdef PROGRESS_REPORT  cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress;#endif  /*   * Make sure the image can be stored in RLE format.   *   * - RLE stores image dimensions as *signed* 16 bit integers.  JPEG   *   uses unsigned, so we have to check the width.   *   * - Colorspace is expected to be grayscale or RGB.   *   * - The number of channels (components) is expected to be 1 (grayscale/   *   pseudocolor) or 3 (truecolor/directcolor).   *   (could be 2 or 4 if using an alpha channel, but we aren't)   */  if (cinfo->output_width > 32767 || cinfo->output_height > 32767)    ERREXIT2(cinfo, JERR_RLE_DIMENSIONS, cinfo->output_width, 	     cinfo->output_height);  if (cinfo->out_color_space != JCS_GRAYSCALE &&      cinfo->out_color_space != JCS_RGB)    ERREXIT(cinfo, JERR_RLE_COLORSPACE);  if (cinfo->output_components != 1 && cinfo->output_components != 3)    ERREXIT1(cinfo, JERR_RLE_TOOMANYCHANNELS, cinfo->num_components);  /* Convert colormap, if any, to RLE format. */  dest->colormap = NULL;  if (cinfo->quantize_colors) {    /* Allocate storage for RLE-style cmap, zero any extra entries */    cmapsize = cinfo->out_color_components * CMAPLENGTH * SIZEOF(rle_map);    dest->colormap = (rle_map *) (*cinfo->mem->alloc_small)      ((j_common_ptr) cinfo, JPOOL_IMAGE, cmapsize);    MEMZERO(dest->colormap, cmapsize);    /* Save away data in RLE format --- note 8-bit left shift! */    /* Shifting would need adjustment for JSAMPLEs wider than 8 bits. */    for (ci = 0; ci < cinfo->out_color_components; ci++) {      for (i = 0; i < cinfo->actual_number_of_colors; i++) {        dest->colormap[ci * CMAPLENGTH + i] =          GETJSAMPLE(cinfo->colormap[ci][i]) << 8;      }    }  }  /* Set the output buffer to the first row */  dest->pub.buffer = (*cinfo->mem->access_virt_sarray)    ((j_common_ptr) cinfo, dest->image, (JDIMENSION) 0, (JDIMENSION) 1, TRUE);  dest->pub.buffer_height = 1;  dest->pub.put_pixel_rows = rle_put_pixel_rows;#ifdef PROGRESS_REPORT  if (progress != NULL) {    progress->total_extra_passes++;  /* count file writing as separate pass */  }#endif}/* * Write some pixel data. * * This routine just saves the data away in a virtual array. */METHODDEF(void)rle_put_pixel_rows (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo,		    JDIMENSION rows_supplied){  rle_dest_ptr dest = (rle_dest_ptr) dinfo;  if (cinfo->output_scanline < cinfo->output_height) {    dest->pub.buffer = (*cinfo->mem->access_virt_sarray)      ((j_common_ptr) cinfo, dest->image,       cinfo->output_scanline, (JDIMENSION) 1, TRUE);  }}/* * Finish up at the end of the file. * * Here is where we really output the RLE file. */METHODDEF(void)finish_output_rle (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo){  rle_dest_ptr dest = (rle_dest_ptr) dinfo;  rle_hdr header;		/* Output file information */  rle_pixel **rle_row, *red, *green, *blue;  JSAMPROW output_row;  char cmapcomment[80];  int row, col;  int ci;#ifdef PROGRESS_REPORT  cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress;#endif  /* Initialize the header info */  header = *rle_hdr_init(NULL);  header.rle_file = dest->pub.output_file;  header.xmin     = 0;  header.xmax     = cinfo->output_width  - 1;  header.ymin     = 0;  header.ymax     = cinfo->output_height - 1;  header.alpha    = 0;  header.ncolors  = cinfo->output_components;  for (ci = 0; ci < cinfo->output_components; ci++) {    RLE_SET_BIT(header, ci);  }  if (cinfo->quantize_colors) {    header.ncmap   = cinfo->out_color_components;    header.cmaplen = CMAPBITS;    header.cmap    = dest->colormap;    /* Add a comment to the output image with the true colormap length. */    sprintf(cmapcomment, "color_map_length=%d", cinfo->actual_number_of_colors);    rle_putcom(cmapcomment, &header);  }  /* Emit the RLE header and color map (if any) */  rle_put_setup(&header);  /* Now output the RLE data from our virtual array.   * We assume here that (a) rle_pixel is represented the same as JSAMPLE,   * and (b) we are not on a machine where FAR pointers differ from regular.   */#ifdef PROGRESS_REPORT  if (progress != NULL) {    progress->pub.pass_limit = cinfo->output_height;    progress->pub.pass_counter = 0;    (*progress->pub.progress_monitor) ((j_common_ptr) cinfo);  }#endif  if (cinfo->output_components == 1) {    for (row = cinfo->output_height-1; row >= 0; row--) {      rle_row = (rle_pixel **) (*cinfo->mem->access_virt_sarray)        ((j_common_ptr) cinfo, dest->image,	 (JDIMENSION) row, (JDIMENSION) 1, FALSE);      rle_putrow(rle_row, (int) cinfo->output_width, &header);#ifdef PROGRESS_REPORT      if (progress != NULL) {        progress->pub.pass_counter++;        (*progress->pub.progress_monitor) ((j_common_ptr) cinfo);      }#endif    }  } else {    for (row = cinfo->output_height-1; row >= 0; row--) {      rle_row = (rle_pixel **) dest->rle_row;      output_row = * (*cinfo->mem->access_virt_sarray)        ((j_common_ptr) cinfo, dest->image,	 (JDIMENSION) row, (JDIMENSION) 1, FALSE);      red = rle_row[0];      green = rle_row[1];      blue = rle_row[2];      for (col = cinfo->output_width; col > 0; col--) {        *red++ = GETJSAMPLE(*output_row++);        *green++ = GETJSAMPLE(*output_row++);        *blue++ = GETJSAMPLE(*output_row++);      }      rle_putrow(rle_row, (int) cinfo->output_width, &header);#ifdef PROGRESS_REPORT      if (progress != NULL) {        progress->pub.pass_counter++;        (*progress->pub.progress_monitor) ((j_common_ptr) cinfo);      }#endif    }  }#ifdef PROGRESS_REPORT  if (progress != NULL)    progress->completed_extra_passes++;#endif  /* Emit file trailer */  rle_puteof(&header);  fflush(dest->pub.output_file);  if (ferror(dest->pub.output_file))    ERREXIT(cinfo, JERR_FILE_WRITE);}/* * The module selection routine for RLE format output. */GLOBAL(djpeg_dest_ptr)jinit_write_rle (j_decompress_ptr cinfo){  rle_dest_ptr dest;  /* Create module interface object, fill in method pointers */  dest = (rle_dest_ptr)      (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,                                  SIZEOF(rle_dest_struct));  dest->pub.start_output = start_output_rle;  dest->pub.finish_output = finish_output_rle;  /* Calculate output image dimensions so we can allocate space */  jpeg_calc_output_dimensions(cinfo);  /* Allocate a work array for output to the RLE library. */  dest->rle_row = (*cinfo->mem->alloc_sarray)    ((j_common_ptr) cinfo, JPOOL_IMAGE,     cinfo->output_width, (JDIMENSION) cinfo->output_components);  /* Allocate a virtual array to hold the image. */  dest->image = (*cinfo->mem->request_virt_sarray)    ((j_common_ptr) cinfo, JPOOL_IMAGE, FALSE,     (JDIMENSION) (cinfo->output_width * cinfo->output_components),     cinfo->output_height, (JDIMENSION) 1);  return (djpeg_dest_ptr) dest;}#endif /* RLE_SUPPORTED */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人自拍视频在线观看| 日韩免费电影一区| 欧美精品在线观看播放| 精品少妇一区二区三区免费观看| 精品国产制服丝袜高跟| 日本一区二区三区在线观看| 亚洲日本在线a| 日韩激情中文字幕| 国产福利精品一区| 欧美午夜精品久久久久久孕妇| 欧美一区二区播放| 中文在线一区二区| 婷婷综合五月天| 成人午夜私人影院| 精品视频999| 国产精品免费观看视频| 亚洲第一二三四区| 不卡av免费在线观看| 91精品国产综合久久小美女| 中文字幕一区二区三区在线播放| 亚洲一区二区三区小说| 国产精品一区二区无线| 欧美日韩免费观看一区三区| 久久亚洲一级片| 亚洲电影在线播放| 精一区二区三区| 欧美三区在线观看| 中文字幕中文乱码欧美一区二区| 日本不卡123| 91麻豆国产香蕉久久精品| 精品国产免费视频| 亚洲午夜私人影院| 成+人+亚洲+综合天堂| 精品久久久久久久久久久久久久久 | 日韩成人伦理电影在线观看| 黄网站免费久久| 欧美精品久久久久久久多人混战| 一区二区三区在线视频观看| 国产成人免费视频网站| 精品成人免费观看| 国产精一品亚洲二区在线视频| 久久日韩粉嫩一区二区三区| 国产一区二区三区视频在线播放| 精品国产乱码久久久久久牛牛| 精品无人区卡一卡二卡三乱码免费卡 | 欧美一区二区三区视频免费| 免费人成在线不卡| 久久婷婷国产综合精品青草| 国产一区二区电影| 中文字幕一区二区三区四区不卡 | 中文字幕一区二区视频| 日本精品裸体写真集在线观看 | 亚洲色图20p| 欧美日韩激情一区| 老鸭窝一区二区久久精品| 久久久久九九视频| 色婷婷综合激情| 蜜桃在线一区二区三区| 欧美激情艳妇裸体舞| 欧美在线免费观看亚洲| 蜜臂av日日欢夜夜爽一区| 国产校园另类小说区| 一本大道久久a久久综合| 性欧美疯狂xxxxbbbb| 日韩一区二区影院| 成人黄色小视频| 午夜不卡在线视频| 国产香蕉久久精品综合网| 91在线porny国产在线看| 亚洲成av人片一区二区梦乃| 26uuu成人网一区二区三区| 成人精品国产福利| 五月天亚洲精品| 国产日韩欧美不卡| 欧美蜜桃一区二区三区| 国产馆精品极品| 亚洲国产欧美在线| 欧美高清在线一区| 8x8x8国产精品| 成人美女视频在线观看| 午夜激情一区二区三区| 中文字幕中文在线不卡住| 日韩一区二区三区免费看 | 国产精品996| 日韩激情av在线| 亚洲视频在线观看三级| 精品嫩草影院久久| 欧美欧美欧美欧美首页| 99re这里只有精品视频首页| 国产黄色精品网站| 蜜臂av日日欢夜夜爽一区| 亚洲一区二区视频在线| 亚洲人午夜精品天堂一二香蕉| 久久亚洲综合色| 日韩西西人体444www| 色综合久久久久久久久| 大陆成人av片| 国产精品一级片| 久久成人综合网| 日韩av一区二区在线影视| 一区二区三区在线观看网站| 国产精品久久久久久户外露出| 久久精品夜色噜噜亚洲aⅴ| 欧美一级午夜免费电影| 欧美精品久久久久久久多人混战| 欧美在线不卡视频| 色94色欧美sute亚洲线路一久| www.亚洲人| 99久久er热在这里只有精品15 | www.在线成人| 成人av电影在线观看| 国产91丝袜在线播放0| 国产在线视频不卡二| 久久99精品久久久久久国产越南| 三级在线观看一区二区| 亚洲18色成人| 人人爽香蕉精品| 久久成人羞羞网站| 激情深爱一区二区| 国产露脸91国语对白| 国产精品一区二区久久精品爱涩| 国产成人免费在线观看不卡| 成人亚洲精品久久久久软件| 国产+成+人+亚洲欧洲自线| 福利视频网站一区二区三区| 99久久精品免费观看| 91丝袜呻吟高潮美腿白嫩在线观看| 成人毛片视频在线观看| 在线观看国产精品网站| 欧美日韩成人在线| 日韩一区二区三区在线| 精品国产不卡一区二区三区| 久久综合久久99| 日韩毛片视频在线看| 午夜精品爽啪视频| 国产在线日韩欧美| 91蜜桃婷婷狠狠久久综合9色| 色欧美片视频在线观看| 7777女厕盗摄久久久| 日韩欧美亚洲国产另类| 国产蜜臀97一区二区三区| 亚洲狠狠丁香婷婷综合久久久| 午夜影院久久久| 精品一区二区三区在线视频| 99久久99久久精品免费观看 | 日韩欧美123| 国产精品视频免费看| 亚洲午夜av在线| 国产一区 二区| 欧美在线三级电影| 久久久精品国产免费观看同学| 国产精品高清亚洲| 热久久国产精品| 成人a区在线观看| 宅男在线国产精品| 中文在线一区二区| 蜜臀av一区二区| 色诱视频网站一区| 精品国产青草久久久久福利| 一区二区成人在线| 国产乱一区二区| 欧美日韩在线播放三区四区| 国产人伦精品一区二区| 天堂一区二区在线| caoporen国产精品视频| 日韩亚洲电影在线| 亚洲午夜一区二区| 波多野结衣亚洲一区| 欧美一区二区精品久久911| 亚洲色图制服诱惑 | 欧美熟乱第一页| 国产亚洲婷婷免费| 欧美96一区二区免费视频| 91福利社在线观看| 国产精品美女一区二区三区| 日韩 欧美一区二区三区| 97se亚洲国产综合自在线观| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 欧美一区二区久久| 夜夜嗨av一区二区三区| 国产精品一级在线| 久久综合九色综合97_久久久| 亚洲国产色一区| 色综合久久综合网欧美综合网| 久久久久99精品一区| 三级影片在线观看欧美日韩一区二区| 99国内精品久久| 国产精品美女久久久久av爽李琼 | 日本v片在线高清不卡在线观看| 一本大道久久a久久综合婷婷| 中文字幕高清不卡| 久久国产精品第一页| 日韩三级在线观看| 日韩一区欧美二区| 欧美精选午夜久久久乱码6080| 一区二区三区.www| 91精品福利视频| 亚洲一区二区三区四区五区中文| 91女厕偷拍女厕偷拍高清| 亚洲欧洲国产日本综合|