File: magick.h

package info (click to toggle)
libimage-scale-perl 0.14%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,828 kB
  • sloc: ansic: 4,760; perl: 313; makefile: 3
file content (46 lines) | stat: -rw-r--r-- 805 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#define BLUR 1.0

typedef struct _FilterInfo {
  float (*function)(const float, const float),
  support;
} FilterInfo;

typedef struct _FilterInfoFixed {
  fixed_t (*function)(const fixed_t, const fixed_t),
  support;
} FilterInfoFixed;

typedef enum {
  UndefinedFilter,
  PointFilter,
  BoxFilter,
  TriangleFilter,
  HermiteFilter,
  HanningFilter,
  HammingFilter,
  BlackmanFilter,
  GaussianFilter,
  QuadraticFilter,
  CubicFilter,
  CatromFilter,
  MitchellFilter,
  LanczosFilter,
  BesselFilter,
  SincFilter
} FilterTypes;

typedef struct _ContributionInfo {
  float weight;
  int pixel;
} ContributionInfo;

typedef struct _ContributionInfoFixed {
  fixed_t weight;
  int pixel;
} ContributionInfoFixed;

typedef struct _ImageInfo {
  int32_t rows;
  int32_t columns;
  pix *buf;
} ImageInfo;