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

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

?? jcparam.c

?? 支持各種柵格圖像和矢量圖像讀取的庫
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* * jcparam.c * * Copyright (C) 1991-1998, 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 optional default-setting code for the JPEG compressor. * Applications do not have to use this file, but those that don't use it * must know a lot more about the innards of the JPEG code. */#define JPEG_INTERNALS#include "jinclude.h"#include "jpeglib.h"/* * Quantization table setup routines */GLOBAL(void)jpeg_add_quant_table (j_compress_ptr cinfo, int which_tbl,		      const unsigned int *basic_table,		      int scale_factor, boolean force_baseline)/* Define a quantization table equal to the basic_table times * a scale factor (given as a percentage). * If force_baseline is TRUE, the computed quantization table entries * are limited to 1..255 for JPEG baseline compatibility. */{  JQUANT_TBL ** qtblptr;  int i;  long temp;  /* Safety check to ensure start_compress not called yet. */  if (cinfo->global_state != CSTATE_START)    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);  if (which_tbl < 0 || which_tbl >= NUM_QUANT_TBLS)    ERREXIT1(cinfo, JERR_DQT_INDEX, which_tbl);  qtblptr = & cinfo->quant_tbl_ptrs[which_tbl];  if (*qtblptr == NULL)    *qtblptr = jpeg_alloc_quant_table((j_common_ptr) cinfo);  for (i = 0; i < DCTSIZE2; i++) {    temp = ((long) basic_table[i] * scale_factor + 50L) / 100L;    /* limit the values to the valid range */    if (temp <= 0L) temp = 1L;    if (temp > 32767L) temp = 32767L; /* max quantizer needed for 12 bits */    if (force_baseline && temp > 255L)      temp = 255L;		/* limit to baseline range if requested */    (*qtblptr)->quantval[i] = (UINT16) temp;  }  /* Initialize sent_table FALSE so table will be written to JPEG file. */  (*qtblptr)->sent_table = FALSE;}GLOBAL(void)jpeg_set_linear_quality (j_compress_ptr cinfo, int scale_factor,			 boolean force_baseline)/* Set or change the 'quality' (quantization) setting, using default tables * and a straight percentage-scaling quality scale.  In most cases it's better * to use jpeg_set_quality (below); this entry point is provided for * applications that insist on a linear percentage scaling. */{  /* These are the sample quantization tables given in JPEG spec section K.1.   * The spec says that the values given produce "good" quality, and   * when divided by 2, "very good" quality.   */  static const unsigned int std_luminance_quant_tbl[DCTSIZE2] = {    16,  11,  10,  16,  24,  40,  51,  61,    12,  12,  14,  19,  26,  58,  60,  55,    14,  13,  16,  24,  40,  57,  69,  56,    14,  17,  22,  29,  51,  87,  80,  62,    18,  22,  37,  56,  68, 109, 103,  77,    24,  35,  55,  64,  81, 104, 113,  92,    49,  64,  78,  87, 103, 121, 120, 101,    72,  92,  95,  98, 112, 100, 103,  99  };  static const unsigned int std_chrominance_quant_tbl[DCTSIZE2] = {    17,  18,  24,  47,  99,  99,  99,  99,    18,  21,  26,  66,  99,  99,  99,  99,    24,  26,  56,  99,  99,  99,  99,  99,    47,  66,  99,  99,  99,  99,  99,  99,    99,  99,  99,  99,  99,  99,  99,  99,    99,  99,  99,  99,  99,  99,  99,  99,    99,  99,  99,  99,  99,  99,  99,  99,    99,  99,  99,  99,  99,  99,  99,  99  };  /* Set up two quantization tables using the specified scaling */  jpeg_add_quant_table(cinfo, 0, std_luminance_quant_tbl,		       scale_factor, force_baseline);  jpeg_add_quant_table(cinfo, 1, std_chrominance_quant_tbl,		       scale_factor, force_baseline);}GLOBAL(int)jpeg_quality_scaling (int quality)/* Convert a user-specified quality rating to a percentage scaling factor * for an underlying quantization table, using our recommended scaling curve. * The input 'quality' factor should be 0 (terrible) to 100 (very good). */{  /* Safety limit on quality factor.  Convert 0 to 1 to avoid zero divide. */  if (quality <= 0) quality = 1;  if (quality > 100) quality = 100;  /* The basic table is used as-is (scaling 100) for a quality of 50.   * Qualities 50..100 are converted to scaling percentage 200 - 2*Q;   * note that at Q=100 the scaling is 0, which will cause jpeg_add_quant_table   * to make all the table entries 1 (hence, minimum quantization loss).   * Qualities 1..50 are converted to scaling percentage 5000/Q.   */  if (quality < 50)    quality = 5000 / quality;  else    quality = 200 - quality*2;  return quality;}GLOBAL(void)jpeg_set_quality (j_compress_ptr cinfo, int quality, boolean force_baseline)/* Set or change the 'quality' (quantization) setting, using default tables. * This is the standard quality-adjusting entry point for typical user * interfaces; only those who want detailed control over quantization tables * would use the preceding three routines directly. */{  /* Convert user 0-100 rating to percentage scaling */  quality = jpeg_quality_scaling(quality);  /* Set up standard quality tables */  jpeg_set_linear_quality(cinfo, quality, force_baseline);}/* * Huffman table setup routines */LOCAL(void)add_huff_table (j_compress_ptr cinfo,		JHUFF_TBL **htblptr, const UINT8 *bits, const UINT8 *val)/* Define a Huffman table */{  int nsymbols, len;  if (*htblptr == NULL)    *htblptr = jpeg_alloc_huff_table((j_common_ptr) cinfo);  /* Copy the number-of-symbols-of-each-code-length counts */  MEMCOPY((*htblptr)->bits, bits, SIZEOF((*htblptr)->bits));  /* Validate the counts.  We do this here mainly so we can copy the right   * number of symbols from the val[] array, without risking marching off   * the end of memory.  jchuff.c will do a more thorough test later.   */  nsymbols = 0;  for (len = 1; len <= 16; len++)    nsymbols += bits[len];  if (nsymbols < 1 || nsymbols > 256)    ERREXIT(cinfo, JERR_BAD_HUFF_TABLE);  MEMCOPY((*htblptr)->huffval, val, nsymbols * SIZEOF(UINT8));  /* Initialize sent_table FALSE so table will be written to JPEG file. */  (*htblptr)->sent_table = FALSE;}LOCAL(void)std_huff_tables (j_compress_ptr cinfo)/* Set up the standard Huffman tables (cf. JPEG standard section K.3) *//* IMPORTANT: these are only valid for 8-bit data precision! */{  static const UINT8 bits_dc_luminance[17] =    { /* 0-base */ 0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 };  static const UINT8 val_dc_luminance[] =    { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 };    static const UINT8 bits_dc_chrominance[17] =    { /* 0-base */ 0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 };  static const UINT8 val_dc_chrominance[] =    { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 };    static const UINT8 bits_ac_luminance[17] =    { /* 0-base */ 0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 0x7d };  static const UINT8 val_ac_luminance[] =    { 0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12,      0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07,      0x22, 0x71, 0x14, 0x32, 0x81, 0x91, 0xa1, 0x08,      0x23, 0x42, 0xb1, 0xc1, 0x15, 0x52, 0xd1, 0xf0,      0x24, 0x33, 0x62, 0x72, 0x82, 0x09, 0x0a, 0x16,      0x17, 0x18, 0x19, 0x1a, 0x25, 0x26, 0x27, 0x28,      0x29, 0x2a, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39,      0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49,      0x4a, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59,      0x5a, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69,      0x6a, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79,      0x7a, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89,      0x8a, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98,      0x99, 0x9a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,      0xa8, 0xa9, 0xaa, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6,      0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3, 0xc4, 0xc5,      0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2, 0xd3, 0xd4,      0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xe1, 0xe2,      0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea,      0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8,      0xf9, 0xfa };    static const UINT8 bits_ac_chrominance[17] =    { /* 0-base */ 0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 0x77 };  static const UINT8 val_ac_chrominance[] =    { 0x00, 0x01, 0x02, 0x03, 0x11, 0x04, 0x05, 0x21,      0x31, 0x06, 0x12, 0x41, 0x51, 0x07, 0x61, 0x71,      0x13, 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91,      0xa1, 0xb1, 0xc1, 0x09, 0x23, 0x33, 0x52, 0xf0,      0x15, 0x62, 0x72, 0xd1, 0x0a, 0x16, 0x24, 0x34,      0xe1, 0x25, 0xf1, 0x17, 0x18, 0x19, 0x1a, 0x26,      0x27, 0x28, 0x29, 0x2a, 0x35, 0x36, 0x37, 0x38,      0x39, 0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,      0x49, 0x4a, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58,      0x59, 0x5a, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68,      0x69, 0x6a, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78,      0x79, 0x7a, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,      0x88, 0x89, 0x8a, 0x92, 0x93, 0x94, 0x95, 0x96,      0x97, 0x98, 0x99, 0x9a, 0xa2, 0xa3, 0xa4, 0xa5,      0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xb2, 0xb3, 0xb4,      0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3,      0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2,      0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda,      0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9,      0xea, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8,      0xf9, 0xfa };    add_huff_table(cinfo, &cinfo->dc_huff_tbl_ptrs[0],		 bits_dc_luminance, val_dc_luminance);  add_huff_table(cinfo, &cinfo->ac_huff_tbl_ptrs[0],		 bits_ac_luminance, val_ac_luminance);  add_huff_table(cinfo, &cinfo->dc_huff_tbl_ptrs[1],		 bits_dc_chrominance, val_dc_chrominance);  add_huff_table(cinfo, &cinfo->ac_huff_tbl_ptrs[1],		 bits_ac_chrominance, val_ac_chrominance);}/* * Default parameter setup for compression. * * Applications that don't choose to use this routine must do their * own setup of all these parameters.  Alternately, you can call this * to establish defaults and then alter parameters selectively.  This * is the recommended approach since, if we add any new parameters, * your code will still work (they'll be set to reasonable defaults). */GLOBAL(void)jpeg_set_defaults (j_compress_ptr cinfo){  int i;  /* Safety check to ensure start_compress not called yet. */  if (cinfo->global_state != CSTATE_START)    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);  /* Allocate comp_info array large enough for maximum component count.   * Array is made permanent in case application wants to compress   * multiple images at same param settings.   */  if (cinfo->comp_info == NULL)    cinfo->comp_info = (jpeg_component_info *)      (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,				  MAX_COMPONENTS * SIZEOF(jpeg_component_info));  /* Initialize everything not dependent on the color space */  cinfo->data_precision = BITS_IN_JSAMPLE;  /* Set up two quantization tables using default quality of 75 */  jpeg_set_quality(cinfo, 75, TRUE);  /* Set up two Huffman tables */  std_huff_tables(cinfo);  /* Initialize default arithmetic coding conditioning */  for (i = 0; i < NUM_ARITH_TBLS; i++) {    cinfo->arith_dc_L[i] = 0;    cinfo->arith_dc_U[i] = 1;    cinfo->arith_ac_K[i] = 5;  }  /* Default is no multiple-scan output */  cinfo->scan_info = NULL;  cinfo->num_scans = 0;  /* Expect normal source image, not raw downsampled data */  cinfo->raw_data_in = FALSE;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩视频一区二区| 亚洲一级二级在线| 国产成人一区在线| 亚洲国产精品国自产拍av| 国产精品一区免费视频| 国产精品视频看| eeuss鲁片一区二区三区在线观看| 国产精品久久久久影视| 91久久线看在观草草青青| 夜色激情一区二区| 欧美一区二区三区在线电影| 麻豆国产精品官网| 国产丝袜美腿一区二区三区| 成人va在线观看| 亚洲综合激情另类小说区| 欧美精品tushy高清| 精品亚洲成av人在线观看| 国产精品成人免费| 精品污污网站免费看| 美女mm1313爽爽久久久蜜臀| 久久综合成人精品亚洲另类欧美| 国产毛片精品国产一区二区三区| 中文字幕中文字幕一区| 欧美日韩dvd在线观看| 国产剧情一区二区| 亚洲精品老司机| 美女网站色91| 91亚洲国产成人精品一区二三 | 亚洲精品一二三区| 欧美日韩高清一区| 国产激情一区二区三区桃花岛亚洲| 国产精品久99| 日韩欧美资源站| 99精品热视频| 经典三级一区二区| 亚洲精品国产无天堂网2021| 精品日本一线二线三线不卡| 色综合久久88色综合天天免费| 美女视频黄a大片欧美| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 欧美在线一二三| 国产福利不卡视频| 日韩国产欧美在线视频| 1000精品久久久久久久久| 欧美va亚洲va| 欧美日韩免费观看一区三区| 成人av资源在线| 国产综合色在线视频区| 欧美一区二区三区在线视频| 国产精品乱码一区二三区小蝌蚪| 91蝌蚪porny| 成人欧美一区二区三区1314| 欧美一级片在线观看| 91成人看片片| 99久久精品国产精品久久| 国产在线麻豆精品观看| 亚洲国产精品影院| 亚洲欧美色一区| 国产精品区一区二区三区| 欧美xxxx在线观看| 69堂成人精品免费视频| 色老汉一区二区三区| 99国产精品国产精品毛片| 国精产品一区一区三区mba桃花 | 久久99国产乱子伦精品免费| 亚洲综合精品自拍| 日韩一区欧美一区| 久久精品一区二区三区不卡| 欧美性xxxxxxxx| 色狠狠色狠狠综合| 亚洲一二三四久久| 国产精品少妇自拍| 337p粉嫩大胆噜噜噜噜噜91av| 91精品国产免费久久综合| 色天使色偷偷av一区二区| 91啪亚洲精品| 99久久免费国产| 色综合中文字幕国产 | av在线一区二区三区| 麻豆精品在线看| 丝袜美腿高跟呻吟高潮一区| 亚洲视频一区二区在线| 国产欧美一区视频| 精品国免费一区二区三区| 欧美一区二区三区视频免费| 777欧美精品| 欧美日韩三级视频| 欧美视频三区在线播放| 蜜芽一区二区三区| 国产精品对白交换视频| 91麻豆福利精品推荐| 成人网在线免费视频| 粉嫩绯色av一区二区在线观看| 国产麻豆成人精品| 成人午夜私人影院| 不卡的电影网站| 91黄色免费观看| 欧美亚洲动漫精品| 欧美一区二区三区在线电影| 91精品欧美一区二区三区综合在| 精品sm捆绑视频| 久久亚洲精华国产精华液| 欧美国产日韩a欧美在线观看| 久久免费电影网| 亚洲视频你懂的| 夜色激情一区二区| 久久66热re国产| 国产精品一级片在线观看| 91原创在线视频| 欧美性感一类影片在线播放| 日韩欧美一区二区视频| 欧美成人r级一区二区三区| 国产精品美女久久久久久| 国产精品久线观看视频| 午夜欧美视频在线观看| 激情图片小说一区| 91福利在线免费观看| 欧美日韩1234| 国产精品二三区| 亚欧色一区w666天堂| 国产suv精品一区二区883| 国产一区二区影院| 欧美色图片你懂的| 精品视频1区2区| 久久久久久久精| 亚洲成人在线网站| 国产精品一区二区在线观看不卡| 色老汉av一区二区三区| 精品欧美乱码久久久久久1区2区| 亚洲日本va午夜在线影院| 日韩—二三区免费观看av| 成人av免费在线| 91精品国产91热久久久做人人| 国产精品伦理在线| 五月综合激情日本mⅴ| 免费看欧美女人艹b| 99精品视频在线观看免费| 欧美一区二区啪啪| 欧美一区欧美二区| 亚洲va中文字幕| 丁香婷婷综合色啪| 欧美电影一区二区| 久久婷婷国产综合国色天香| 一二三四区精品视频| 黄色小说综合网站| 欧美精品日韩一本| 自拍视频在线观看一区二区| 蜜桃91丨九色丨蝌蚪91桃色| 色婷婷av久久久久久久| 久久久精品免费观看| 日韩电影在线免费看| 成人h版在线观看| 久久久久久久精| 男人操女人的视频在线观看欧美| 91毛片在线观看| 91精品国产乱码久久蜜臀| 亚洲欧美aⅴ...| 免费在线视频一区| 欧美日本在线一区| 国产精品国产三级国产普通话99 | 欧美大胆人体bbbb| 亚洲综合色自拍一区| 懂色av中文字幕一区二区三区| 欧美精品一区二区高清在线观看| 性欧美大战久久久久久久久| 一本色道久久综合狠狠躁的推荐 | 91小宝寻花一区二区三区| 国产欧美一区二区精品忘忧草| 久久91精品久久久久久秒播| 欧美老年两性高潮| 亚洲福中文字幕伊人影院| 国产福利精品导航| 中文字幕日韩欧美一区二区三区| 国产一区二三区| 久久综合精品国产一区二区三区| 国产视频在线观看一区二区三区| 国产大陆a不卡| 欧美日韩小视频| 一区二区三区四区在线| 91视频一区二区三区| 中文字幕在线不卡一区| 成人黄动漫网站免费app| 国产精品你懂的在线| 日韩一区二区精品葵司在线| 亚洲成av人**亚洲成av**| 欧美日韩一区成人| 亚洲美女区一区| 在线观看免费亚洲| 日韩电影在线观看一区| 91精品在线观看入口| 一区二区免费视频| www..com久久爱| 精品成a人在线观看| 国产精品一卡二| 国产精品国产自产拍高清av王其| 成人教育av在线| 日韩午夜激情视频| 裸体一区二区三区| 久久婷婷色综合| 欧美人牲a欧美精品|