openexr-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-user] Image viewer with exr support?


From: Drew Hess
Subject: Re: [Openexr-user] Image viewer with exr support?
Date: Tue, 06 Jun 2006 09:44:42 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (chestnut, linux)

Klaus Steden <address@hidden> 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);
}






reply via email to

[Prev in Thread] Current Thread [Next in Thread]