Discussion:
[Openexr-user] Woen't Compile no matter what.
Thomas Lock
2006-03-29 19:49:40 UTC
Permalink
Hi Everyone

I would like to expose the reading and writing of EXR files
to other languages that i use, but nothing i have tried works as of yet. So
here is my problem. I'm using Visual C++ 2005 EE. As i am still pretty new
to C++ what headers do i need to call, i'm just guessing cause i can't find
a single document that tells me this. All i want to do is be able to read
and write Rgba files for now, and make it a simple as possible.

my code for reading. Writing is simple the reverse function of this.

extern "C" void WINAPI writeOpenEXR (char *filename, int width, int height,
float* Bits128)
{
using namespace Imf;
using namespace Imath;

int i=0;
const char fileName[]=&filename[0];
int bitcount=width*4*height;
int LineWidth=width*4;
Array2D<Rgba> p2 (width, height);
for(int h=0;h<height;h++)for(int b=0;b<width;b++)
{
i=h*LineWidth+(b<<2);
p2[b][h].b=half::half(Bits128[i]);
p2[b][h].g=half::half(Bits128[i + 1]);
p2[b][h].r=half::half(Bits128[i + 2]);
//Still have to fix alpha to be precalculated but don't care about
that at this time since i can't do anything yet.
p2[b][h].a=half::half(Bits128[i + 3]);
}

// ALL CODE FROM THIS POINT ON JUST CAUSES APPS TO CRASH TEST BY REMING
OUT THE LAST THREE LINES
RgbaOutputFile file ("c:\foo.exr", width, height, WRITE_RGBA); // 1

//EVEN WHEN THESE LAST FUNCTION ARE REMOVED IT STILL FAILS
file.setFrameBuffer (&p2[-height][0], 1, width); // 2
file.writePixels (height); // 3
}

WARNING/ERROR MESSAGES

D:\OpenEXR plugin\EXR\include\IlmImf\ImfName.h(103) : warning C4996:
'strncpy' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(156)
: see declaration of 'strncpy'
Message: 'This function or variable may be unsafe. Consider using
strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
online help for details.'
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(215) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(247) : see reference
to class template instantiation 'Imath::Vec2<T>' being compiled
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(219) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(408) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(440) : see reference
to class template instantiation 'Imath::Vec3<T>' being compiled
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(412) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(215) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(483) : see reference
to class template instantiation 'Imath::Vec2<T>' being compiled
with
[
T=short
]
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(219) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(489) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(498) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(215) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(507) : see reference
to class template instantiation 'Imath::Vec2<T>' being compiled
with
[
T=int
]
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(219) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(513) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(522) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(408) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(531) : see reference
to class template instantiation 'Imath::Vec3<T>' being compiled
with
[
T=short
]
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(412) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(537) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(546) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(408) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(555) : see reference
to class template instantiation 'Imath::Vec3<T>' being compiled
with
[
T=int
]
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(412) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(561) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(570) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(902) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(939) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(1318) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(1357) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(215) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\IlmImf\ImfHeader.h(76) : see reference
to class template instantiation 'Imath::Vec2<T>' being compiled
with
[
T=float
]
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(219) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
.\EXR.cpp(62) : error C2065: 'file' : undeclared identifier
.\EXR.cpp(62) : error C2228: left of '.dataWindow' must have
class/struct/union
type is ''unknown-type''
Build log was saved at "file://d:\OpenEXR plugin\EXR\Release\BuildLog.htm"
EXR - 2 error(s), 27 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Drew Hess
2006-03-29 20:02:21 UTC
Permalink
Thomas, we haven't really vetted the code for Visual Studio 2005 yet,
but that's part of our upcoming release. Other people have reported
issues with it, too, so it might not be anything that you're doing
wrong.

We'll be preparing the new release in the next month or two.

Can you try your application with VS2003 in the meantime?

