Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#40 Amiga IFF (ILBM/PBM) support

closed-accepted
Denton Woods
None
5
2009-02-26
2009-02-25
Ben Campbell
No

Code directly adapted from libSDL_image, trying to keep changes to a minimum to make sure it's easy to diff against the original, so changes there can be applied here too (some ugly defines to map SDL things to the corresponding DevIL feature).

I've replaced the (unused) IL_LBM enum with IL_ILBM

I'm using linux, and have done some minor fiddling to add the new il.ilbm.c file to the automake/autoconf setup, and to add a configure option to disable ilbm support.
I've not touched any of the other project files/build system configs.

It loads all my old Amiga graphics files without problem (yay!).

It loads "Test Images/HAM/crater.ham", although I haven't checked to see it looks OK yet (my test app rejects any images without a palette).

It doesn't load "Test Images/ILBM/rgb8c.ilbm". I couldn't get this to load in Deluxe Paint either (tried dpaint 3 and dpaint 4.1, running under the UAE amiga emulator).
I think this is an AGA image (AGA=later-model amiga, with higher colour depth hardware). I will investigate if I get some time.

I can be contacted at ben at scumways.com.

Discussion

  • Ben Campbell
    Ben Campbell
    2009-02-25

    Amiga IFF (ILBM/PBM) support

     
    Attachments
  • Ben Campbell
    Ben Campbell
    2009-02-25

    I'm attaching a test image - one of my old amiga image files.
    (license: I'm happy for this to be used any way anyone likes ;-)
    File Added: rockdudes.ilbm

     
  • Ben Campbell
    Ben Campbell
    2009-02-25

    Test ILBM image (some game sprites)

     
    Attachments
  • Denton Woods
    Denton Woods
    2009-02-26

    I will try to get it into Subversion this weekend. Thanks a lot for your help!

     
  • Denton Woods
    Denton Woods
    2009-02-26

    • assigned_to: nobody --> doomwiz
    • status: open --> closed-accepted
     
  • Denton Woods
    Denton Woods
    2009-02-26

    Actually, I just added your patch to SVN. It works great on the couple of images I tried it with.