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

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

?? readpng2.c

?? openmeetings組件之GS openmeetings組件之GS openmeetings組件之GS
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*---------------------------------------------------------------------------   rpng2 - progressive-model PNG display program                 readpng2.c  ---------------------------------------------------------------------------      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 <stdlib.h>     /* for exit() prototype */#include "png.h"        /* libpng header; includes zlib.h and setjmp.h */#include "readpng2.h"   /* typedefs, common macros, public prototypes *//* local prototypes */static void readpng2_info_callback(png_structp png_ptr, png_infop info_ptr);static void readpng2_row_callback(png_structp png_ptr, png_bytep new_row,                                 png_uint_32 row_num, int pass);static void readpng2_end_callback(png_structp png_ptr, png_infop info_ptr);static void readpng2_error_handler(png_structp png_ptr, png_const_charp msg);void readpng2_version_info(void){#if defined(PNG_ASSEMBLER_CODE_SUPPORTED) && \    (defined(__i386__) || defined(_M_IX86) || defined(__x86_64__)) && \    defined(PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 10200)    /*     * WARNING:  This preprocessor approach means that the following code     *           cannot be used with a libpng DLL older than 1.2.0--the     *           compiled-in symbols for the new functions will not exist.     *           (Could use dlopen() and dlsym() on Unix and corresponding     *           calls for Windows, but not portable...)     */    {        int mmxsupport = png_mmx_support();        if (mmxsupport < 0)            fprintf(stderr, "   Compiled with libpng %s; using libpng %s "              "without MMX support.\n", PNG_LIBPNG_VER_STRING, png_libpng_ver);        else {            int compilerID;            png_uint_32 mmx_mask = png_get_mmx_flagmask(              PNG_SELECT_READ | PNG_SELECT_WRITE, &compilerID);            fprintf(stderr, "   Compiled with libpng %s; using libpng %s "              "with MMX support\n   (%s version).", PNG_LIBPNG_VER_STRING,              png_libpng_ver, compilerID == 1? "MSVC++" :              (compilerID == 2? "GNU C" : "unknown"));            fprintf(stderr, "  Processor (x86%s) %s MMX instructions.\n",#if defined(__x86_64__)              "_64",#else              "",#endif              mmxsupport? "supports" : "does not support");            if (mmxsupport > 0) {                int num_optims = 0;                fprintf(stderr,                  "      Potential MMX optimizations supported by libpng:\n");                if (mmx_mask & PNG_ASM_FLAG_MMX_READ_FILTER_SUB)                    ++num_optims;                if (mmx_mask & PNG_ASM_FLAG_MMX_READ_FILTER_UP)                    ++num_optims;                if (mmx_mask & PNG_ASM_FLAG_MMX_READ_FILTER_AVG)                    ++num_optims;                if (mmx_mask & PNG_ASM_FLAG_MMX_READ_FILTER_PAETH)                    ++num_optims;                if (num_optims)                    fprintf(stderr,                      "         decoding %s row filters (reading)\n",                      (num_optims == 4)? "all non-trivial" : "some");                if (mmx_mask & PNG_ASM_FLAG_MMX_READ_COMBINE_ROW) {                    fprintf(stderr, "         combining rows (reading)\n");                    ++num_optims;                }                if (mmx_mask & PNG_ASM_FLAG_MMX_READ_INTERLACE) {                    fprintf(stderr,                      "         expanding interlacing (reading)\n");                    ++num_optims;                }                mmx_mask &= ~( PNG_ASM_FLAG_MMX_READ_COMBINE_ROW  \                             | PNG_ASM_FLAG_MMX_READ_INTERLACE    \                             | PNG_ASM_FLAG_MMX_READ_FILTER_SUB   \                             | PNG_ASM_FLAG_MMX_READ_FILTER_UP    \                             | PNG_ASM_FLAG_MMX_READ_FILTER_AVG   \                             | PNG_ASM_FLAG_MMX_READ_FILTER_PAETH );                if (mmx_mask) {                    fprintf(stderr, "         other (unknown)\n");                    ++num_optims;                }                if (num_optims == 0)                    fprintf(stderr, "         (none)\n");            }        }    }#else    fprintf(stderr, "   Compiled with libpng %s; using libpng %s "      "without MMX support.\n", PNG_LIBPNG_VER_STRING, png_libpng_ver);#endif    fprintf(stderr, "   Compiled with zlib %s; using zlib %s.\n",      ZLIB_VERSION, zlib_version);}int readpng2_check_sig(uch *sig, int num){    return png_check_sig(sig, num);}/* returns 0 for success, 2 for libpng problem, 4 for out of memory */int readpng2_init(mainprog_info *mainprog_ptr){    png_structp  png_ptr;       /* note:  temporary variables! */    png_infop  info_ptr;    /* could also replace libpng warning-handler (final NULL), but no need: */    png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, mainprog_ptr,      readpng2_error_handler, NULL);    if (!png_ptr)        return 4;   /* out of memory */    info_ptr = png_create_info_struct(png_ptr);    if (!info_ptr) {        png_destroy_read_struct(&png_ptr, NULL, NULL);        return 4;   /* out of memory */    }    /* we could create a second info struct here (end_info), but it's only     * useful if we want to keep pre- and post-IDAT chunk info separated     * (mainly for PNG-aware image editors and converters) */    /* setjmp() must be called in every function that calls a PNG-reading     * libpng function, unless an alternate error handler was installed--     * but compatible error handlers must either use longjmp() themselves     * (as in this program) or exit immediately, so here we are: */    if (setjmp(mainprog_ptr->jmpbuf)) {        png_destroy_read_struct(&png_ptr, &info_ptr, NULL);        return 2;    }#ifdef PNG_UNKNOWN_CHUNKS_SUPPORTED    /* prepare the reader to ignore all recognized chunks whose data won't be     * used, i.e., all chunks recognized by libpng except for IHDR, PLTE, IDAT,     * IEND, tRNS, bKGD, gAMA, and sRGB (small performance improvement) */    {        /* These byte strings were copied from png.h.  If a future libpng         * version recognizes more chunks, add them to this list.  If a         * future version of readpng2.c recognizes more chunks, delete them         * from this list. */        static const png_byte chunks_to_ignore[] = {             99,  72,  82,  77, '\0',  /* cHRM */            104,  73,  83,  84, '\0',  /* hIST */            105,  67,  67,  80, '\0',  /* iCCP */            105,  84,  88, 116, '\0',  /* iTXt */            111,  70,  70, 115, '\0',  /* oFFs */            112,  67,  65,  76, '\0',  /* pCAL */            112,  72,  89, 115, '\0',  /* pHYs */            115,  66,  73,  84, '\0',  /* sBIT */            115,  67,  65,  76, '\0',  /* sCAL */            115,  80,  76,  84, '\0',  /* sPLT */            115,  84,  69,  82, '\0',  /* sTER */            116,  69,  88, 116, '\0',  /* tEXt */            116,  73,  77,  69, '\0',  /* tIME */            122,  84,  88, 116, '\0'   /* zTXt */        };        png_set_keep_unknown_chunks(png_ptr, 1 /* PNG_HANDLE_CHUNK_NEVER */,          chunks_to_ignore, sizeof(chunks_to_ignore)/5);    }#endif /* PNG_UNKNOWN_CHUNKS_SUPPORTED */    /* instead of doing png_init_io() here, now we set up our callback     * functions for progressive decoding */    png_set_progressive_read_fn(png_ptr, mainprog_ptr,      readpng2_info_callback, readpng2_row_callback, readpng2_end_callback);    /*     * may as well enable or disable MMX routines here, if supported;     *     * to enable all:  mask = png_get_mmx_flagmask (     *                   PNG_SELECT_READ | PNG_SELECT_WRITE, &compilerID);     *                 flags = png_get_asm_flags (png_ptr);     *                 flags |= mask;     *                 png_set_asm_flags (png_ptr, flags);     *     * to disable all:  mask = png_get_mmx_flagmask (     *                   PNG_SELECT_READ | PNG_SELECT_WRITE, &compilerID);     *                  flags = png_get_asm_flags (png_ptr);     *                  flags &= ~mask;     *                  png_set_asm_flags (png_ptr, flags);     */#if (defined(__i386__) || defined(_M_IX86) || defined(__x86_64__)) && \    defined(PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 10200)    /*     * WARNING:  This preprocessor approach means that the following code     *           cannot be used with a libpng DLL older than 1.2.0--the     *           compiled-in symbols for the new functions will not exist.     *           (Could use dlopen() and dlsym() on Unix and corresponding     *           calls for Windows, but not portable...)     */    {#ifdef PNG_ASSEMBLER_CODE_SUPPORTED        png_uint_32 mmx_disable_mask = 0;        png_uint_32 asm_flags, mmx_mask;        int compilerID;        if (mainprog_ptr->nommxfilters)            mmx_disable_mask |= ( PNG_ASM_FLAG_MMX_READ_FILTER_SUB   \                                | PNG_ASM_FLAG_MMX_READ_FILTER_UP    \                                | PNG_ASM_FLAG_MMX_READ_FILTER_AVG   \                                | PNG_ASM_FLAG_MMX_READ_FILTER_PAETH );        if (mainprog_ptr->nommxcombine)            mmx_disable_mask |= PNG_ASM_FLAG_MMX_READ_COMBINE_ROW;        if (mainprog_ptr->nommxinterlace)            mmx_disable_mask |= PNG_ASM_FLAG_MMX_READ_INTERLACE;        asm_flags = png_get_asm_flags(png_ptr);        png_set_asm_flags(png_ptr, asm_flags & ~mmx_disable_mask);        /* Now query libpng's asm settings, just for yuks.  Note that this         * differs from the querying of its *potential* MMX capabilities         * in readpng2_version_info(); this is true runtime verification. */        asm_flags = png_get_asm_flags(png_ptr);        mmx_mask = png_get_mmx_flagmask(PNG_SELECT_READ | PNG_SELECT_WRITE,          &compilerID);        if (asm_flags & PNG_ASM_FLAG_MMX_SUPPORT_COMPILED)            fprintf(stderr,              "  MMX support (%s version) is compiled into libpng\n",              compilerID == 1? "MSVC++" :              (compilerID == 2? "GNU C" : "unknown"));        else            fprintf(stderr, "  MMX support is not compiled into libpng\n");        fprintf(stderr, "  MMX instructions are %ssupported by CPU\n",          (asm_flags & PNG_ASM_FLAG_MMX_SUPPORT_IN_CPU)? "" : "not ");        fprintf(stderr, "  MMX read support for combining rows is %sabled\n",          (asm_flags & PNG_ASM_FLAG_MMX_READ_COMBINE_ROW)? "en" : "dis");        fprintf(stderr,          "  MMX read support for expanding interlacing is %sabled\n",          (asm_flags & PNG_ASM_FLAG_MMX_READ_INTERLACE)? "en" : "dis");        fprintf(stderr, "  MMX read support for \"sub\" filter is %sabled\n",          (asm_flags & PNG_ASM_FLAG_MMX_READ_FILTER_SUB)? "en" : "dis");        fprintf(stderr, "  MMX read support for \"up\" filter is %sabled\n",          (asm_flags & PNG_ASM_FLAG_MMX_READ_FILTER_UP)? "en" : "dis");        fprintf(stderr, "  MMX read support for \"avg\" filter is %sabled\n",          (asm_flags & PNG_ASM_FLAG_MMX_READ_FILTER_AVG)? "en" : "dis");        fprintf(stderr, "  MMX read support for \"Paeth\" filter is %sabled\n",          (asm_flags & PNG_ASM_FLAG_MMX_READ_FILTER_PAETH)? "en" : "dis");        asm_flags &= (mmx_mask & ~( PNG_ASM_FLAG_MMX_READ_COMBINE_ROW  \                                  | PNG_ASM_FLAG_MMX_READ_INTERLACE    \                                  | PNG_ASM_FLAG_MMX_READ_FILTER_SUB   \                                  | PNG_ASM_FLAG_MMX_READ_FILTER_UP    \                                  | PNG_ASM_FLAG_MMX_READ_FILTER_AVG   \                                  | PNG_ASM_FLAG_MMX_READ_FILTER_PAETH ));

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区在线观看免费 | 91久久精品一区二区| 亚洲国产高清不卡| 成人国产在线观看| 亚洲色图在线看| 精品视频在线免费| 日本成人超碰在线观看| 精品国产123| caoporen国产精品视频| 亚洲免费视频成人| 7777精品伊人久久久大香线蕉超级流畅 | 午夜亚洲国产au精品一区二区| 欧美美女激情18p| 久久成人av少妇免费| 国产亚洲欧洲997久久综合| 不卡一区中文字幕| 一区二区三区在线视频免费观看| 91福利精品视频| 奇米精品一区二区三区在线观看| 久久久不卡网国产精品二区| aaa欧美日韩| 日产欧产美韩系列久久99| 久久精品亚洲麻豆av一区二区| 色又黄又爽网站www久久| 日韩av在线播放中文字幕| 久久精品人人做人人综合| 91亚洲午夜精品久久久久久| 日韩高清在线一区| 欧美激情一区不卡| 欧美视频一二三区| 韩国三级电影一区二区| 《视频一区视频二区| 欧美一级淫片007| 成a人片亚洲日本久久| 天天影视网天天综合色在线播放| 久久久久99精品一区| 欧美性色综合网| 国产一区二区三区电影在线观看| 亚洲免费av高清| 亚洲精品在线观看视频| 色综合久久久久网| 久热成人在线视频| 亚洲丝袜自拍清纯另类| 欧美日韩精品是欧美日韩精品| 国产精品1区2区3区在线观看| 亚洲综合在线观看视频| 欧美精品一区二区三区很污很色的 | 91麻豆国产在线观看| 久久av资源网| 亚洲综合色噜噜狠狠| 久久夜色精品国产噜噜av | 2020国产成人综合网| 色综合久久88色综合天天免费| 久久99精品久久久久久久久久久久 | 中文欧美字幕免费| 日韩一区二区三区免费观看| 97se亚洲国产综合在线| 激情文学综合插| 午夜精品一区二区三区免费视频| 中文乱码免费一区二区 | 日韩免费视频线观看| 色婷婷综合久色| 丰满放荡岳乱妇91ww| 日本sm残虐另类| 亚洲自拍偷拍网站| 国产精品久久久久影院亚瑟| 欧美电影免费观看完整版| 欧美午夜不卡在线观看免费| www.日韩av| 韩国女主播一区| 日韩在线卡一卡二| 亚洲伦理在线免费看| 国产三级三级三级精品8ⅰ区| 欧美一区二区视频在线观看2022| 91国偷自产一区二区三区观看| 成人蜜臀av电影| 国产又黄又大久久| 美女视频网站黄色亚洲| 亚洲成人免费在线| 依依成人综合视频| 亚洲免费资源在线播放| 国产精品久久夜| 欧美激情一区二区三区四区| 欧美不卡激情三级在线观看| 欧美丰满美乳xxx高潮www| 欧美亚洲尤物久久| 99久久综合国产精品| 国产不卡视频一区| 国产福利91精品一区| 精品一区二区影视| 蜜臀av一区二区在线观看| 丝袜脚交一区二区| 亚洲高清在线精品| 亚洲国产日韩a在线播放性色| 亚洲黄色录像片| 亚洲欧美日韩系列| 亚洲欧美一区二区三区孕妇| 国产精品高潮呻吟| 中文av字幕一区| 国产精品福利影院| 国产精品久久久久永久免费观看 | 欧美精品 日韩| 欧美日韩精品系列| 亚洲视频每日更新| 国产精品蜜臀在线观看| 国产精品色呦呦| 国产精品久久毛片a| 国产精品传媒视频| 日韩毛片精品高清免费| 亚洲精品乱码久久久久久| 亚洲精品综合在线| 亚洲黄一区二区三区| 亚洲午夜私人影院| 五月婷婷另类国产| 美女www一区二区| 美国毛片一区二区| 国内精品久久久久影院一蜜桃| 国产精品中文字幕日韩精品| 国产大陆a不卡| 99精品欧美一区二区三区小说| 色综合中文综合网| 福利一区二区在线| 波多野结衣视频一区| 99久久伊人精品| 91美女视频网站| 欧美日韩精品综合在线| 欧美一区二区三区视频| 26uuu国产一区二区三区| 久久久91精品国产一区二区精品 | 9i在线看片成人免费| 91美女在线看| 欧美群妇大交群中文字幕| 日韩一区二区免费在线电影 | 国产精品久久久久久久久快鸭 | 亚洲精品视频自拍| 亚洲成在线观看| 看国产成人h片视频| 国产伦精一区二区三区| av中文字幕一区| 欧美日韩三级在线| 欧美xxx久久| 中文字幕中文字幕一区| 一区二区三区国产精品| 美日韩一区二区| 国产99久久久国产精品潘金网站| 色婷婷久久综合| 欧美刺激午夜性久久久久久久 | 亚洲日本在线天堂| 午夜视频久久久久久| 国产一区91精品张津瑜| 91日韩精品一区| 这里只有精品99re| 国产精品欧美一级免费| 亚洲一区二区四区蜜桃| 激情综合色综合久久| 97久久精品人人做人人爽50路| 欧美精品 日韩| 久久久影视传媒| 亚洲一区在线看| 国产精品一区二区无线| 在线一区二区三区四区五区| 精品人在线二区三区| 亚洲婷婷国产精品电影人久久| 视频一区欧美日韩| 久久久无码精品亚洲日韩按摩| 一区在线观看视频| 蜜芽一区二区三区| av色综合久久天堂av综合| 欧美一区二区日韩一区二区| 中文字幕中文字幕一区| 六月婷婷色综合| 日本精品一区二区三区高清 | 亚洲精品视频在线观看免费| 黑人精品欧美一区二区蜜桃| 色婷婷综合五月| 久久精品一区蜜桃臀影院| 午夜精品一区二区三区免费视频| 成人开心网精品视频| 91精品国产麻豆国产自产在线 | 亚洲一区二区在线观看视频| 国产呦萝稀缺另类资源| 欧美日韩一卡二卡| 国产精品欧美一区喷水| 久久综合综合久久综合| 在线看国产日韩| 国产精品少妇自拍| 久久电影网电视剧免费观看| 欧美制服丝袜第一页| 国产精品国产三级国产有无不卡| 免费视频最近日韩| 在线精品视频一区二区三四| 国产亚洲污的网站| 麻豆精品在线播放| 在线精品视频一区二区三四| 国产精品视频你懂的| 激情综合亚洲精品| 欧美电影在哪看比较好| 亚洲老妇xxxxxx| 99热国产精品| 中文一区二区在线观看|