thanks
d
Post by Thomas Lock
Hi Everyone
I would like to expose the reading and writing of EXR files
to other languages that i use, but nothing i have tried works as of yet. So
here is my problem. I'm using Visual C++ 2005 EE. As i am still pretty new
to C++ what headers do i need to call, i'm just guessing cause i can't find
a single document that tells me this. All i want to do is be able to read
and write Rgba files for now, and make it a simple as possible.
my code for reading. Writing is simple the reverse function of this.
extern "C" void WINAPI writeOpenEXR (char *filename, int width, int height,
float* Bits128)
{
using namespace Imf;
using namespace Imath;
int i=0;
const char fileName[]=&filename[0];
int bitcount=width*4*height;
int LineWidth=width*4;
Array2D<Rgba> p2 (width, height);
for(int h=0;h<height;h++)for(int b=0;b<width;b++)
{
i=h*LineWidth+(b<<2);
p2[b][h].b=half::half(Bits128[i]);
p2[b][h].g=half::half(Bits128[i + 1]);
p2[b][h].r=half::half(Bits128[i + 2]);
//Still have to fix alpha to be precalculated but don't care about
that at this time since i can't do anything yet.
p2[b][h].a=half::half(Bits128[i + 3]);
}
// ALL CODE FROM THIS POINT ON JUST CAUSES APPS TO CRASH TEST BY REMING
OUT THE LAST THREE LINES
RgbaOutputFile file ("c:\foo.exr", width, height, WRITE_RGBA); // 1
//EVEN WHEN THESE LAST FUNCTION ARE REMOVED IT STILL FAILS
file.setFrameBuffer (&p2[-height][0], 1, width); // 2
file.writePixels (height); // 3
}
WARNING/ERROR MESSAGES
'strncpy' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(156)
: see declaration of 'strncpy'
Message: 'This function or variable may be unsafe. Consider using
strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
online help for details.'
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(215) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(247) : see reference
to class template instantiation 'Imath::Vec2<T>' being compiled
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(219) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(408) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(440) : see reference
to class template instantiation 'Imath::Vec3<T>' being compiled
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(412) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(215) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(483) : see reference
to class template instantiation 'Imath::Vec2<T>' being compiled
with
[
T=short
]
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(219) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(489) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(498) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(215) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(507) : see reference
to class template instantiation 'Imath::Vec2<T>' being compiled
with
[
T=int
]
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(219) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(513) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(522) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(408) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(531) : see reference
to class template instantiation 'Imath::Vec3<T>' being compiled
with
[
T=short
]
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(412) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(537) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(546) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(408) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(555) : see reference
to class template instantiation 'Imath::Vec3<T>' being compiled
with
[
T=int
]
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(412) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(561) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(570) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(902) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(939) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(1318) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(1357) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(215) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\IlmImf\ImfHeader.h(76) : see reference
to class template instantiation 'Imath::Vec2<T>' being compiled
with
[
T=float
]
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(219) : warning C4290: C++
exception specification ignored except to indicate a function is not
__declspec(nothrow)
.\EXR.cpp(62) : error C2065: 'file' : undeclared identifier
.\EXR.cpp(62) : error C2228: left of '.dataWindow' must have
class/struct/union
type is ''unknown-type''
Build log was saved at "file://d:\OpenEXR plugin\EXR\Release\BuildLog.htm"
EXR - 2 error(s), 27 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
_______________________________________________
Openexr-user mailing list
http://lists.nongnu.org/mailman/listinfo/openexr-user
Nick Porcino
2006-03-29 20:31:28 UTC
Permalink
RgbaOutputFile is declared in

#include "ImfRgbaFile.h"


-----Original Message-----
From: openexr-user-bounces+nporcino=***@nongnu.org
[mailto:openexr-user-bounces+nporcino=***@nongnu.org] On
Behalf Of Drew Hess
Sent: Wednesday, March 29, 2006 12:02 PM
To: Thomas Lock
Cc: openexr-***@nongnu.org
Subject: Re: [Openexr-user] Woen't Compile no matter what.


Thomas, we haven't really vetted the code for Visual Studio 2005 yet,
but that's part of our upcoming release. Other people have reported
issues with it, too, so it might not be anything that you're doing
wrong.

We'll be preparing the new release in the next month or two.

Can you try your application with VS2003 in the meantime?

thanks
d
Post by Thomas Lock
Hi Everyone
I would like to expose the reading and writing of EXR
files
Post by Thomas Lock
to other languages that i use, but nothing i have tried works as of
yet. So
Post by Thomas Lock
here is my problem. I'm using Visual C++ 2005 EE. As i am still pretty
new
Post by Thomas Lock
to C++ what headers do i need to call, i'm just guessing cause i can't
find
Post by Thomas Lock
a single document that tells me this. All i want to do is be able to
read
Post by Thomas Lock
and write Rgba files for now, and make it a simple as possible.
my code for reading. Writing is simple the reverse function of this.
extern "C" void WINAPI writeOpenEXR (char *filename, int width, int
height,
Post by Thomas Lock
float* Bits128)
{
using namespace Imf;
using namespace Imath;
int i=0;
const char fileName[]=&filename[0];
int bitcount=width*4*height;
int LineWidth=width*4;
Array2D<Rgba> p2 (width, height);
for(int h=0;h<height;h++)for(int b=0;b<width;b++)
{
i=h*LineWidth+(b<<2);
p2[b][h].b=half::half(Bits128[i]);
p2[b][h].g=half::half(Bits128[i + 1]);
p2[b][h].r=half::half(Bits128[i + 2]);
//Still have to fix alpha to be precalculated but don't care
about
Post by Thomas Lock
that at this time since i can't do anything yet.
p2[b][h].a=half::half(Bits128[i + 3]);
}
// ALL CODE FROM THIS POINT ON JUST CAUSES APPS TO CRASH TEST BY
REMING
Post by Thomas Lock
OUT THE LAST THREE LINES
RgbaOutputFile file ("c:\foo.exr", width, height, WRITE_RGBA); //
1
Post by Thomas Lock
//EVEN WHEN THESE LAST FUNCTION ARE REMOVED IT STILL FAILS
file.setFrameBuffer (&p2[-height][0], 1, width); // 2
file.writePixels (height); // 3
}
WARNING/ERROR MESSAGES
'strncpy' was declared deprecated
C:\Program Files\Microsoft Visual Studio
8\VC\include\string.h(156)
Post by Thomas Lock
: see declaration of 'strncpy'
Message: 'This function or variable may be unsafe. Consider
using
Post by Thomas Lock
strncpy_s instead. To disable deprecation, use
_CRT_SECURE_NO_DEPRECATE. See
Post by Thomas Lock
online help for details.'
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(247) : see
reference
Post by Thomas Lock
to class template instantiation 'Imath::Vec2<T>' being compiled
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(440) : see
reference
Post by Thomas Lock
to class template instantiation 'Imath::Vec3<T>' being compiled
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(483) : see
reference
Post by Thomas Lock
to class template instantiation 'Imath::Vec2<T>' being compiled
with
[
T=short
]
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(507) : see
reference
Post by Thomas Lock
to class template instantiation 'Imath::Vec2<T>' being compiled
with
[
T=int
]
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(531) : see
reference
Post by Thomas Lock
to class template instantiation 'Imath::Vec3<T>' being compiled
with
[
T=short
]
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\Imath\ImathVec.h(555) : see
reference
Post by Thomas Lock
to class template instantiation 'Imath::Vec3<T>' being compiled
with
[
T=int
]
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
D:\OpenEXR plugin\EXR\include\IlmImf\ImfHeader.h(76) : see
reference
Post by Thomas Lock
to class template instantiation 'Imath::Vec2<T>' being compiled
with
[
T=float
]
C++
Post by Thomas Lock
exception specification ignored except to indicate a function is not
__declspec(nothrow)
.\EXR.cpp(62) : error C2065: 'file' : undeclared identifier
.\EXR.cpp(62) : error C2228: left of '.dataWindow' must have
class/struct/union
type is ''unknown-type''
Build log was saved at "file://d:\OpenEXR
plugin\EXR\Release\BuildLog.htm"
Post by Thomas Lock
EXR - 2 error(s), 27 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
Post by Thomas Lock
_______________________________________________
Openexr-user mailing list
http://lists.nongnu.org/mailman/listinfo/openexr-user
Eric Boer
2006-06-06 15:46:26 UTC
Permalink
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?

Thanks,

Eric
Klaus Steden
2006-06-06 16:23:31 UTC
Permalink
Post by Eric Boer
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?

Klaus
Drew Hess
2006-06-06 16:44:42 UTC
Permalink
Post by Klaus Steden
Post by Eric Boer
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);
}
Florian Kainz
2006-06-06 18:35:52 UTC
Permalink
Post by Klaus Steden
On a slightly related note ... has anyone got magic numbers (for use
with file(1)) for EXR images?
Here's the entry in /usr/share/misc/magic on my machine:

#
Florian Kainz
2006-06-06 18:33:00 UTC
Permalink
The following viewers support OpenEXR. Most likely there are more.

Commercial

* framecycler (http://www.framecycler.com/)

* P3dO Explorer (http://www.senosoft.com/softp3do.php)

* rv, a new image viewer from from Tweak Films, supports OpenEXR;
I don't know if the product has already been officially released.
You may want to contact Tweak (ttp://www.tweakfilms.com/).

Free

* KSquirrel (http://ksquirrel.sourceforge.net/)

* possibly Gwenview -- "Gwenview can load and save all image formats
supported by KDE" (http://gwenview.sourceforge.net/overview)

As far as I know, newer versions of Quicktime and OS X support
OpenEXR, so Quicktime viewers and viewers that use Apples' image I/O
frame work should be able to display .exr images.

Florian
Post by Eric Boer
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?
Thanks,
Eric
_______________________________________________
Openexr-user mailing list
http://lists.nongnu.org/mailman/listinfo/openexr-user
Brad Hards
2006-06-07 10:26:28 UTC
Permalink
Post by Florian Kainz
The following viewers support OpenEXR. Most likely there are more.
Free
* KSquirrel (http://ksquirrel.sourceforge.net/)
* possibly Gwenview -- "Gwenview can load and save all image formats
supported by KDE" (http://gwenview.sourceforge.net/overview)
If these use the kimgio plugin I wrote, then it'll convert to a QImage, which
is 8 bit per channel RGB (and you can't vary the parameters in the
conversion).

However krita (image editting / painting application that is part of KOffice
1.5) can read, edit (in 16 bit) and write EXR images. Well worth a look if
you have a suitable operating system (Linux or other unix, including Macos, I
think) and are looking for a free (as in freedom, and as in free of cost)
tool with some very useful capabilities.

Brad

Eric Boer
2006-06-06 18:38:35 UTC
Permalink
Thanks Florian,

I had come across P3Do in some further googling, I also found XnView
which seems to work nicely. I will definitely look at rv and the free
ones too, they always fit nicely into the budget.

Eric

-----Original Message-----
From: Florian Kainz [mailto:***@ilm.com]
Sent: Tuesday, June 06, 2006 11:33 AM
To: Eric Boer
Cc: openexr-***@nongnu.org
Subject: Re: [Openexr-user] Image viewer with exr support?

The following viewers support OpenEXR. Most likely there are more.

Commercial

* framecycler (http://www.framecycler.com/)

* P3dO Explorer (http://www.senosoft.com/softp3do.php)

* rv, a new image viewer from from Tweak Films, supports OpenEXR;
I don't know if the product has already been officially released.
You may want to contact Tweak (ttp://www.tweakfilms.com/).

Free

* KSquirrel (http://ksquirrel.sourceforge.net/)

* possibly Gwenview -- "Gwenview can load and save all image
formats
supported by KDE" (http://gwenview.sourceforge.net/overview)

As far as I know, newer versions of Quicktime and OS X support
OpenEXR, so Quicktime viewers and viewers that use Apples' image I/O
frame work should be able to display .exr images.

Florian
Post by Eric Boer
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?
Thanks,
Eric
_______________________________________________
Openexr-user mailing list
http://lists.nongnu.org/mailman/listinfo/openexr-user
Klaus Steden
2006-06-06 18:50:49 UTC
Permalink
Post by Eric Boer
Thanks Florian,
I had come across P3Do in some further googling, I also found XnView
which seems to work nicely. I will definitely look at rv and the free
ones too, they always fit nicely into the budget.
Eric,

Which version of XnView supports EXR in the meantime? We use that all over
our facility ...

Klaus
Deke Kincaid
2006-06-06 20:53:29 UTC
Permalink
Post by Klaus Steden
Which version of XnView supports EXR in the meantime? We use that all over
our facility ...
xnview has support in it for the last 2 years I believe.

-deke
Florian Kainz
2006-06-06 21:45:21 UTC
Permalink
Post by Deke Kincaid
Post by Klaus Steden
Which version of XnView supports EXR in the meantime? We use that all over
our facility ...
xnview has support in it for the last 2 years I believe.
xnview.com does not list OpenEXR or EXR as one of the supported formats.
Klaus Steden
2006-06-06 22:01:37 UTC
Permalink
Post by Florian Kainz
Post by Deke Kincaid
Post by Klaus Steden
Which version of XnView supports EXR in the meantime? We use that all
over our facility ...
xnview has support in it for the last 2 years I believe.
xnview.com does not list OpenEXR or EXR as one of the supported formats.
We've been using it for at least three years, and are pretty current
(1.68) and it definitely doesn't support EXR.

Klaus
Deke Kincaid
2006-06-06 22:26:16 UTC
Permalink
Post by Klaus Steden
We've been using it for at least three years, and are pretty current
(1.68) and it definitely doesn't support EXR.
Klaus
1.68 is 2.5 years old, there have been 8 releases since then.

-deke
Klaus Steden
2006-06-07 03:47:27 UTC
Permalink
Post by Deke Kincaid
Post by Klaus Steden
We've been using it for at least three years, and are pretty current
(1.68) and it definitely doesn't support EXR.
Klaus
1.68 is 2.5 years old, there have been 8 releases since then.
Whelp that'll do it. :>

Time to upgrade!

Klaus
Deke Kincaid
2006-06-06 22:14:30 UTC
Permalink
Post by Florian Kainz
xnview.com does not list OpenEXR or EXR as one of the supported formats.
No idea why it's not on the main page, but it is supported for read
only, not write:
http://perso.orange.fr/charries/xnv/extensions.html

I thought I saw a post from you on the xnview forum in the fall about
gamma issues with exr. Maybe not.

-deke
Chris Cox
2006-06-06 21:00:11 UTC
Permalink
Adobe Photoshop CS2, and Adobe Bridge that comes with Photoshop CS2.

Chris
Post by Eric Boer
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?
Thanks,
Eric
_______________________________________________
Openexr-user mailing list
http://lists.nongnu.org/mailman/listinfo/openexr-user
Eric Boer
2006-06-06 22:26:50 UTC
Permalink
Yep, I am viewing exr's in xnview 1.82.4 at this moment. Exr's are Half
float Zip (16 blocks) and view fine. Haven't tried throwing any other
flavors at it yet.

Eric

-----Original Message-----
From: openexr-user-bounces+ericb=***@nongnu.org
[mailto:openexr-user-bounces+ericb=***@nongnu.org] On Behalf Of
Deke Kincaid
Sent: Tuesday, June 06, 2006 3:15 PM
To: openexr-***@nongnu.org
Subject: Re: [Openexr-user] Image viewer with exr support?
Post by Florian Kainz
xnview.com does not list OpenEXR or EXR as one of the supported
formats.

No idea why it's not on the main page, but it is supported for read
only, not write:
http://perso.orange.fr/charries/xnv/extensions.html

I thought I saw a post from you on the xnview forum in the fall about
gamma issues with exr. Maybe not.

-deke
Continue reading on narkive:
Loading...