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

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

?? jas_stream.h

?? This code demonstrate Fast Wavelet Transform. Executable and can be run on Visual C++ platform
?? H
字號:
/* * Copyright (c) 1999-2000 Image Power, Inc. and the University of *   British Columbia. * Copyright (c) 2001-2003 Michael David Adams. * All rights reserved. *//* __START_OF_JASPER_LICENSE__ *  * JasPer License Version 2.0 *  * Copyright (c) 1999-2000 Image Power, Inc. * Copyright (c) 1999-2000 The University of British Columbia * Copyright (c) 2001-2003 Michael David Adams *  * All rights reserved. *  * Permission is hereby granted, free of charge, to any person (the * "User") obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge, * publish, distribute, and/or sell copies of the Software, and to permit * persons to whom the Software is furnished to do so, subject to the * following conditions: *  * 1.  The above copyright notices and this permission notice (which * includes the disclaimer below) shall be included in all copies or * substantial portions of the Software. *  * 2.  The name of a copyright holder shall not be used to endorse or * promote products derived from the Software without specific prior * written permission. *  * THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS * LICENSE.  NO USE OF THE SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER * THIS DISCLAIMER.  THE SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS * "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.  IN NO * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.  NO ASSURANCES ARE * PROVIDED BY THE COPYRIGHT HOLDERS THAT THE SOFTWARE DOES NOT INFRINGE * THE PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OF ANY OTHER ENTITY. * EACH COPYRIGHT HOLDER DISCLAIMS ANY LIABILITY TO THE USER FOR CLAIMS * BROUGHT BY ANY OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL * PROPERTY RIGHTS OR OTHERWISE.  AS A CONDITION TO EXERCISING THE RIGHTS * GRANTED HEREUNDER, EACH USER HEREBY ASSUMES SOLE RESPONSIBILITY TO SECURE * ANY OTHER INTELLECTUAL PROPERTY RIGHTS NEEDED, IF ANY.  THE SOFTWARE * IS NOT FAULT-TOLERANT AND IS NOT INTENDED FOR USE IN MISSION-CRITICAL * SYSTEMS, SUCH AS THOSE USED IN THE OPERATION OF NUCLEAR FACILITIES, * AIRCRAFT NAVIGATION OR COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL * SYSTEMS, DIRECT LIFE SUPPORT MACHINES, OR WEAPONS SYSTEMS, IN WHICH * THE FAILURE OF THE SOFTWARE OR SYSTEM COULD LEAD DIRECTLY TO DEATH, * PERSONAL INJURY, OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE ("HIGH * RISK ACTIVITIES").  THE COPYRIGHT HOLDERS SPECIFICALLY DISCLAIM ANY * EXPRESS OR IMPLIED WARRANTY OF FITNESS FOR HIGH RISK ACTIVITIES. *  * __END_OF_JASPER_LICENSE__ *//* * I/O Stream Class * * $Id$ */#ifndef JAS_STREAM_H#define JAS_STREAM_H/******************************************************************************\* Includes.\******************************************************************************/#include <jasper/jas_config.h>#include <stdio.h>#if defined(HAVE_FCNTL_H)#include <fcntl.h>#endif#include <string.h>#if defined(HAVE_UNISTD_H)#include <unistd.h>#endif#include <jasper/jas_types.h>#ifdef __cplusplusextern "C" {#endif/******************************************************************************\* Constants.\******************************************************************************//* On most UNIX systems, we probably need to define O_BINARY ourselves. */#ifndef O_BINARY#define O_BINARY	0#endif/* * Stream open flags. *//* The stream was opened for reading. */#define JAS_STREAM_READ	0x0001/* The stream was opened for writing. */#define JAS_STREAM_WRITE	0x0002/* The stream was opened for appending. */#define JAS_STREAM_APPEND	0x0004/* The stream was opened in binary mode. */#define JAS_STREAM_BINARY	0x0008/* The stream should be created/truncated. */#define JAS_STREAM_CREATE	0x0010/* * Stream buffering flags. *//* The stream is unbuffered. */#define JAS_STREAM_UNBUF	0x0000/* The stream is line buffered. */#define JAS_STREAM_LINEBUF	0x0001/* The stream is fully buffered. */#define JAS_STREAM_FULLBUF	0x0002/* The buffering mode mask. */#define	JAS_STREAM_BUFMODEMASK	0x000f/* The memory associated with the buffer needs to be deallocated when the  stream is destroyed. */#define JAS_STREAM_FREEBUF	0x0008/* The buffer is currently being used for reading. */#define JAS_STREAM_RDBUF	0x0010/* The buffer is currently being used for writing. */#define JAS_STREAM_WRBUF	0x0020/* * Stream error flags. *//* The end-of-file has been encountered (on reading). */#define JAS_STREAM_EOF	0x0001/* An I/O error has been encountered on the stream. */#define JAS_STREAM_ERR	0x0002/* The read/write limit has been exceeded. */#define	JAS_STREAM_RWLIMIT	0x0004/* The error mask. */#define JAS_STREAM_ERRMASK \	(JAS_STREAM_EOF | JAS_STREAM_ERR | JAS_STREAM_RWLIMIT)/* * Other miscellaneous constants. *//* The default buffer size (for fully-buffered operation). */#define JAS_STREAM_BUFSIZE	8192/* The default permission mask for file creation. */#define JAS_STREAM_PERMS	0666/* The maximum number of characters that can always be put back on a stream. */#define	JAS_STREAM_MAXPUTBACK	16/******************************************************************************\* Types.\******************************************************************************//* * Generic file object. */typedef void jas_stream_obj_t;/* * Generic file object operations. */typedef struct {	/* Read characters from a file object. */	int (*read_)(jas_stream_obj_t *obj, char *buf, int cnt);	/* Write characters to a file object. */	int (*write_)(jas_stream_obj_t *obj, char *buf, int cnt);	/* Set the position for a file object. */	long (*seek_)(jas_stream_obj_t *obj, long offset, int origin);	/* Close a file object. */	int (*close_)(jas_stream_obj_t *obj);} jas_stream_ops_t;/* * Stream object. */typedef struct {	/* The mode in which the stream was opened. */	int openmode_;	/* The buffering mode. */	int bufmode_;	/* The stream status. */	int flags_;	/* The start of the buffer area to use for reading/writing. */	uchar *bufbase_;	/* The start of the buffer area excluding the extra initial space for	  character putback. */	uchar *bufstart_;	/* The buffer size. */	int bufsize_;	/* The current position in the buffer. */	uchar *ptr_;	/* The number of characters that must be read/written before	the buffer needs to be filled/flushed. */	int cnt_;	/* A trivial buffer to be used for unbuffered operation. */	uchar tinybuf_[JAS_STREAM_MAXPUTBACK + 1];	/* The operations for the underlying stream file object. */	jas_stream_ops_t *ops_;	/* The underlying stream file object. */	jas_stream_obj_t *obj_;	/* The number of characters read/written. */	long rwcnt_;	/* The maximum number of characters that may be read/written. */	long rwlimit_;} jas_stream_t;/* * Regular file object. *//* * File descriptor file object. */typedef struct {	int fd;	int flags;	char pathname[L_tmpnam + 1];} jas_stream_fileobj_t;#define	JAS_STREAM_FILEOBJ_DELONCLOSE	0x01#define JAS_STREAM_FILEOBJ_NOCLOSE	0x02/* * Memory file object. */typedef struct {	/* The data associated with this file. */	uchar *buf_;	/* The allocated size of the buffer for holding file data. */	int bufsize_;	/* The length of the file. */	int_fast32_t len_;	/* The seek position. */	int_fast32_t pos_;	/* Is the buffer growable? */	int growable_;	/* Was the buffer allocated internally? */	int myalloc_;} jas_stream_memobj_t;/******************************************************************************\* Macros/functions for opening and closing streams.\******************************************************************************//* Open a file as a stream. */jas_stream_t *jas_stream_fopen(const char *filename, const char *mode);/* Open a memory buffer as a stream. */jas_stream_t *jas_stream_memopen(char *buf, int bufsize);/* Open a file descriptor as a stream. */jas_stream_t *jas_stream_fdopen(int fd, const char *mode);/* Open a stdio stream as a stream. */jas_stream_t *jas_stream_reopen(const char *path, const char *mode, FILE *fp);/* Open a temporary file as a stream. */jas_stream_t *jas_stream_tmpfile(void);/* Close a stream. */int jas_stream_close(jas_stream_t *stream);/******************************************************************************\* Macros/functions for getting/setting the stream state.\******************************************************************************//* Get the EOF indicator for a stream. */#define jas_stream_eof(stream) \	(((stream)->flags_ & JAS_STREAM_EOF) != 0)/* Get the error indicator for a stream. */#define jas_stream_error(stream) \	(((stream)->flags_ & JAS_STREAM_ERR) != 0)/* Clear the error indicator for a stream. */#define jas_stream_clearerr(stream) \	((stream)->flags_ &= ~(JAS_STREAM_ERR | JAS_STREAM_EOF))/* Get the read/write limit for a stream. */#define	jas_stream_getrwlimit(stream) \	(((const jas_stream_t *)(stream))->rwlimit_)/* Set the read/write limit for a stream. */int jas_stream_setrwlimit(jas_stream_t *stream, long rwlimit);/* Get the read/write count for a stream. */#define	jas_stream_getrwcount(stream) \	(((const jas_stream_t *)(stream))->rwcnt_)/* Set the read/write count for a stream. */long jas_stream_setrwcount(jas_stream_t *stream, long rwcnt);/******************************************************************************\* Macros/functions for I/O.\******************************************************************************//* Read a character from a stream. */#if defined(DEBUG)#define	jas_stream_getc(stream)	jas_stream_getc_func(stream)#else#define jas_stream_getc(stream)	jas_stream_getc_macro(stream)#endif/* Write a character to a stream. */#if defined(DEBUG)#define jas_stream_putc(stream, c)	jas_stream_putc_func(stream, c)#else#define jas_stream_putc(stream, c)	jas_stream_putc_macro(stream, c)#endif/* Read characters from a stream into a buffer. */int jas_stream_read(jas_stream_t *stream, void *buf, int cnt);/* Write characters from a buffer to a stream. */int jas_stream_write(jas_stream_t *stream, const void *buf, int cnt);/* Write formatted output to a stream. */int jas_stream_printf(jas_stream_t *stream, const char *fmt, ...);/* Write a string to a stream. */int jas_stream_puts(jas_stream_t *stream, const char *s);/* Read a line of input from a stream. */char *jas_stream_gets(jas_stream_t *stream, char *buf, int bufsize);/* Look at the next character to be read from a stream without actually  removing it from the stream. */#define	jas_stream_peekc(stream) \	(((stream)->cnt_ <= 0) ? jas_stream_fillbuf(stream, 0) : \	  ((int)(*(stream)->ptr_)))/* Put a character back on a stream. */int jas_stream_ungetc(jas_stream_t *stream, int c);/******************************************************************************\* Macros/functions for getting/setting the stream position.\******************************************************************************//* Is it possible to seek on this stream? */int jas_stream_isseekable(jas_stream_t *stream);/* Set the current position within the stream. */long jas_stream_seek(jas_stream_t *stream, long offset, int origin);/* Get the current position within the stream. */long jas_stream_tell(jas_stream_t *stream);/* Seek to the beginning of a stream. */int jas_stream_rewind(jas_stream_t *stream);/******************************************************************************\* Macros/functions for flushing.\******************************************************************************//* Flush any pending output to a stream. */int jas_stream_flush(jas_stream_t *stream);/******************************************************************************\* Miscellaneous macros/functions.\******************************************************************************//* Copy data from one stream to another. */int jas_stream_copy(jas_stream_t *dst, jas_stream_t *src, int n);/* Display stream contents (for debugging purposes). */int jas_stream_display(jas_stream_t *stream, FILE *fp, int n);/* Consume (i.e., discard) characters from stream. */int jas_stream_gobble(jas_stream_t *stream, int n);/* Write a character multiple times to a stream. */int jas_stream_pad(jas_stream_t *stream, int n, int c);/* Get the size of the file associated with the specified stream.  The specified stream must be seekable. */long jas_stream_length(jas_stream_t *stream);/******************************************************************************\* Internal functions.\******************************************************************************//* The following functions are for internal use only!  If you call themdirectly, you will die a horrible, miserable, and painful death! *//* Read a character from a stream. */#define jas_stream_getc_macro(stream) \	((!((stream)->flags_ & (JAS_STREAM_ERR | JAS_STREAM_EOF | \	  JAS_STREAM_RWLIMIT))) ? \	  (((stream)->rwlimit_ >= 0 && (stream)->rwcnt_ >= (stream)->rwlimit_) ? \	  (stream->flags_ |= JAS_STREAM_RWLIMIT, EOF) : \	  jas_stream_getc2(stream)) : EOF)#define jas_stream_getc2(stream) \	((--(stream)->cnt_ < 0) ? jas_stream_fillbuf(stream, 1) : \	  (++(stream)->rwcnt_, (int)(*(stream)->ptr_++)))/* Write a character to a stream. */#define jas_stream_putc_macro(stream, c) \	((!((stream)->flags_ & (JAS_STREAM_ERR | JAS_STREAM_EOF | \	  JAS_STREAM_RWLIMIT))) ? \	  (((stream)->rwlimit_ >= 0 && (stream)->rwcnt_ >= (stream)->rwlimit_) ? \	  (stream->flags_ |= JAS_STREAM_RWLIMIT, EOF) : \	  jas_stream_putc2(stream, c)) : EOF)#define jas_stream_putc2(stream, c) \	(((stream)->bufmode_ |= JAS_STREAM_WRBUF, --(stream)->cnt_ < 0) ? \	  jas_stream_flushbuf((stream), (uchar)(c)) : \	  (++(stream)->rwcnt_, (int)(*(stream)->ptr_++ = (c))))/* These prototypes need to be here for the sake of the stream_getc andstream_putc macros. */int jas_stream_fillbuf(jas_stream_t *stream, int getflag);int jas_stream_flushbuf(jas_stream_t *stream, int c);int jas_stream_getc_func(jas_stream_t *stream);int jas_stream_putc_func(jas_stream_t *stream, int c);#ifdef __cplusplus}#endif#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产毛片aaaaa无费看 | 成人免费视频视频| 亚洲制服丝袜av| 国产日韩欧美亚洲| 欧美挠脚心视频网站| av激情亚洲男人天堂| 青青草成人在线观看| 亚洲人xxxx| 久久嫩草精品久久久精品一| 欧美二区乱c少妇| 91美女视频网站| 国产成人精品1024| 精品一区精品二区高清| 日本成人在线网站| 亚洲午夜久久久久| 一区在线中文字幕| 国产午夜亚洲精品羞羞网站| 欧美本精品男人aⅴ天堂| 欧美网站大全在线观看| 色综合亚洲欧洲| 成人网在线播放| 国产不卡在线播放| 国产精品一区一区三区| 韩日精品视频一区| 免费观看30秒视频久久| 三级在线观看一区二区| 亚洲第一久久影院| 亚洲成人自拍一区| 欧美a级理论片| 亚洲国产一区二区三区青草影视| 最好看的中文字幕久久| 亚洲欧美在线观看| 亚洲欧洲99久久| 最新成人av在线| 亚洲色图视频免费播放| 亚洲三级小视频| 亚洲欧美日本在线| 亚洲黄色av一区| 亚洲一区二区欧美激情| 婷婷亚洲久悠悠色悠在线播放 | 亚洲永久精品大片| 一区二区三区丝袜| 亚洲第一主播视频| 人人超碰91尤物精品国产| 日韩主播视频在线| 久久成人18免费观看| 国产经典欧美精品| 成人av免费在线| 91浏览器入口在线观看| 色综合久久久网| 欧美性猛交xxxx乱大交退制版| 欧美人与禽zozo性伦| 欧美一区二区视频观看视频| 欧美成人免费网站| 国产欧美日韩综合| 亚洲欧美aⅴ...| 婷婷丁香激情综合| 国产综合色视频| 99热精品国产| 欧美日韩精品一区二区三区| 欧美一级免费大片| 久久久www成人免费无遮挡大片| 国产精品久久久久久一区二区三区| 亚洲男女毛片无遮挡| 日本成人在线不卡视频| 国产精品538一区二区在线| proumb性欧美在线观看| 欧美日韩美少妇| 久久免费电影网| 亚洲欧美国产高清| 老司机精品视频一区二区三区| 从欧美一区二区三区| 欧美在线不卡视频| 亚洲精品一区二区在线观看| 国产精品丝袜黑色高跟| 五月激情综合婷婷| 国产高清精品在线| 欧美性受xxxx| 久久毛片高清国产| 亚洲国产日韩一级| 国产一区二区三区美女| 色国产综合视频| 精品捆绑美女sm三区| 国产精品成人网| 免费精品视频在线| 色综合网色综合| 26uuu精品一区二区在线观看| 一区二区在线免费观看| 国产一区二区伦理| 欧美精选一区二区| 一色屋精品亚洲香蕉网站| 久久国产精品色| 欧美中文字幕一二三区视频| 久久久99免费| 日本中文一区二区三区| 99久久er热在这里只有精品66| 日韩一级片在线观看| 日韩毛片视频在线看| 久草这里只有精品视频| 欧美图片一区二区三区| 国产精品天天看| 美国av一区二区| 欧洲生活片亚洲生活在线观看| 久久精品一区二区| 天天av天天翘天天综合网色鬼国产| 国产69精品久久久久777| 欧美精品自拍偷拍| 亚洲影视在线播放| 欧美人妇做爰xxxⅹ性高电影| 欧美国产日韩亚洲一区| 青青草精品视频| 欧美片在线播放| 亚洲欧美一区二区三区久本道91 | 亚洲欧洲综合另类在线| 国产精品一品视频| 欧美成人精精品一区二区频| 亚洲.国产.中文慕字在线| 色婷婷av一区二区三区gif| 国产精品久久久久久久午夜片| 国产精品自拍一区| 久久久噜噜噜久久人人看| 免费人成网站在线观看欧美高清| 欧美午夜理伦三级在线观看| 亚洲精品免费在线观看| 99久久亚洲一区二区三区青草| 欧美高清在线精品一区| 国产91精品在线观看| 国产三级久久久| 成人午夜av在线| 国产精品全国免费观看高清| 国产精品亚洲第一区在线暖暖韩国| 精品国产乱码久久| 久久99国内精品| 久久久久一区二区三区四区| 久久国产精品99精品国产 | 欧美日韩一二区| 亚洲一区二区高清| 欧美二区乱c少妇| 麻豆中文一区二区| 337p日本欧洲亚洲大胆精品| 国产在线视频不卡二| 国产日韩欧美精品在线| 丁香另类激情小说| 日韩理论电影院| 欧美日韩中字一区| 欧美aaaaa成人免费观看视频| 欧美大度的电影原声| 国产裸体歌舞团一区二区| 国产精品剧情在线亚洲| 在线亚洲一区观看| 亚洲国产视频直播| 欧美变态口味重另类| 国产91丝袜在线播放| 国产精品久久久久久亚洲毛片 | 亚洲福利一区二区| 日韩一区和二区| 国产激情一区二区三区桃花岛亚洲| 中文字幕va一区二区三区| 在线免费亚洲电影| 蜜桃视频免费观看一区| 国产视频一区不卡| 在线观看视频91| 极品少妇一区二区三区精品视频| 国产亚洲女人久久久久毛片| 一本色道**综合亚洲精品蜜桃冫| 一区二区三区四区蜜桃| 在线电影院国产精品| 激情图片小说一区| 亚洲精品国产第一综合99久久| 欧美精品aⅴ在线视频| 国产精品18久久久久久久久久久久| 国产精品三级av| 884aa四虎影成人精品一区| 国产成人av福利| 亚洲国产日韩精品| 国产欧美日韩精品在线| 欧美性生交片4| 国产精品18久久久久久vr| 亚洲一二三四区不卡| 久久久国产一区二区三区四区小说 | 一区二区欧美国产| 精品国产三级电影在线观看| 色综合久久久久网| 成人深夜视频在线观看| 日本欧美加勒比视频| 国产精品国产三级国产三级人妇 | 欧美一区二区精品久久911| 国产成人亚洲综合a∨婷婷图片| 亚洲一区二区三区中文字幕在线| 日韩免费观看高清完整版在线观看| 成人视屏免费看| 免费成人在线观看| 夜夜嗨av一区二区三区| 精品福利av导航| 欧美人与性动xxxx| 91丝袜美女网| 国产成人免费高清| 青青草原综合久久大伊人精品 | 婷婷一区二区三区| 一色桃子久久精品亚洲|