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

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

?? rdswitch.c

?? 這是在PCA下的基于IPP庫示例代碼例子,在網上下了IPP的庫之后,設置相關參數就可以編譯該代碼.
?? C
字號:
/* * rdswitch.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 process some of cjpeg's more complicated * command-line switches.  Switches processed here are: *  -qtables file   Read quantization tables from text file *  -scans file   Read scan script from text file *  -qslots N[,N,...] Set component quantization table selectors *  -sample HxV[,HxV,...] Set component sampling factors */#include "cdjpeg.h"   /* Common decls for cjpeg/djpeg applications */#include <ctype.h>    /* to declare isdigit(), isspace() */LOCAL(int)text_getc (FILE * file)/* Read next char, skipping over any comments (# to end of line) *//* A comment/newline sequence is returned as a newline */{  register int ch;  ch = getc(file);  if (ch == '#') {    do {      ch = getc(file);    } while (ch != '\n' && ch != EOF);  }  return ch;}LOCAL(boolean)read_text_integer (FILE * file, long * result, int * termchar)/* Read an unsigned decimal integer from a file, store it in result *//* Reads one trailing character after the integer; returns it in termchar */{  register int ch;  register long val;  /* Skip any leading whitespace, detect EOF */  do {    ch = text_getc(file);    if (ch == EOF) {      *termchar = ch;      return FALSE;    }  } while (isspace(ch));  if (! isdigit(ch)) {    *termchar = ch;    return FALSE;  }  val = ch - '0';  while ((ch = text_getc(file)) != EOF) {    if (! isdigit(ch))      break;    val *= 10;    val += ch - '0';  }  *result = val;  *termchar = ch;  return TRUE;}GLOBAL(boolean)read_quant_tables (j_compress_ptr cinfo, char * filename,       int scale_factor, boolean force_baseline)/* Read a set of quantization tables from the specified file. * The file is plain ASCII text: decimal numbers with whitespace between. * Comments preceded by '#' may be included in the file. * There may be one to NUM_QUANT_TBLS tables in the file, each of 64 values. * The tables are implicitly numbered 0,1,etc. * NOTE: does not affect the qslots mapping, which will default to selecting * table 0 for luminance (or primary) components, 1 for chrominance components. * You must use -qslots if you want a different component->table mapping. */{  FILE * fp;  int tblno, i, termchar;  long val;  unsigned int table[DCTSIZE2];  if ((fp = fopen(filename, "r")) == NULL) {    fprintf(stderr, "Can't open table file %s\n", filename);    return FALSE;  }  tblno = 0;  while (read_text_integer(fp, &val, &termchar)) { /* read 1st element of table */    if (tblno >= NUM_QUANT_TBLS) {      fprintf(stderr, "Too many tables in file %s\n", filename);      fclose(fp);      return FALSE;    }    table[0] = (unsigned int) val;    for (i = 1; i < DCTSIZE2; i++) {      if (! read_text_integer(fp, &val, &termchar)) {  fprintf(stderr, "Invalid table data in file %s\n", filename);  fclose(fp);  return FALSE;      }      table[i] = (unsigned int) val;    }    jpeg_add_quant_table(cinfo, tblno, table, scale_factor, force_baseline);    tblno++;  }  if (termchar != EOF) {    fprintf(stderr, "Non-numeric data in file %s\n", filename);    fclose(fp);    return FALSE;  }  fclose(fp);  return TRUE;}#ifdef C_MULTISCAN_FILES_SUPPORTEDLOCAL(boolean)read_scan_integer (FILE * file, long * result, int * termchar)/* Variant of read_text_integer that always looks for a non-space termchar; * this simplifies parsing of punctuation in scan scripts. */{  register int ch;  if (! read_text_integer(file, result, termchar))    return FALSE;  ch = *termchar;  while (ch != EOF && isspace(ch))    ch = text_getc(file);  if (isdigit(ch)) {    /* oops, put it back */    if (ungetc(ch, file) == EOF)      return FALSE;    ch = ' ';  } else {    /* Any separators other than ';' and ':' are ignored;     * this allows user to insert commas, etc, if desired.     */    if (ch != EOF && ch != ';' && ch != ':')      ch = ' ';  }  *termchar = ch;  return TRUE;}GLOBAL(boolean)read_scan_script (j_compress_ptr cinfo, char * filename)/* Read a scan script from the specified text file. * Each entry in the file defines one scan to be emitted. * Entries are separated by semicolons ';'. * An entry contains one to four component indexes, * optionally followed by a colon ':' and four progressive-JPEG parameters. * The component indexes denote which component(s) are to be transmitted * in the current scan.  The first component has index 0. * Sequential JPEG is used if the progressive-JPEG parameters are omitted. * The file is free format text: any whitespace may appear between numbers * and the ':' and ';' punctuation marks.  Also, other punctuation (such * as commas or dashes) can be placed between numbers if desired. * Comments preceded by '#' may be included in the file. * Note: we do very little validity checking here; * jcmaster.c will validate the script parameters. */{  FILE * fp;  int scanno, ncomps, termchar;  long val;  jpeg_scan_info * scanptr;#define MAX_SCANS  100    /* quite arbitrary limit */  jpeg_scan_info scans[MAX_SCANS];  if ((fp = fopen(filename, "r")) == NULL) {    fprintf(stderr, "Can't open scan definition file %s\n", filename);    return FALSE;  }  scanptr = scans;  scanno = 0;  while (read_scan_integer(fp, &val, &termchar)) {    if (scanno >= MAX_SCANS) {      fprintf(stderr, "Too many scans defined in file %s\n", filename);      fclose(fp);      return FALSE;    }    scanptr->component_index[0] = (int) val;    ncomps = 1;    while (termchar == ' ') {      if (ncomps >= MAX_COMPS_IN_SCAN) {  fprintf(stderr, "Too many components in one scan in file %s\n",    filename);  fclose(fp);  return FALSE;      }      if (! read_scan_integer(fp, &val, &termchar))  goto bogus;      scanptr->component_index[ncomps] = (int) val;      ncomps++;    }    scanptr->comps_in_scan = ncomps;    if (termchar == ':') {      if (! read_scan_integer(fp, &val, &termchar) || termchar != ' ')  goto bogus;      scanptr->Ss = (int) val;      if (! read_scan_integer(fp, &val, &termchar) || termchar != ' ')  goto bogus;      scanptr->Se = (int) val;      if (! read_scan_integer(fp, &val, &termchar) || termchar != ' ')  goto bogus;      scanptr->Ah = (int) val;      if (! read_scan_integer(fp, &val, &termchar))  goto bogus;      scanptr->Al = (int) val;    } else {      /* set non-progressive parameters */      scanptr->Ss = 0;      scanptr->Se = DCTSIZE2-1;      scanptr->Ah = 0;      scanptr->Al = 0;    }    if (termchar != ';' && termchar != EOF) {bogus:      fprintf(stderr, "Invalid scan entry format in file %s\n", filename);      fclose(fp);      return FALSE;    }    scanptr++, scanno++;  }  if (termchar != EOF) {    fprintf(stderr, "Non-numeric data in file %s\n", filename);    fclose(fp);    return FALSE;  }  if (scanno > 0) {    /* Stash completed scan list in cinfo structure.     * NOTE: for cjpeg's use, JPOOL_IMAGE is the right lifetime for this data,     * but if you want to compress multiple images you'd want JPOOL_PERMANENT.     */    scanptr = (jpeg_scan_info *)      (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,          scanno * SIZEOF(jpeg_scan_info));    MEMCOPY(scanptr, scans, scanno * SIZEOF(jpeg_scan_info));    cinfo->scan_info = scanptr;    cinfo->num_scans = scanno;  }  fclose(fp);  return TRUE;}#endif /* C_MULTISCAN_FILES_SUPPORTED */GLOBAL(boolean)set_quant_slots (j_compress_ptr cinfo, char *arg)/* Process a quantization-table-selectors parameter string, of the form *     N[,N,...] * If there are more components than parameters, the last value is replicated. */{  int val = 0;      /* default table # */  int ci;  char ch;  for (ci = 0; ci < MAX_COMPONENTS; ci++) {    if (*arg) {      ch = ',';     /* if not set by sscanf, will be ',' */      if (sscanf(arg, "%d%c", &val, &ch) < 1)  return FALSE;      if (ch != ',')    /* syntax check */  return FALSE;      if (val < 0 || val >= NUM_QUANT_TBLS) {  fprintf(stderr, "JPEG quantization tables are numbered 0..%d\n",    NUM_QUANT_TBLS-1);  return FALSE;      }      cinfo->comp_info[ci].quant_tbl_no = val;      while (*arg && *arg++ != ',') /* advance to next segment of arg string */  ;    } else {      /* reached end of parameter, set remaining components to last table */      cinfo->comp_info[ci].quant_tbl_no = val;    }  }  return TRUE;}GLOBAL(boolean)set_sample_factors (j_compress_ptr cinfo, char *arg)/* Process a sample-factors parameter string, of the form *     HxV[,HxV,...] * If there are more components than parameters, "1x1" is assumed for the rest. */{  int ci, val1, val2;  char ch1, ch2;  for (ci = 0; ci < MAX_COMPONENTS; ci++) {    if (*arg) {      ch2 = ',';    /* if not set by sscanf, will be ',' */      if (sscanf(arg, "%d%c%d%c", &val1, &ch1, &val2, &ch2) < 3)  return FALSE;      if ((ch1 != 'x' && ch1 != 'X') || ch2 != ',') /* syntax check */  return FALSE;      if (val1 <= 0 || val1 > 4 || val2 <= 0 || val2 > 4) {  fprintf(stderr, "JPEG sampling factors must be 1..4\n");  return FALSE;      }      cinfo->comp_info[ci].h_samp_factor = val1;      cinfo->comp_info[ci].v_samp_factor = val2;      while (*arg && *arg++ != ',') /* advance to next segment of arg string */  ;    } else {      /* reached end of parameter, set remaining components to 1x1 sampling */      cinfo->comp_info[ci].h_samp_factor = 1;      cinfo->comp_info[ci].v_samp_factor = 1;    }  }  return TRUE;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产电影| 综合精品久久久| 日韩美女视频19| 久久精品国产久精国产爱| 91亚洲精华国产精华精华液| 欧美一区二区视频在线观看2022| 国产精品欧美极品| 国产一区二区免费视频| 欧美精品亚洲一区二区在线播放| 国产精品久久久久影院老司| 裸体在线国模精品偷拍| 91久久精品一区二区三| 久久久久久久久久看片| 秋霞影院一区二区| 色婷婷综合久久久中文字幕| 欧美韩国日本综合| 国产一区二区三区日韩| 91精品国产一区二区| 亚洲欧美另类图片小说| 成人精品国产一区二区4080| 日韩欧美色综合网站| 午夜精品久久久久久久久久久| 972aa.com艺术欧美| 国产精品久久久久久久裸模| 国产精品亚洲成人| 精品av久久707| 男人的j进女人的j一区| 欧美一区二区三区在线观看视频| 亚洲另类在线制服丝袜| 色综合欧美在线| 亚洲免费在线播放| 色欧美日韩亚洲| 亚洲国产欧美在线| 色婷婷综合久色| 悠悠色在线精品| 91在线视频播放| 一区二区三区欧美视频| 91黄色在线观看| 亚洲在线中文字幕| 欧美精品一级二级三级| 日韩av高清在线观看| 欧美日韩精品一区二区三区四区| 午夜精品久久久久影视| 欧美一卡2卡3卡4卡| 蜜臀久久99精品久久久画质超高清 | 91精品综合久久久久久| 日韩福利视频网| 精品久久久久一区二区国产| 国产福利精品导航| 亚洲视频综合在线| 在线观看免费一区| 另类综合日韩欧美亚洲| 日韩你懂的电影在线观看| 精品无人区卡一卡二卡三乱码免费卡| 精品成人一区二区三区| 国产91精品露脸国语对白| 日韩美女久久久| 欧美日本在线播放| 国产成人综合在线播放| 成人欧美一区二区三区小说 | 色综合咪咪久久| 天天色图综合网| 久久蜜桃香蕉精品一区二区三区| 成人av小说网| 亚洲第一成人在线| 国产日韩欧美精品一区| 91视频在线看| 免费精品视频在线| 亚洲欧洲一区二区三区| 欧美精品丝袜久久久中文字幕| 加勒比av一区二区| 日韩理论在线观看| 精品国产乱码久久久久久老虎 | 欧美一区二区三区色| 国产成人精品aa毛片| 曰韩精品一区二区| 久久久久久久网| 欧美三级欧美一级| 成人丝袜视频网| 日韩福利电影在线| 综合婷婷亚洲小说| 久久视频一区二区| 欧美视频日韩视频在线观看| 国产成人综合自拍| 日韩av不卡一区二区| 亚洲精品乱码久久久久久黑人| 欧美一区二区观看视频| 91九色最新地址| 国产一区中文字幕| 亚洲18女电影在线观看| ●精品国产综合乱码久久久久| 日韩精品在线网站| 欧美日韩国产成人在线91 | 日本伊人色综合网| 中文字幕一区二区日韩精品绯色| 日韩一区二区三区在线| 在线一区二区三区| 99久久久精品| 丰满放荡岳乱妇91ww| 久久福利视频一区二区| 日韩国产欧美在线播放| 亚洲午夜免费视频| 亚洲综合视频网| 亚洲欧美二区三区| 国产精品福利影院| 国产欧美日韩精品a在线观看| 日韩免费成人网| 欧美日本国产视频| 欧美高清www午色夜在线视频| 色婷婷av一区二区三区软件| 91免费观看视频在线| 丰满放荡岳乱妇91ww| 国产乱人伦精品一区二区在线观看| 日韩av中文在线观看| 青青草97国产精品免费观看 | 精品女同一区二区| 欧美一级二级三级乱码| 欧美日韩一区二区三区在线| 欧美性大战久久久久久久蜜臀| 在线观看日韩一区| 欧美日韩久久一区| 欧美高清视频不卡网| 欧美日韩激情在线| 日韩三级在线观看| 精品国产1区二区| 国产欧美一区在线| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 国产精品狼人久久影院观看方式| 中文av字幕一区| 中文字幕一区视频| 一区二区三区四区不卡在线| 亚洲精品日日夜夜| 日本美女一区二区三区视频| 免费在线观看成人| 国产一区二区三区四| 波多野结衣在线一区| 色哟哟一区二区在线观看 | 国产欧美日韩久久| 亚洲人吸女人奶水| 日韩精品亚洲专区| 国产一区二区三区在线看麻豆| 国产成人午夜精品影院观看视频| 成人高清免费观看| 欧美三级日本三级少妇99| 日韩欧美不卡一区| 亚洲欧洲成人精品av97| 亚洲免费毛片网站| 久久99精品久久久久久| 成人av综合一区| 欧美一级在线视频| 国产精品高潮呻吟| 久久精品国产亚洲aⅴ| 国产成都精品91一区二区三| 91久久精品一区二区三区| 欧美一级片在线看| 亚洲女同女同女同女同女同69| 日韩国产精品久久| 97久久人人超碰| 日韩精品在线一区二区| 亚洲精品国产精华液| 极品美女销魂一区二区三区免费| 99久久精品国产毛片| 日韩欧美中文字幕公布| 亚洲天堂a在线| 国产一区啦啦啦在线观看| 在线一区二区三区四区五区| 国产日韩欧美制服另类| 丝袜美腿高跟呻吟高潮一区| 色综合夜色一区| 久久久久久久久久看片| 人人狠狠综合久久亚洲| 在线看国产日韩| 国产精品天美传媒| 极品销魂美女一区二区三区| 欧美精品777| 亚洲一级二级三级| voyeur盗摄精品| 久久蜜桃av一区精品变态类天堂 | 91精品国产入口| 综合av第一页| 成人黄色在线网站| 久久综合色8888| 日韩精品成人一区二区在线| 色综合咪咪久久| 17c精品麻豆一区二区免费| 国产一区欧美一区| 精品少妇一区二区三区视频免付费| 亚洲午夜一二三区视频| 91精彩视频在线| 亚洲欧洲制服丝袜| bt欧美亚洲午夜电影天堂| 国产亚洲精久久久久久| 国产乱码精品一区二区三区五月婷 | 色哟哟日韩精品| 国产精品女同一区二区三区| 国产999精品久久久久久绿帽| 久久久影视传媒| 国产不卡在线一区| 国产蜜臀av在线一区二区三区| 国产不卡免费视频|