📄 resample.h
字号:
#ifndef RESAMPLE_H#define RESAMPLE_H/*Standard C header files */#include <stdio.h>#include <stdlib.h>#include <math.h>
#include <malloc.h>/* timer */#define HAVE_LORES_TIMER#ifdef HAVE_LORES_TIMER/* use the low-resolution interval timer system call to collect timings */# define USE_TIMER# include <time.h>
# include <sys/timeb.h># define DECLARE_TIME(t) struct timeval t# define GET_TIME(t) gettimeofday(&t,NULL)# define STORE_TIME(code, t0, t1) \ timer_ticks[code] += ((t1).tv_usec < (t0).tv_usec) ? \ (((t1).tv_sec - (t0).tv_sec)*1000000 - ((t0).tv_usec - (t1).tv_usec)):\ (((t1).tv_sec - (t0).tv_sec)*1000000 + ((t1).tv_usec - (t0).tv_usec));#endif/* resampling program header files */#include <filter.h>#include <imgfile.h>#include <ppmfile.h>#include <least.h>/* filter */#define CUBIC_TABLE_FILTER 0#define BILINEAR_NOTABLE_FILTER 1#define FILTER_NUM 2/* timer */#define CUBIC_TABLE 0 /* compute cubic filter table */#define RESAMPLING_TIMER 1 /* resampling timer */#define INVERSE_FUNCTION 2 /* inverse function timer */#define LEAST_MULT 3#define VPTIMER_COUNT 4 /* timer number *//* coarse grid */#define COARSE_X 100#define COARSE_Y 100/* file format */#define BMP_FORMAT/*#define PPM_FORMAT*/#ifndef USE_TIMER# define DECLARE_TIME(t)# define GET_TIME(t)# define STORE_TIME(code, t0, t1)#endifunsigned timer_ticks[VPTIMER_COUNT];#endif /* RESAMPLE_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -