Klaus Steden <[EMAIL PROTECTED]> writes:
> On Tue, 6 Jun 2006, Eric Boer wrote:
>
>> Hi all,
>>
>> Hope this isn't too frivolous but I am looking for a general purpose
>> image viewer that supports exr as well as the other common image
>> formats. Anything out there I have missed?
>>
> I don't believe there's one out there yet that supports OpenEXR
> ... exrdisplay won't do the trick?
>
> On a slightly related note ... has anyone got magic numbers (for use
> with file(1)) for EXR images?
from ImfHeader.h and ImfHeader.C:
//
// The MAGIC number is stored in the first four bytes of every
// OpenEXR image file. This can be used to quickly test whether
// a given file is an OpenEXR image file (see isImfMagic(), below).
//
const int MAGIC = 20000630;
bool
isImfMagic (const char bytes[4])
{
return bytes[0] == ((MAGIC >> 0) & 0x00ff) &&
bytes[1] == ((MAGIC >> 8) & 0x00ff) &&
bytes[2] == ((MAGIC >> 16) & 0x00ff) &&
bytes[3] == ((MAGIC >> 24) & 0x00ff);
}
_______________________________________________
Openexr-user mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/openexr-user