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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? readppm.c

?? openmeetings組件之GS openmeetings組件之GS openmeetings組件之GS
?? C
字號(hào):
/*---------------------------------------------------------------------------   rpng - simple PNG display program                              readppm.c  ---------------------------------------------------------------------------   This is a special-purpose replacement for readpng.c that allows binary   PPM files to be used in place of PNG images.  ---------------------------------------------------------------------------      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  ---------------------------------------------------------------------------*/#include <stdio.h>#include <stdlib.h>#include "readpng.h"    /* typedefs, common macros, public prototypes */ulg  width, height;int  bit_depth, color_type, channels;uch  *image_data = NULL;FILE *saved_infile;void readpng_version_info(){    fprintf(stderr, "   Compiled without libpng, zlib or PBMPLUS/NetPBM.\n");}/* return value = 0 for success, 1 for bad sig, 2 for bad IHDR, 4 for no mem */int readpng_init(FILE *infile, ulg *pWidth, ulg *pHeight){    static uch ppmline[256];    int maxval;    saved_infile = infile;    fgets(ppmline, 256, infile);    if (ppmline[0] != 'P' || ppmline[1] != '6') {        fprintf(stderr, "ERROR:  not a PPM file\n");        return 1;    }    /* possible color types:  P5 = grayscale (0), P6 = RGB (2), P8 = RGBA (6) */    if (ppmline[1] == '6') {        color_type = 2;        channels = 3;    } else if (ppmline[1] == '8') {        color_type = 6;        channels = 4;    } else /* if (ppmline[1] == '5') */ {        color_type = 0;        channels = 1;    }    do {        fgets(ppmline, 256, infile);    } while (ppmline[0] == '#');    sscanf(ppmline, "%lu %lu", &width, &height);    do {        fgets(ppmline, 256, infile);    } while (ppmline[0] == '#');    sscanf(ppmline, "%d", &maxval);    if (maxval != 255) {        fprintf(stderr, "ERROR:  maxval = %d\n", maxval);        return 2;    }    bit_depth = 8;    *pWidth = width;    *pHeight = height;    return 0;}/* returns 0 if succeeds, 1 if fails due to no bKGD chunk, 2 if libpng error; * scales values to 8-bit if necessary */int readpng_get_bgcolor(uch *red, uch *green, uch *blue){    return 1;}/* display_exponent == LUT_exponent * CRT_exponent */uch *readpng_get_image(double display_exponent, int *pChannels, ulg *pRowbytes){    ulg  rowbytes;    /* expand palette images to RGB, low-bit-depth grayscale images to 8 bits,     * transparency chunks to full alpha channel; strip 16-bit-per-sample     * images to 8 bits per sample; and convert grayscale to RGB[A] */    /* GRR WARNING:  grayscale needs to be expanded and channels reset! */    *pRowbytes = rowbytes = channels*width;    *pChannels = channels;    if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) {        return NULL;    }    Trace((stderr, "readpng_get_image:  rowbytes = %ld, height = %ld\n", rowbytes, height));    /* now we can go ahead and just read the whole image */    fread(image_data, 1L, rowbytes*height, saved_infile);    return image_data;}void readpng_cleanup(int free_image_data){    if (free_image_data && image_data) {        free(image_data);        image_data = NULL;    }}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品1区2区3区在线观看| 中文字幕一区二区三区在线不卡| 亚洲va韩国va欧美va| 日本韩国一区二区三区| 亚洲免费资源在线播放| 91性感美女视频| 亚洲狠狠爱一区二区三区| 欧美日本在线观看| 久久精品免费看| 久久蜜桃一区二区| 97精品久久久久中文字幕| 一区二区在线电影| 欧美精品久久一区二区三区| 青娱乐精品在线视频| 国产调教视频一区| 91视频国产观看| 天天影视网天天综合色在线播放| 日韩午夜三级在线| 成人黄页毛片网站| 亚洲国产精品一区二区www| 日韩视频在线一区二区| 国产91富婆露脸刺激对白| 亚洲欧美一区二区三区国产精品| 欧美三级电影网| 久久精品国产澳门| 亚洲你懂的在线视频| 欧美一区二区在线视频| 丁香六月综合激情| 亚洲一区二区视频| 久久久高清一区二区三区| 91老师国产黑色丝袜在线| 日韩国产欧美在线视频| 中文字幕av一区二区三区免费看 | 一区二区日韩电影| 欧美一区日韩一区| 色综合久久中文综合久久牛| 日韩精品一二三四| 亚洲天堂网中文字| 欧美va在线播放| 色婷婷久久久综合中文字幕| 狠狠网亚洲精品| 亚洲一区二区三区影院| 欧美经典三级视频一区二区三区| 欧美午夜电影一区| 成人免费av网站| 久久99热狠狠色一区二区| 一区二区三区久久| 国产欧美中文在线| 欧美一区二区三区喷汁尤物| 91猫先生在线| 成人性生交大片免费看中文网站| 奇米精品一区二区三区四区 | 欧美高清在线一区二区| 日韩一区二区麻豆国产| 欧美日韩中字一区| 99视频国产精品| 国产99久久久国产精品免费看| 日本成人在线网站| 亚洲成人手机在线| 一区二区三区欧美亚洲| 中文字幕高清不卡| 久久精品一区四区| 欧美电影免费观看完整版| 欧美日韩综合在线免费观看| 91成人在线精品| www.av精品| av在线播放成人| 国产成人精品免费在线| 国模一区二区三区白浆| 精品中文字幕一区二区小辣椒| 亚洲成人你懂的| 亚洲超碰97人人做人人爱| 亚洲人成伊人成综合网小说| 国产精品久久久久久亚洲伦| 中文字幕日本乱码精品影院| 亚洲国产精品二十页| 国产片一区二区| 久久久五月婷婷| 久久综合资源网| 国产欧美中文在线| 国产精品麻豆视频| 中文字幕日韩av资源站| 亚洲欧美欧美一区二区三区| 玉足女爽爽91| 亚洲国产综合在线| 日韩国产精品91| 美国欧美日韩国产在线播放| 男人的天堂久久精品| 国产原创一区二区| 丁香激情综合国产| 在线亚洲高清视频| 欧美三级视频在线| 777久久久精品| 日韩欧美国产精品| 欧美激情自拍偷拍| 亚洲综合成人在线视频| 亚洲bdsm女犯bdsm网站| 久久精品国产免费| 成人网在线播放| 在线亚洲免费视频| 日韩精品一区二| 国产精品高潮呻吟| 亚洲午夜在线观看视频在线| 日韩av中文字幕一区二区| 国产综合色产在线精品| 99久久精品国产一区二区三区| 精品视频在线看| 久久精品欧美一区二区三区不卡| 国产精品妹子av| 日韩影院在线观看| 国产成人99久久亚洲综合精品| 在线精品视频一区二区三四| 欧美一区二区三区在线观看视频| 久久久久国产一区二区三区四区| 亚洲色图制服诱惑| 秋霞午夜av一区二区三区| 成人黄色av电影| 欧美日韩国产精品成人| 国产日韩精品一区二区三区在线| 亚洲女人****多毛耸耸8| 久久99精品久久久久婷婷| 成人a区在线观看| 欧美日韩国产电影| 国产精品美女视频| 美腿丝袜亚洲三区| 91啦中文在线观看| 久久精品亚洲国产奇米99| 亚洲3atv精品一区二区三区| 丁香亚洲综合激情啪啪综合| 在线播放/欧美激情| 中文av一区特黄| 久久国产精品99久久久久久老狼| 91在线观看一区二区| 精品美女一区二区三区| 一区二区三区资源| 色综合天天综合网天天狠天天| 欧美一三区三区四区免费在线看| 亚洲精品精品亚洲| 国产很黄免费观看久久| 欧美日韩精品免费| 一区二区免费看| 国产suv精品一区二区三区| 日韩一区二区三区在线观看| 亚洲精品成a人| 波多野结衣亚洲一区| 久久久久久久久蜜桃| 日本不卡一区二区三区| 欧美专区亚洲专区| 中文字幕中文字幕一区二区| 国产一区二区在线观看免费| 日韩一级片网址| 亚洲影视在线播放| 91色九色蝌蚪| 国产精品另类一区| 成人午夜激情影院| 中文字幕不卡一区| 国产91在线观看丝袜| 久久网这里都是精品| 国产老肥熟一区二区三区| 日韩欧美在线一区二区三区| 三级不卡在线观看| 51午夜精品国产| 丝袜a∨在线一区二区三区不卡| 91黄色小视频| 一区二区三区色| 欧美在线三级电影| 亚洲高清三级视频| 欧美人成免费网站| 日日摸夜夜添夜夜添亚洲女人| 欧美在线小视频| 亚洲一区二区三区四区在线观看 | 国产欧美日韩在线观看| 国产一区二区三区高清播放| 久久无码av三级| 国产精品一区二区x88av| 国产欧美日韩另类视频免费观看| 国产成人一区二区精品非洲| 国产欧美1区2区3区| 风间由美性色一区二区三区| 久久精品水蜜桃av综合天堂| 成人avav影音| 亚洲夂夂婷婷色拍ww47| 欧美麻豆精品久久久久久| 日本午夜精品一区二区三区电影| 日韩一区二区三区免费看| 狠狠色综合播放一区二区| 国产亚洲1区2区3区| 北岛玲一区二区三区四区| 亚洲一级片在线观看| 欧美精品国产精品| 人禽交欧美网站| 中文字幕av资源一区| 一本色道亚洲精品aⅴ| 日韩1区2区3区| 国产三级一区二区三区| 一本大道av一区二区在线播放| 亚洲一区二区三区影院| 久久这里只有精品视频网| av动漫一区二区| 欧美a一区二区|