Browse Source

* codec.c: bump Imlib2 and OpenCV priorities over SDL.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2632 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
sam 16 years ago
parent
commit
f687640a09
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      pipi/codec.c

+ 9
- 9
pipi/codec.c View File

@@ -27,12 +27,12 @@

pipi_image_t *pipi_load(const char *name)
{
#if USE_SDL
return pipi_load_sdl(name);
#elif USE_IMLIB2
#if USE_IMLIB2
return pipi_load_imlib2(name);
#elif USE_OPENCV
return pipi_load_opencv(name);
#elif USE_SDL
return pipi_load_sdl(name);
#else
# error "No imaging library"
#endif
@@ -47,12 +47,12 @@ void pipi_free(pipi_image_t *img)
free(img->p[i].pixels);

if(img->codec_priv)
#if USE_SDL
pipi_free_sdl(img);
#elif USE_IMLIB2
#if USE_IMLIB2
pipi_free_imlib2(img);
#elif USE_OPENCV
pipi_free_opencv(img);
#elif USE_SDL
pipi_free_sdl(img);
#endif

free(img);
@@ -60,12 +60,12 @@ void pipi_free(pipi_image_t *img)

void pipi_save(pipi_image_t *img, const char *name)
{
#if USE_SDL
return pipi_save_sdl(img, name);
#elif USE_IMLIB2
#if USE_IMLIB2
return pipi_save_imlib2(img, name);
#elif USE_OPENCV
return pipi_save_opencv(img, name);
#elif USE_SDL
return pipi_save_sdl(img, name);
#endif
}


Loading…
Cancel
Save