⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 misc.h

📁 linux下将各类格式图片转换工具
💻 H
字号:
/* *  misc.h * *  Written by:		Stefan Frank *			Ullrich Hafner *		 *  This file is part of FIASCO (獸籸actal 獻籱age 獳籲d 玈籩quence 獵O籨ec) *  Copyright (C) 1994-2000 Ullrich Hafner <hafner@bigfoot.de> *//* *  $Date: 2000/06/14 20:49:37 $ *  $Author: hafner $ *  $Revision: 5.1 $ *  $State: Exp $ */#ifndef _MISC_H#define _MISC_H#include "config.h"#if TIME_WITH_SYS_TIME#	include <sys/time.h>#	include <time.h>#else  /* not TIME_WITH_SYS_TIME */#	if HAVE_SYS_TIME_H#		include <sys/time.h>#	else /* not HAVE_SYS_TIME_H */#		include <time.h>#	endif /* not HAVE_SYS_TIME_H */#endif /* not TIME_WITH_SYS_TIME */#include <stdio.h>#include "types.h"#include "bit-io.h"enum action_e {START, STOP};void *Calloc (size_t n, size_t size);voidFree (void *memory);unsignedprg_timer (clock_t *ptimer, enum action_e action);int read_int(FILE *infile);real_t read_real(FILE *infile);unsignedread_rice_code (unsigned rice_k, bitfile_t *input);voidwrite_rice_code (unsigned value, unsigned rice_k, bitfile_t *output);voidwrite_bin_code (unsigned value, unsigned maxval, bitfile_t *output);unsignedbits_bin_code (unsigned value, unsigned maxval);unsignedbits_rice_code (unsigned value, unsigned rice_k);unsignedread_bin_code (unsigned maxval, bitfile_t *input);unsigned *init_clipping (void);real_tvariance (const word_t *pixels, unsigned x0, unsigned y0,	  unsigned width, unsigned height, unsigned cols);#ifndef HAVE_MEMMOVEvoid *memmove(void *dest, const void *src, size_t n);#endif /* not HAVE_MEMMOVE */doubleLog2 (double x);#ifndef HAVE_STRDUPchar *strdup (const char *s);#endif#ifndef HAVE_STRCASECMPbool_tstrcaseeq (const char *s1, const char *s2);#else  /* HAVE_STRCASECMP */intstrcasecmp (const char *s1, const char *s2);#define strcaseeq(s1, s2) (strcasecmp ((s1), (s2)) == 0)#endif /* HAVE_STRCASECMP */intsort_asc_word (const void *value1, const void *value2);intsort_desc_word (const void *value1, const void *value2);intsort_asc_pair (const void *value1, const void *value2);intsort_desc_pair (const void *value1, const void *value2);#endif /* not _MISC_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -