Ignore:
Timestamp:
Aug 2, 2008, 2:01:04 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • codec.c: bump Imlib2 and OpenCV priorities over SDL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/codec.c

    r2631 r2632  
    2828pipi_image_t *pipi_load(const char *name)
    2929{
    30 #if USE_SDL
    31     return pipi_load_sdl(name);
    32 #elif USE_IMLIB2
     30#if USE_IMLIB2
    3331    return pipi_load_imlib2(name);
    3432#elif USE_OPENCV
    3533    return pipi_load_opencv(name);
     34#elif USE_SDL
     35    return pipi_load_sdl(name);
    3636#else
    3737#   error "No imaging library"
     
    4848
    4949    if(img->codec_priv)
    50 #if USE_SDL
    51         pipi_free_sdl(img);
    52 #elif USE_IMLIB2
     50#if USE_IMLIB2
    5351        pipi_free_imlib2(img);
    5452#elif USE_OPENCV
    5553        pipi_free_opencv(img);
     54#elif USE_SDL
     55        pipi_free_sdl(img);
    5656#endif
    5757
     
    6161void pipi_save(pipi_image_t *img, const char *name)
    6262{
    63 #if USE_SDL
    64     return pipi_save_sdl(img, name);
    65 #elif USE_IMLIB2
     63#if USE_IMLIB2
    6664    return pipi_save_imlib2(img, name);
    6765#elif USE_OPENCV
    6866    return pipi_save_opencv(img, name);
     67#elif USE_SDL
     68    return pipi_save_sdl(img, name);
    6969#endif
    7070}
Note: See TracChangeset for help on using the changeset viewer.