source: libpipi/trunk/pipi-php/php_pipi.h @ 3069

Last change on this file since 3069 was 3069, checked in by nico, 12 years ago

Initial release of pipi-php

File size: 3.1 KB
Line 
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
26int le_pipi_image;
27int le_pipi_context;
28int le_pipi_histogram;
29
30PHP_MINIT_FUNCTION(pipi);
31PHP_MINFO_FUNCTION(pipi);
32
33PHP_FUNCTION(pipi_get_color_from_string);
34PHP_FUNCTION(pipi_get_version);
35PHP_FUNCTION(pipi_create_context);
36PHP_FUNCTION(pipi_get_command_list);
37PHP_FUNCTION(pipi_command);
38PHP_FUNCTION(pipi_load);
39PHP_FUNCTION(pipi_load_stock);
40PHP_FUNCTION(pipi_new);
41PHP_FUNCTION(pipi_copy);
42PHP_FUNCTION(pipi_save);
43PHP_FUNCTION(pipi_set_gamma);
44PHP_FUNCTION(pipi_getpixels);
45PHP_FUNCTION(pipi_get_image_width);
46PHP_FUNCTION(pipi_get_image_height);
47PHP_FUNCTION(pipi_get_image_pitch);
48PHP_FUNCTION(pipi_get_image_last_modified);
49PHP_FUNCTION(pipi_get_format_name);
50PHP_FUNCTION(pipi_measure_msd);
51PHP_FUNCTION(pipi_measure_rmsd);
52PHP_FUNCTION(pipi_resize);
53PHP_FUNCTION(pipi_render_random);
54PHP_FUNCTION(pipi_render_bayer);
55PHP_FUNCTION(pipi_render_halftone);
56PHP_FUNCTION(pipi_rgb);
57PHP_FUNCTION(pipi_red);
58PHP_FUNCTION(pipi_green);
59PHP_FUNCTION(pipi_blue);
60PHP_FUNCTION(pipi_mean);
61PHP_FUNCTION(pipi_min);
62PHP_FUNCTION(pipi_max);
63PHP_FUNCTION(pipi_add);
64PHP_FUNCTION(pipi_sub);
65PHP_FUNCTION(pipi_difference);
66PHP_FUNCTION(pipi_multiply);
67PHP_FUNCTION(pipi_divide);
68PHP_FUNCTION(pipi_screen);
69PHP_FUNCTION(pipi_overlay);
70PHP_FUNCTION(pipi_convolution);
71PHP_FUNCTION(pipi_gaussian_blur);
72PHP_FUNCTION(pipi_gaussian_blur_ext);
73PHP_FUNCTION(pipi_box_blur);
74PHP_FUNCTION(pipi_box_blur_ext);
75PHP_FUNCTION(pipi_brightness);
76PHP_FUNCTION(pipi_contrast);
77PHP_FUNCTION(pipi_autocontrast);
78PHP_FUNCTION(pipi_invert);
79PHP_FUNCTION(pipi_threshold);
80PHP_FUNCTION(pipi_hflip);
81PHP_FUNCTION(pipi_vflip);
82PHP_FUNCTION(pipi_rotate90);
83PHP_FUNCTION(pipi_rotate180);
84PHP_FUNCTION(pipi_rotate270);
85PHP_FUNCTION(pipi_median);
86PHP_FUNCTION(pipi_median_ext);
87PHP_FUNCTION(pipi_dilate);
88PHP_FUNCTION(pipi_erode);
89PHP_FUNCTION(pipi_order);
90PHP_FUNCTION(pipi_tile);
91PHP_FUNCTION(pipi_flood_fill);
92PHP_FUNCTION(pipi_draw_line);
93PHP_FUNCTION(pipi_draw_polyline);
94PHP_FUNCTION(pipi_draw_bezier4);
95PHP_FUNCTION(pipi_reduce);
96PHP_FUNCTION(pipi_dither_ediff);
97PHP_FUNCTION(pipi_dither_ordered);
98PHP_FUNCTION(pipi_dither_ordered_ext);
99PHP_FUNCTION(pipi_dither_halftone);
100PHP_FUNCTION(pipi_dither_random);
101PHP_FUNCTION(pipi_dither_ostromoukhov);
102PHP_FUNCTION(pipi_dither_dbs);
103PHP_FUNCTION(pipi_dither_24to16);
104PHP_FUNCTION(pipi_new_histogram);
105PHP_FUNCTION(pipi_get_image_histogram);
106PHP_FUNCTION(pipi_render_histogram);
107
108extern zend_module_entry pipi_module_entry;
109#define phpext_pipi_ptr &pipi_module_entry
110
111
112#endif
Note: See TracBrowser for help on using the repository browser.