You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

php_pipi.h 3.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. #ifndef PHP_PIPI_H
  13. #define PHP_PIPI_H
  14. #include <pipi.h>
  15. #define PHP_PIPI_VERSION "0.0"
  16. #define PHP_PIPI_EXTNAME "pipi"
  17. #define PHP_PIPI_IMAGE_RES_NAME "pipi_image"
  18. #define PHP_PIPI_CONTEXT_RES_NAME "pipi_context"
  19. #define PHP_PIPI_HISTOGRAM_RES_NAME "pipi_histogram"
  20. int le_pipi_image;
  21. int le_pipi_context;
  22. int le_pipi_histogram;
  23. PHP_MINIT_FUNCTION(pipi);
  24. PHP_MINFO_FUNCTION(pipi);
  25. PHP_FUNCTION(pipi_get_color_from_string);
  26. PHP_FUNCTION(pipi_get_version);
  27. PHP_FUNCTION(pipi_create_context);
  28. PHP_FUNCTION(pipi_get_command_list);
  29. PHP_FUNCTION(pipi_command);
  30. PHP_FUNCTION(pipi_load);
  31. PHP_FUNCTION(pipi_load_stock);
  32. PHP_FUNCTION(pipi_new);
  33. PHP_FUNCTION(pipi_copy);
  34. PHP_FUNCTION(pipi_save);
  35. PHP_FUNCTION(pipi_set_gamma);
  36. PHP_FUNCTION(pipi_getpixels);
  37. PHP_FUNCTION(pipi_get_image_width);
  38. PHP_FUNCTION(pipi_get_image_height);
  39. PHP_FUNCTION(pipi_get_image_pitch);
  40. PHP_FUNCTION(pipi_get_image_last_modified);
  41. PHP_FUNCTION(pipi_get_format_name);
  42. PHP_FUNCTION(pipi_measure_msd);
  43. PHP_FUNCTION(pipi_measure_rmsd);
  44. PHP_FUNCTION(pipi_resize);
  45. PHP_FUNCTION(pipi_render_random);
  46. PHP_FUNCTION(pipi_render_bayer);
  47. PHP_FUNCTION(pipi_render_halftone);
  48. PHP_FUNCTION(pipi_rgb);
  49. PHP_FUNCTION(pipi_red);
  50. PHP_FUNCTION(pipi_green);
  51. PHP_FUNCTION(pipi_blue);
  52. PHP_FUNCTION(pipi_mean);
  53. PHP_FUNCTION(pipi_min);
  54. PHP_FUNCTION(pipi_max);
  55. PHP_FUNCTION(pipi_add);
  56. PHP_FUNCTION(pipi_sub);
  57. PHP_FUNCTION(pipi_difference);
  58. PHP_FUNCTION(pipi_multiply);
  59. PHP_FUNCTION(pipi_divide);
  60. PHP_FUNCTION(pipi_screen);
  61. PHP_FUNCTION(pipi_overlay);
  62. PHP_FUNCTION(pipi_convolution);
  63. PHP_FUNCTION(pipi_gaussian_blur);
  64. PHP_FUNCTION(pipi_gaussian_blur_ext);
  65. PHP_FUNCTION(pipi_box_blur);
  66. PHP_FUNCTION(pipi_box_blur_ext);
  67. PHP_FUNCTION(pipi_brightness);
  68. PHP_FUNCTION(pipi_contrast);
  69. PHP_FUNCTION(pipi_autocontrast);
  70. PHP_FUNCTION(pipi_invert);
  71. PHP_FUNCTION(pipi_threshold);
  72. PHP_FUNCTION(pipi_hflip);
  73. PHP_FUNCTION(pipi_vflip);
  74. PHP_FUNCTION(pipi_rotate90);
  75. PHP_FUNCTION(pipi_rotate180);
  76. PHP_FUNCTION(pipi_rotate270);
  77. PHP_FUNCTION(pipi_median);
  78. PHP_FUNCTION(pipi_median_ext);
  79. PHP_FUNCTION(pipi_dilate);
  80. PHP_FUNCTION(pipi_erode);
  81. PHP_FUNCTION(pipi_order);
  82. PHP_FUNCTION(pipi_tile);
  83. PHP_FUNCTION(pipi_flood_fill);
  84. PHP_FUNCTION(pipi_draw_line);
  85. PHP_FUNCTION(pipi_draw_polyline);
  86. PHP_FUNCTION(pipi_draw_bezier4);
  87. PHP_FUNCTION(pipi_reduce);
  88. PHP_FUNCTION(pipi_dither_ediff);
  89. PHP_FUNCTION(pipi_dither_ordered);
  90. PHP_FUNCTION(pipi_dither_ordered_ext);
  91. PHP_FUNCTION(pipi_dither_halftone);
  92. PHP_FUNCTION(pipi_dither_random);
  93. PHP_FUNCTION(pipi_dither_ostromoukhov);
  94. PHP_FUNCTION(pipi_dither_dbs);
  95. PHP_FUNCTION(pipi_dither_24to16);
  96. PHP_FUNCTION(pipi_new_histogram);
  97. PHP_FUNCTION(pipi_get_image_histogram);
  98. PHP_FUNCTION(pipi_render_histogram);
  99. extern zend_module_entry pipi_module_entry;
  100. #define phpext_pipi_ptr &pipi_module_entry
  101. #endif