source: libpipi/trunk/pipi/pipi_internals.h @ 2261

Last change on this file since 2261 was 2261, checked in by Sam Hocevar, 13 years ago
  • Split the image loaders into sdl.c, imlib.c and opencv.c. We'll do something far better, but later.
File size: 1.4 KB
Line 
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/*
16 *  pipi_internals.h: internal types
17 */
18
19#ifndef __CACA_INTERNALS_H__
20#define __CACA_INTERNALS_H__
21
22struct pipi_image
23{
24    int width, height, pitch, channels;
25    unsigned char *pixels;
26    void *priv;
27};
28
29#ifdef USE_IMLIB2
30pipi_image_t *pipi_load_imlib2(const char *name);
31pipi_image_t *pipi_new_imlib2(int width, int height);
32void pipi_free_imlib2(pipi_image_t *img);
33void pipi_save_imlib2(pipi_image_t *img, const char *name);
34#endif
35
36#ifdef USE_OPENCV
37pipi_image_t *pipi_load_opencv(const char *name);
38pipi_image_t *pipi_new_opencv(int width, int height);
39void pipi_free_opencv(pipi_image_t *img);
40void pipi_save_opencv(pipi_image_t *img, const char *name);
41#endif
42
43#ifdef USE_SDL
44pipi_image_t *pipi_load_sdl(const char *name);
45pipi_image_t *pipi_new_sdl(int width, int height);
46void pipi_free_sdl(pipi_image_t *img);
47void pipi_save_sdl(pipi_image_t *img, const char *name);
48#endif
49
50#endif /* __PIPI_INTERNALS_H__ */
51
Note: See TracBrowser for help on using the repository browser.