亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
91美女视频网站| 精品亚洲成av人在线观看| 东方aⅴ免费观看久久av| 久久中文字幕电影| 国产成人免费在线视频| 欧美国产精品v| 91在线视频免费91| 午夜欧美在线一二页| 日韩欧美电影一二三| 韩国成人精品a∨在线观看| 国产日韩v精品一区二区| 99视频一区二区| 亚洲一区二区三区视频在线| 69成人精品免费视频| 精品一区二区三区蜜桃| 国产欧美一区二区精品性色超碰| 国产成人免费视频网站高清观看视频| 亚洲国产高清aⅴ视频| 91在线国内视频| 香蕉av福利精品导航| 日韩天堂在线观看| 成人av在线播放网址| 亚洲成人综合网站| 2022国产精品视频| 一本到一区二区三区| 日韩激情在线观看| 久久蜜桃av一区精品变态类天堂| 91免费在线视频观看| 日本aⅴ免费视频一区二区三区| 日韩美女主播在线视频一区二区三区| 国产高清在线精品| 亚洲国产欧美另类丝袜| 精品少妇一区二区三区日产乱码 | 五月开心婷婷久久| 国产校园另类小说区| 欧美日韩视频第一区| 国产高清不卡一区| 亚洲午夜激情av| 久久久91精品国产一区二区精品 | 日一区二区三区| 亚洲国产高清不卡| 日韩一区二区视频| 色欧美乱欧美15图片| 日韩av高清在线观看| 一区精品在线播放| 久久久噜噜噜久久中文字幕色伊伊 | 一本大道久久a久久精品综合| 美国av一区二区| 亚洲一区免费观看| 国产三区在线成人av| 欧美精品精品一区| 91在线观看成人| 精品一区二区免费视频| 午夜精品福利一区二区蜜股av| 国产精品久久久久三级| 欧美变态tickling挠脚心| 欧美影视一区在线| 91在线码无精品| 国产精品99久久久久久有的能看| 午夜成人免费视频| 亚洲一区二区三区不卡国产欧美| 国产午夜精品一区二区| 日韩欧美激情四射| 欧美在线视频日韩| 99久久久国产精品| 不卡一区中文字幕| 国产精品一色哟哟哟| 国产在线一区观看| 久久不见久久见中文字幕免费| 亚洲成人在线网站| 午夜激情久久久| 日韩中文字幕1| 青青草国产成人99久久| 日本成人在线视频网站| 蜜臀久久久久久久| 久久国产精品区| 精品一区二区在线免费观看| 蜜桃传媒麻豆第一区在线观看| 五月天网站亚洲| 午夜精品久久久| 美女在线观看视频一区二区| 日韩成人午夜电影| 久久99精品一区二区三区| 麻豆91在线播放免费| 强制捆绑调教一区二区| 男女视频一区二区| 免费观看成人av| 一区二区三区四区高清精品免费观看| 国产亚洲成年网址在线观看| 久久无码av三级| 欧美国产激情二区三区 | 欧美成人video| 欧美一区二区三区喷汁尤物| 欧美一级片在线| 日韩美女一区二区三区四区| 日韩欧美中文一区二区| 日韩精品专区在线影院重磅| 欧美videos大乳护士334| 欧美一级二级三级蜜桃| 欧美一级片在线观看| 日韩欧美综合一区| 欧美日本高清视频在线观看| 欧美一区二区三区在| 91精品国产美女浴室洗澡无遮挡| 欧美三片在线视频观看 | 日韩一级在线观看| 日韩限制级电影在线观看| 欧美大片一区二区| 久久久久9999亚洲精品| 欧美色网站导航| 亚洲精品一区二区在线观看| 久久久久久久久久美女| 欧美激情一区二区三区在线| 亚洲欧洲日产国码二区| 日韩精品一二三| 久久精品国产亚洲aⅴ| 国产一区二区三区在线观看免费视频| 国产成人精品午夜视频免费| 国产伦精品一区二区三区免费迷| 成人av第一页| 欧美日韩一本到| 欧美精品一区二区三| 国产精品看片你懂得| 亚洲一二三四久久| 亚洲在线免费播放| 亚洲成人av一区二区三区| 亚洲精品中文字幕乱码三区| 天天射综合影视| 国产风韵犹存在线视精品| 91玉足脚交白嫩脚丫在线播放| 91精品国产一区二区三区蜜臀| 精品成人私密视频| 亚洲欧美日韩电影| 日韩av一级片| 91色在线porny| 日韩一区二区三区免费观看| 欧美国产日韩亚洲一区| 亚洲福利一区二区三区| 国产xxx精品视频大全| 欧美系列在线观看| 国产亚洲一区字幕| 亚洲成av人在线观看| 亚洲一区二区三区精品在线| 99riav一区二区三区| 欧美日本在线播放| 国产片一区二区| 五月婷婷综合网| 成人激情校园春色| 欧美精品久久一区二区三区| 中文字幕制服丝袜成人av| 日韩不卡一二三区| 色视频欧美一区二区三区| 欧美日韩一级片网站| 亚洲日本成人在线观看| 狠狠色狠狠色综合日日91app| 色欧美88888久久久久久影院| 日韩亚洲欧美综合| 免费成人在线视频观看| 在线精品国精品国产尤物884a| 久久久久国产精品人| 五月婷婷久久综合| 欧美日韩一级片在线观看| 亚洲欧洲精品成人久久奇米网| 美日韩一区二区三区| 日本精品一区二区三区高清| 日本一区二区三区电影| 美女视频黄 久久| 欧美在线你懂得| 亚洲综合丝袜美腿| 色综合天天综合狠狠| 国产网站一区二区三区| 国产mv日韩mv欧美| 91精品国产综合久久精品app| 午夜精品视频在线观看| 欧美色中文字幕| 亚洲国产综合91精品麻豆| 欧美日韩五月天| 亚洲成人av在线电影| 欧美中文字幕一区二区三区| 中文字幕欧美区| 99精品在线观看视频| 国产农村妇女精品| 国产尤物一区二区| www久久久久| 成年人网站91| 亚洲视频免费在线观看| 色婷婷久久久亚洲一区二区三区| 亚洲永久精品国产| 欧美军同video69gay| 日韩精品一区第一页| 欧美成人女星排名| jvid福利写真一区二区三区| 国产精品国产三级国产三级人妇| 成人ar影院免费观看视频| 亚洲自拍偷拍欧美| 欧美一区二区三区四区视频| 久久国产精品色| 欧美精品一区二区三区在线播放 | 丁香网亚洲国际| 国产精品素人视频|