PatrickPalmer / dpx

SMPTE DPX v2 Image Format reader/writer
BSD 3-Clause "New" or "Revised" License
24 stars 5 forks source link

Problem with saving dpx image #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Trying to write dpx file using the data taken from IplImage (OpenCv)/ This 
means the data is unsigned char with 3 channels for RGB. Using 10-bits format. 
The application crushed due to accessing to unallocated memory. Could correct 
this issue by changing reinterpret_cast<IB*> (line 274 WriterInternal.h) to 
creating new array of type IB and filling it with values from imageBuf.
2. So the application could finish successfully, but still the resulting 
written image is fully black.

What is the expected output? What do you see instead?
RGB image of dpx format with proper scene on it, instead i get black image.

What version of the product are you using? On what operating system?
I'm running r3 on Windows, Visual Studio 2008.

Please provide any additional information below.
If i correct any issue in the project if you don't mind i could update version 
here.

Original issue reported on code.google.com by svetlana...@pisem.net on 1 Nov 2010 at 2:45

GoogleCodeExporter commented 9 years ago
Could you provide a code snippet showing how you were using the library? It is 
being used in production in the OpenImageIO library 
(http://www.openimageio.org/) and it's causing no problems whatsoever there. 
Sony Picture Imageworks is among its users.

Also please make sure you're using the SVN trunk, the download version is 
obsolete.

Original comment by ineqvat...@gmail.com on 27 May 2011 at 7:05