File: resample.h

package info (click to toggle)
xmorph 1%3A20050408b
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,712 kB
  • ctags: 2,109
  • sloc: ansic: 24,471; sh: 11,182; cpp: 1,546; makefile: 954; sed: 16
file content (32 lines) | stat: -rw-r--r-- 676 bytes parent folder | download
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