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

📄 wm.h

📁 水印技术源代码 是关于水印识别识别技术的代码,可以用于防伪
💻 H
字号:
/*############################################################################# * 文件名:wm.h * 功能:  一些水印系统的宏定义 * modified by  PRTsinghua@hotmail.com#############################################################################*/#ifndef WM_H#define WM_H#include <stdlib.h>#include <stdio.h>#include <string.h>#include <getopt.h>#include <math.h>#include <float.h>#include <fcntl.h>#if defined(MINGW)#define M_PI 3.1415926536#define rint floor#define MAXPATHLEN 255void bzero(char *b, size_t length);#elif defined(LINUX)#include <values.h>#include <sys/param.h>#else#error plattform not supported#endif/* * 该宏用来确认整数的范围 */#define ROUND(a) (((a) < 0) ? (int) ((a) - 0.5) : (int) ((a) + 0.5))#define NBITSTOBYTES(N) ((N & 7) ? (N >> 3) + 1 : N >> 3)#define NBYTESTOBITS(N) (N << 3)#define GRAYRANGE(P) ((P > 255) ? 255 : (P < 0) ? 0 : P)#define PIXELRANGE(P) ((P > 255) ? 255 : (P < 0) ? 0 : P)#ifndef sqr#define sqr(X) ((X) * (X))#endif#ifndef MAX#define MAX(X, Y) (((X) > (Y)) ? (X) : (Y))#endif#ifndef MIN#define MIN(X, Y) (((X) < (Y)) ? (X) : (Y))#endif#ifdef NEED_STRCASECMP#define strcasecmp stricmp#endif#ifndef SIGN#define SIGN(X) (((X) > 0) ? ((X) == 0 ? 0 : 1) : -1)#endifvoid wm_init();void wm_init1();void wm_init2();#endif

⌨️ 快捷键说明

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