25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

52 satır
1.4 KiB

  1. /*
  2. * libpipi Proper image processing implementation library
  3. * Copyright (c) 2004-2008 Sam Hocevar <sam@zoy.org>
  4. * All Rights Reserved
  5. *
  6. * $Id$
  7. *
  8. * This library is free software. It comes without any warranty, to
  9. * the extent permitted by applicable law. You can redistribute it
  10. * and/or modify it under the terms of the Do What The Fuck You Want
  11. * To Public License, Version 2, as published by Sam Hocevar. See
  12. * http://sam.zoy.org/wtfpl/COPYING for more details.
  13. */
  14. /*
  15. * pipi_internals.h: internal types
  16. */
  17. #ifndef __CACA_INTERNALS_H__
  18. #define __CACA_INTERNALS_H__
  19. struct pipi_image
  20. {
  21. int width, height, pitch, channels;
  22. unsigned char *pixels;
  23. void *priv;
  24. };
  25. #ifdef USE_IMLIB2
  26. pipi_image_t *pipi_load_imlib2(const char *name);
  27. pipi_image_t *pipi_new_imlib2(int width, int height);
  28. void pipi_free_imlib2(pipi_image_t *img);
  29. void pipi_save_imlib2(pipi_image_t *img, const char *name);
  30. #endif
  31. #ifdef USE_OPENCV
  32. pipi_image_t *pipi_load_opencv(const char *name);
  33. pipi_image_t *pipi_new_opencv(int width, int height);
  34. void pipi_free_opencv(pipi_image_t *img);
  35. void pipi_save_opencv(pipi_image_t *img, const char *name);
  36. #endif
  37. #ifdef USE_SDL
  38. pipi_image_t *pipi_load_sdl(const char *name);
  39. pipi_image_t *pipi_new_sdl(int width, int height);
  40. void pipi_free_sdl(pipi_image_t *img);
  41. void pipi_save_sdl(pipi_image_t *img, const char *name);
  42. #endif
  43. #endif /* __PIPI_INTERNALS_H__ */