1 | /* |
---|
2 | * php-pipi Php binding for Libpipi |
---|
3 | * Copyright (c) 2008 Vion Nicolas <nico@picapo.net> |
---|
4 | * |
---|
5 | * |
---|
6 | * This library is free software. It comes without any warranty, to |
---|
7 | * the extent permitted by applicable law. You can redistribute it |
---|
8 | * and/or modify it under the terms of the Do What The Fuck You Want |
---|
9 | * To Public License, Version 2, as published by Sam Hocevar. See |
---|
10 | * http://sam.zoy.org/wtfpl/COPYING for more details. |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef PHP_PIPI_H |
---|
14 | #define PHP_PIPI_H |
---|
15 | |
---|
16 | #include <pipi.h> |
---|
17 | |
---|
18 | |
---|
19 | #define PHP_PIPI_VERSION "0.0" |
---|
20 | #define PHP_PIPI_EXTNAME "pipi" |
---|
21 | |
---|
22 | #define PHP_PIPI_IMAGE_RES_NAME "pipi_image" |
---|
23 | #define PHP_PIPI_CONTEXT_RES_NAME "pipi_context" |
---|
24 | #define PHP_PIPI_HISTOGRAM_RES_NAME "pipi_histogram" |
---|
25 | |
---|
26 | int le_pipi_image; |
---|
27 | int le_pipi_context; |
---|
28 | int le_pipi_histogram; |
---|
29 | |
---|
30 | PHP_MINIT_FUNCTION(pipi); |
---|
31 | PHP_MINFO_FUNCTION(pipi); |
---|
32 | |
---|
33 | PHP_FUNCTION(pipi_get_color_from_string); |
---|
34 | PHP_FUNCTION(pipi_get_version); |
---|
35 | PHP_FUNCTION(pipi_create_context); |
---|
36 | PHP_FUNCTION(pipi_get_command_list); |
---|
37 | PHP_FUNCTION(pipi_command); |
---|
38 | PHP_FUNCTION(pipi_load); |
---|
39 | PHP_FUNCTION(pipi_load_stock); |
---|
40 | PHP_FUNCTION(pipi_new); |
---|
41 | PHP_FUNCTION(pipi_copy); |
---|
42 | PHP_FUNCTION(pipi_save); |
---|
43 | PHP_FUNCTION(pipi_set_gamma); |
---|
44 | PHP_FUNCTION(pipi_getpixels); |
---|
45 | PHP_FUNCTION(pipi_get_image_width); |
---|
46 | PHP_FUNCTION(pipi_get_image_height); |
---|
47 | PHP_FUNCTION(pipi_get_image_pitch); |
---|
48 | PHP_FUNCTION(pipi_get_image_last_modified); |
---|
49 | PHP_FUNCTION(pipi_get_format_name); |
---|
50 | PHP_FUNCTION(pipi_measure_msd); |
---|
51 | PHP_FUNCTION(pipi_measure_rmsd); |
---|
52 | PHP_FUNCTION(pipi_resize); |
---|
53 | PHP_FUNCTION(pipi_render_random); |
---|
54 | PHP_FUNCTION(pipi_render_bayer); |
---|
55 | PHP_FUNCTION(pipi_render_halftone); |
---|
56 | PHP_FUNCTION(pipi_rgb); |
---|
57 | PHP_FUNCTION(pipi_red); |
---|
58 | PHP_FUNCTION(pipi_green); |
---|
59 | PHP_FUNCTION(pipi_blue); |
---|
60 | PHP_FUNCTION(pipi_mean); |
---|
61 | PHP_FUNCTION(pipi_min); |
---|
62 | PHP_FUNCTION(pipi_max); |
---|
63 | PHP_FUNCTION(pipi_add); |
---|
64 | PHP_FUNCTION(pipi_sub); |
---|
65 | PHP_FUNCTION(pipi_difference); |
---|
66 | PHP_FUNCTION(pipi_multiply); |
---|
67 | PHP_FUNCTION(pipi_divide); |
---|
68 | PHP_FUNCTION(pipi_screen); |
---|
69 | PHP_FUNCTION(pipi_overlay); |
---|
70 | PHP_FUNCTION(pipi_convolution); |
---|
71 | PHP_FUNCTION(pipi_gaussian_blur); |
---|
72 | PHP_FUNCTION(pipi_gaussian_blur_ext); |
---|
73 | PHP_FUNCTION(pipi_box_blur); |
---|
74 | PHP_FUNCTION(pipi_box_blur_ext); |
---|
75 | PHP_FUNCTION(pipi_brightness); |
---|
76 | PHP_FUNCTION(pipi_contrast); |
---|
77 | PHP_FUNCTION(pipi_autocontrast); |
---|
78 | PHP_FUNCTION(pipi_invert); |
---|
79 | PHP_FUNCTION(pipi_threshold); |
---|
80 | PHP_FUNCTION(pipi_hflip); |
---|
81 | PHP_FUNCTION(pipi_vflip); |
---|
82 | PHP_FUNCTION(pipi_rotate90); |
---|
83 | PHP_FUNCTION(pipi_rotate180); |
---|
84 | PHP_FUNCTION(pipi_rotate270); |
---|
85 | PHP_FUNCTION(pipi_median); |
---|
86 | PHP_FUNCTION(pipi_median_ext); |
---|
87 | PHP_FUNCTION(pipi_dilate); |
---|
88 | PHP_FUNCTION(pipi_erode); |
---|
89 | PHP_FUNCTION(pipi_order); |
---|
90 | PHP_FUNCTION(pipi_tile); |
---|
91 | PHP_FUNCTION(pipi_flood_fill); |
---|
92 | PHP_FUNCTION(pipi_draw_line); |
---|
93 | PHP_FUNCTION(pipi_draw_polyline); |
---|
94 | PHP_FUNCTION(pipi_draw_bezier4); |
---|
95 | PHP_FUNCTION(pipi_reduce); |
---|
96 | PHP_FUNCTION(pipi_dither_ediff); |
---|
97 | PHP_FUNCTION(pipi_dither_ordered); |
---|
98 | PHP_FUNCTION(pipi_dither_ordered_ext); |
---|
99 | PHP_FUNCTION(pipi_dither_halftone); |
---|
100 | PHP_FUNCTION(pipi_dither_random); |
---|
101 | PHP_FUNCTION(pipi_dither_ostromoukhov); |
---|
102 | PHP_FUNCTION(pipi_dither_dbs); |
---|
103 | PHP_FUNCTION(pipi_dither_24to16); |
---|
104 | PHP_FUNCTION(pipi_new_histogram); |
---|
105 | PHP_FUNCTION(pipi_get_image_histogram); |
---|
106 | PHP_FUNCTION(pipi_render_histogram); |
---|
107 | |
---|
108 | extern zend_module_entry pipi_module_entry; |
---|
109 | #define phpext_pipi_ptr &pipi_module_entry |
---|
110 | |
---|
111 | |
---|
112 | #endif |
---|