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

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

?? wpng.c

?? openmeetings組件之GS openmeetings組件之GS openmeetings組件之GS
?? C
?? 第 1 頁 / 共 3 頁
字號:
/*---------------------------------------------------------------------------   wpng - simple PNG-writing program                                 wpng.c   This program converts certain NetPBM binary files (grayscale and RGB,   maxval = 255) to PNG.  Non-interlaced PNGs are written progressively;   interlaced PNGs are read and written in one memory-intensive blast.   Thanks to Jean-loup Gailly for providing the necessary trick to read   interactive text from the keyboard while stdin is redirected.  Thanks   to Cosmin Truta for Cygwin fixes.   NOTE:  includes provisional support for PNM type "8" (portable alphamap)          images, presumed to be a 32-bit interleaved RGBA format; no pro-          vision for possible interleaved grayscale+alpha (16-bit) format.          THIS IS UNLIKELY TO BECOME AN OFFICIAL NETPBM ALPHA FORMAT!   to do:    - delete output file if quit before calling any writepng routines    - process backspace with -text option under DOS/Win? (currently get ^H)  ---------------------------------------------------------------------------   Changelog:    - 1.01:  initial public release    - 1.02:  modified to allow abbreviated options    - 1.03:  removed extraneous character from usage screen; fixed bug in              command-line parsing    - 1.04:  fixed DOS/OS2/Win32 detection, including partial Cygwin fix              (see http://home.att.net/~perlspinr/diffs/GregBook_cygwin.diff)    - 2.00:  dual-licensed (added GNU GPL)        [REPORTED BUG (win32 only):  "contrib/gregbook/wpng.c - cmd line         dose not work!  In order to do something useful I needed to redirect         both input and output, with cygwin and with bcc32 as well.  Under         Linux, the same wpng appears to work fine.  I don't know what is         the problem."]  ---------------------------------------------------------------------------      Copyright (c) 1998-2007 Greg Roelofs.  All rights reserved.      This software is provided "as is," without warranty of any kind,      express or implied.  In no event shall the author or contributors      be held liable for any damages arising in any way from the use of      this software.      The contents of this file are DUAL-LICENSED.  You may modify and/or      redistribute this software according to the terms of one of the      following two licenses (at your option):      LICENSE 1 ("BSD-like with advertising clause"):      Permission is granted to anyone to use this software for any purpose,      including commercial applications, and to alter it and redistribute      it freely, subject to the following restrictions:      1. Redistributions of source code must retain the above copyright         notice, disclaimer, and this list of conditions.      2. Redistributions in binary form must reproduce the above copyright         notice, disclaimer, and this list of conditions in the documenta-         tion and/or other materials provided with the distribution.      3. All advertising materials mentioning features or use of this         software must display the following acknowledgment:            This product includes software developed by Greg Roelofs            and contributors for the book, "PNG: The Definitive Guide,"            published by O'Reilly and Associates.      LICENSE 2 (GNU GPL v2 or later):      This program is free software; you can redistribute it and/or modify      it under the terms of the GNU General Public License as published by      the Free Software Foundation; either version 2 of the License, or      (at your option) any later version.      This program is distributed in the hope that it will be useful,      but WITHOUT ANY WARRANTY; without even the implied warranty of      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      GNU General Public License for more details.      You should have received a copy of the GNU General Public License      along with this program; if not, write to the Free Software Foundation,      Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  ---------------------------------------------------------------------------*/#define PROGNAME  "wpng"#define VERSION   "2.00 of 2 June 2007"#define APPNAME   "Simple PGM/PPM/PAM to PNG Converter"#if defined(__MSDOS__) || defined(__OS2__)#  define DOS_OS2_W32#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__)#  ifndef __GNUC__   /* treat Win32 native ports of gcc as Unix environments */#    define DOS_OS2_W32#  endif#endif#include <stdio.h>#include <stdlib.h>#include <string.h>#include <setjmp.h>     /* for jmpbuf declaration in writepng.h */#include <time.h>#ifdef DOS_OS2_W32#  include <io.h>       /* for isatty(), setmode() prototypes */#  include <fcntl.h>    /* O_BINARY for fdopen() without text translation */#  ifdef __EMX__#    ifndef getch#      define getch() _read_kbd(0, 1, 0)    /* need getche() */#    endif#  else /* !__EMX__ */#    ifdef __GO32__#      include <pc.h>#      define getch() getkey()  /* GRR:  need getche() */#    else#      include <conio.h>        /* for getche() console input */#    endif#  endif /* ?__EMX__ */#  define FGETS(buf,len,stream)  dos_kbd_gets(buf,len)#else#  include <unistd.h>           /* for isatty() prototype */#  define FGETS fgets#endif/* #define DEBUG  :  this enables the Trace() macros *//* #define FORBID_LATIN1_CTRL  :  this requires the user to re-enter any   text that includes control characters discouraged by the PNG spec; text   that includes an escape character (27) must be re-entered regardless */#include "writepng.h"   /* typedefs, common macros, writepng prototypes *//* local prototypes */static int  wpng_isvalid_latin1(uch *p, int len);static void wpng_cleanup(void);#ifdef DOS_OS2_W32   static char *dos_kbd_gets(char *buf, int len);#endifstatic mainprog_info wpng_info;   /* lone global */int main(int argc, char **argv){#ifndef DOS_OS2_W32    FILE *keybd;#endif#ifdef sgi    FILE *tmpfile;      /* or we could just use keybd, since no overlap */    char tmpline[80];#endif    char *inname = NULL, outname[256];    char *p, pnmchar, pnmline[256];    char *bgstr, *textbuf = NULL;    ulg rowbytes;    int rc, len = 0;    int error = 0;    int text = FALSE;    int maxval;    double LUT_exponent;                /* just the lookup table */    double CRT_exponent = 2.2;          /* just the monitor */    double default_display_exponent;    /* whole display system */    double default_gamma = 0.0;    wpng_info.infile = NULL;    wpng_info.outfile = NULL;    wpng_info.image_data = NULL;    wpng_info.row_pointers = NULL;    wpng_info.filter = FALSE;    wpng_info.interlaced = FALSE;    wpng_info.have_bg = FALSE;    wpng_info.have_time = FALSE;    wpng_info.have_text = 0;    wpng_info.gamma = 0.0;    /* First get the default value for our display-system exponent, i.e.,     * the product of the CRT exponent and the exponent corresponding to     * the frame-buffer's lookup table (LUT), if any.  If the PNM image     * looks correct on the user's display system, its file gamma is the     * inverse of this value.  (Note that this is not an exhaustive list     * of LUT values--e.g., OpenStep has a lot of weird ones--but it should     * cover 99% of the current possibilities.  This section must ensure     * that default_display_exponent is positive.) */#if defined(NeXT)    /* third-party utilities can modify the default LUT exponent */    LUT_exponent = 1.0 / 2.2;    /*    if (some_next_function_that_returns_gamma(&next_gamma))        LUT_exponent = 1.0 / next_gamma;     */#elif defined(sgi)    LUT_exponent = 1.0 / 1.7;    /* there doesn't seem to be any documented function to     * get the "gamma" value, so we do it the hard way */    tmpfile = fopen("/etc/config/system.glGammaVal", "r");    if (tmpfile) {        double sgi_gamma;        fgets(tmpline, 80, tmpfile);        fclose(tmpfile);        sgi_gamma = atof(tmpline);        if (sgi_gamma > 0.0)            LUT_exponent = 1.0 / sgi_gamma;    }#elif defined(Macintosh)    LUT_exponent = 1.8 / 2.61;    /*    if (some_mac_function_that_returns_gamma(&mac_gamma))        LUT_exponent = mac_gamma / 2.61;     */#else    LUT_exponent = 1.0;   /* assume no LUT:  most PCs */#endif    /* the defaults above give 1.0, 1.3, 1.5 and 2.2, respectively: */    default_display_exponent = LUT_exponent * CRT_exponent;    /* If the user has set the SCREEN_GAMMA environment variable as suggested     * (somewhat imprecisely) in the libpng documentation, use that; otherwise     * use the default value we just calculated.  Either way, the user may     * override this via a command-line option. */    if ((p = getenv("SCREEN_GAMMA")) != NULL) {        double exponent = atof(p);        if (exponent > 0.0)            default_gamma = 1.0 / exponent;    }    if (default_gamma == 0.0)        default_gamma = 1.0 / default_display_exponent;    /* Now parse the command line for options and the PNM filename. */    while (*++argv && !error) {        if (!strncmp(*argv, "-i", 2)) {            wpng_info.interlaced = TRUE;        } else if (!strncmp(*argv, "-time", 3)) {            wpng_info.modtime = time(NULL);            wpng_info.have_time = TRUE;        } else if (!strncmp(*argv, "-text", 3)) {            text = TRUE;        } else if (!strncmp(*argv, "-gamma", 2)) {            if (!*++argv)                ++error;            else {                wpng_info.gamma = atof(*argv);                if (wpng_info.gamma <= 0.0)                    ++error;                else if (wpng_info.gamma > 1.01)                    fprintf(stderr, PROGNAME                      " warning:  file gammas are usually less than 1.0\n");            }        } else if (!strncmp(*argv, "-bgcolor", 4)) {            if (!*++argv)                ++error;            else {                bgstr = *argv;                if (strlen(bgstr) != 7 || bgstr[0] != '#')                    ++error;                else {                    unsigned r, g, b;  /* this way quiets compiler warnings */                    sscanf(bgstr+1, "%2x%2x%2x", &r, &g, &b);                    wpng_info.bg_red   = (uch)r;                    wpng_info.bg_green = (uch)g;                    wpng_info.bg_blue  = (uch)b;                    wpng_info.have_bg = TRUE;                }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本sm残虐另类| 久久婷婷久久一区二区三区| 国产精品一区二区x88av| 日韩黄色片在线观看| 午夜久久久影院| 午夜av电影一区| 视频一区视频二区中文| 日韩在线一区二区三区| 日本视频一区二区三区| 美女视频一区在线观看| 久久精品国产在热久久| 国产不卡一区视频| 成人看片黄a免费看在线| 99热国产精品| 欧美性猛交xxxx黑人交| 欧美日韩在线三级| 日韩欧美精品三级| 久久蜜桃一区二区| 亚洲精品国产无天堂网2021| 亚洲国产精品久久人人爱蜜臀 | 久久精品亚洲乱码伦伦中文| 精品美女被调教视频大全网站| 久久精品欧美一区二区三区麻豆| 中文幕一区二区三区久久蜜桃| 国产精品每日更新| 亚洲国产裸拍裸体视频在线观看乱了| 日韩和欧美一区二区| 国产成人综合在线| 欧美午夜精品一区二区三区| 日韩美女主播在线视频一区二区三区 | 蜜桃精品视频在线| 国产99一区视频免费| 一本一道综合狠狠老| 欧美一级一区二区| 日韩伦理电影网| 麻豆免费精品视频| a4yy欧美一区二区三区| 欧美区视频在线观看| 久久久久久久电影| 午夜国产精品一区| 成人午夜视频免费看| 欧美日韩情趣电影| 国产精品国产三级国产有无不卡| 日韩影视精彩在线| 色综合欧美在线| 久久久亚洲午夜电影| 亚洲一区中文在线| 精品区一区二区| 一区二区成人在线| 国产盗摄女厕一区二区三区| 欧美日韩国产一级片| 国产精品久久久久久久岛一牛影视| 91蜜桃网址入口| 久久久亚洲综合| 美女精品一区二区| 欧美日韩精品电影| 欧美一区二区精品在线| 亚洲精品国产精华液| 成人午夜av电影| 欧美成人女星排行榜| 亚洲国产色一区| 色综合久久久久久久久| 亚洲欧洲国产日韩| 成人av动漫在线| 国产亚洲一本大道中文在线| 免费看日韩a级影片| 欧美三级午夜理伦三级中视频| 韩国av一区二区三区四区| 欧美三级中文字幕在线观看| 亚洲男人都懂的| 91蜜桃免费观看视频| 国产精品福利一区二区三区| 国产91在线看| 国产亚洲欧美日韩日本| 国产一区二区三区日韩| 亚洲精品一区二区三区香蕉 | 日韩欧美高清在线| 日韩在线一区二区| 91精品国产高清一区二区三区蜜臀| 一区二区三区精品| 在线观看亚洲a| 亚洲一区二区在线免费观看视频| 色女孩综合影院| 夜夜嗨av一区二区三区中文字幕 | 69av一区二区三区| 视频一区二区不卡| 欧美一卡二卡在线观看| 美女视频黄 久久| 久久天堂av综合合色蜜桃网| 国产成人精品免费网站| 国产精品嫩草影院av蜜臀| 成人精品小蝌蚪| 亚洲精品视频在线| 欧美日韩另类一区| 激情都市一区二区| 亚洲欧洲国产日韩| 欧美午夜电影网| 麻豆传媒一区二区三区| 国产欧美日韩综合精品一区二区| 成人h动漫精品| 亚洲v中文字幕| 2023国产精品自拍| 91社区在线播放| 日本欧美肥老太交大片| 久久久91精品国产一区二区精品| 成人18视频日本| 偷窥少妇高潮呻吟av久久免费| 精品少妇一区二区三区免费观看 | 在线一区二区视频| 秋霞午夜av一区二区三区| 国产欧美日本一区视频| 色欧美片视频在线观看在线视频| 麻豆91免费看| 欧美国产97人人爽人人喊| 欧美日韩综合在线| 福利一区在线观看| 日韩精品久久久久久| 国产精品毛片大码女人| 欧美一区在线视频| 日本久久一区二区三区| 精品一区二区三区视频在线观看| 国产精品电影一区二区| 精品国产电影一区二区| 91国产视频在线观看| 国产成人综合亚洲网站| 琪琪久久久久日韩精品| 亚洲欧美日韩人成在线播放| 久久久久一区二区三区四区| 欧美色成人综合| 成人的网站免费观看| 国产呦精品一区二区三区网站| 亚洲综合激情小说| 国产精品少妇自拍| ww久久中文字幕| 日韩一级高清毛片| 欧美日韩国产大片| 色综合一区二区| 国产精品亚洲成人| 亚洲一区二区精品视频| 中文字幕一区二| 日本一区二区在线不卡| 久久亚洲二区三区| 精品国产污污免费网站入口 | 国产蜜臀97一区二区三区| 精品粉嫩超白一线天av| 日韩午夜在线观看视频| 欧美三级视频在线| 欧美性猛交xxxxxx富婆| 欧美专区在线观看一区| 一本大道久久a久久综合| 99视频一区二区三区| 成人性生交大片免费看中文| 国产高清精品久久久久| 国产中文字幕一区| 国产精品一级黄| 国产精品乡下勾搭老头1| 国产精品中文有码| 国产精品中文有码| 成人高清视频在线观看| 风间由美一区二区av101| 懂色av中文字幕一区二区三区| 国产一区二区三区免费| 国产不卡视频在线播放| 成人午夜短视频| 97国产精品videossex| 色婷婷综合中文久久一本| 欧美影视一区二区三区| 欧美一区二区三区男人的天堂| 日韩一区二区三区在线观看| 日韩女优毛片在线| 26uuu欧美日本| 日本一区二区三区久久久久久久久不| 欧美国产成人精品| 一区二区三区欧美| 免费成人av资源网| 国产成人精品免费网站| 91蜜桃免费观看视频| 欧美挠脚心视频网站| 2024国产精品| 一区二区三区四区中文字幕| 日本中文字幕不卡| 国产成人亚洲综合色影视| 在线观看区一区二| 精品国产免费一区二区三区四区 | 国产精品国产三级国产三级人妇 | 久久色在线观看| 亚洲裸体xxx| 麻豆精品蜜桃视频网站| 高清国产一区二区| 69久久99精品久久久久婷婷| 国产欧美一区二区在线观看| 香蕉久久夜色精品国产使用方法 | 欧美自拍偷拍午夜视频| 精品乱人伦一区二区三区| 亚洲欧美另类图片小说| 韩国午夜理伦三级不卡影院| 91片在线免费观看| 久久综合av免费| 午夜激情一区二区| 成人激情av网|