Ignore:
Timestamp:
Sep 28, 2008, 7:07:57 AM (12 years ago)
Author:
Sam Hocevar
Message:

Allow to use all available image loaders instead of just the first one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/pipi_internals.h

    r2809 r2837  
    5757    pipi_format_t codec_format;
    5858    void *codec_priv;
     59    int (*codec_free)(pipi_image_t *);
    5960};
    6061
     
    6768#ifdef USE_IMLIB2
    6869pipi_image_t *pipi_load_imlib2(const char *name);
    69 pipi_image_t *pipi_new_imlib2(int width, int height);
    70 void pipi_free_imlib2(pipi_image_t *img);
    71 void pipi_save_imlib2(pipi_image_t *img, const char *name);
     70int pipi_save_imlib2(pipi_image_t *img, const char *name);
    7271#endif
    7372
    7473#ifdef USE_OPENCV
    7574pipi_image_t *pipi_load_opencv(const char *name);
    76 pipi_image_t *pipi_new_opencv(int width, int height);
    77 void pipi_free_opencv(pipi_image_t *img);
    78 void pipi_save_opencv(pipi_image_t *img, const char *name);
     75int pipi_save_opencv(pipi_image_t *img, const char *name);
    7976#endif
    8077
    8178#ifdef USE_SDL
    8279pipi_image_t *pipi_load_sdl(const char *name);
    83 pipi_image_t *pipi_new_sdl(int width, int height);
    84 void pipi_free_sdl(pipi_image_t *img);
    85 void pipi_save_sdl(pipi_image_t *img, const char *name);
     80int pipi_save_sdl(pipi_image_t *img, const char *name);
    8681#endif
    8782
Note: See TracChangeset for help on using the changeset viewer.