File: resample.h

package info (click to toggle)
xmorph 1%3A20060817
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,688 kB
  • ctags: 2,022
  • sloc: ansic: 19,988; sh: 9,418; cpp: 1,230; makefile: 560; sed: 16
file content (32 lines) | stat: -rw-r--r-- 680 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

#ifndef _RESAMPLE_INCLUDED_
#define _RESAMPLE_INCLUDED_
#include "warp.h"

extern void (*resample_array_inv)(const double *F, 
				  const PIXEL_TYPE *src, int s_len, int s_stride, 
				  PIXEL_TYPE *dst, int d_len, int d_stride);


/* choice of kernel by name */
extern char *resample_array_inv_names[]; /* is null terminated */
void mesh_resample_choose_aa(int f);
void mesh_resample_choose_aa_by_name(char *s);


/** backward compatible interface, for older code
 * 
 */

static inline
void
resample_array_inv_bc
  (const double *F, 
   const PIXEL_TYPE *src, 
         PIXEL_TYPE *dst, int len, int stride)
{

  resample_array_inv(F,src,len,stride,dst,len,stride);
}

#endif