Menu ▾ ▴

#15 Added support for SGI Grayscale + Alpha pics

closed
None
5
2012-10-31
2008-04-27
Noam Gat
No

SGI pics usually have bit depths of 1 (grayscale), 3 (RGB) or 4 (RGBA). However, there is also another option - 2 bytes for grayscale + alpha.

I implemented it a bit differently from the grayscale implementation because it creates a pallete of 256 colors and assigns indexes. With grayscale+alpha there are 65536 options, making it too big for a pallete, so I implemented this mode using faked RGBA (the grayscale value is put into the RGB spots).

I also attached a sample picture and how its supposed to look after it is converted properly.

Discussion

  • Noam Gat

    Noam Gat - 2008-04-27

    Patch to add grayscale+alpha implementation

     
  • Noam Gat

    Noam Gat - 2008-04-27

    Sample file before being opened

     
  • Noam Gat

    Noam Gat - 2008-04-27

    Logged In: YES
    user_id=2032473
    Originator: YES

    File Added: sample1.sgi

     
  • Noam Gat

    Noam Gat - 2008-04-27

    Sample file after being converted to DDS

     
  • Noam Gat

    Noam Gat - 2008-04-27

    Logged In: YES
    user_id=2032473
    Originator: YES

    File Added: sample1.DDS

     
  • Hervé Drolon

    Hervé Drolon - 2008-05-19

    Logged In: YES
    user_id=613758
    Originator: NO

    Thanks for the patch,
    it is now merged with the CVS.

    Best regards,
    Hervé Drolon

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Anonymous
Anonymous

Add attachments
Cancel