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.
Anonymous
Patch to add grayscale+alpha implementation
Sample file before being opened
Logged In: YES
user_id=2032473
Originator: YES
File Added: sample1.sgi
Sample file after being converted to DDS
Logged In: YES
user_id=2032473
Originator: YES
File Added: sample1.DDS
Logged In: YES
user_id=613758
Originator: NO
Thanks for the patch,
it is now merged with the CVS.
Best regards,
Hervé Drolon
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).