I have been writing 10 bit RGB DPX files. I seem to get a problem byte when I use little endian outputs. I had a quick look in the code in file dpx.c. The data is written using a macro LSBPackedU32WordToOctets at line 2832.
It looks to me as if the third byte to be written has a shift of 18 bits when it should be a shift of 16 bits but perhaps I have missed a trick?
Many Thanks in advance
Steve
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been writing 10 bit RGB DPX files. I seem to get a problem byte when I use little endian outputs. I had a quick
look in the code in file dpx.c. The data is written using a macro LSBPackedU32WordToOctets at line 2832.
It looks to me as if the third byte to be written has a shift of 18 bits when it should be a shift of 16 bits but
perhaps I have missed a trick?
That looks like a typo to me. I wonder how it could not be detected
up until now (> 9 years!)?
Hi
I have been writing 10 bit RGB DPX files. I seem to get a problem byte when I use little endian outputs. I had a quick look in the code in file dpx.c. The data is written using a macro LSBPackedU32WordToOctets at line 2832.
It looks to me as if the third byte to be written has a shift of 18 bits when it should be a shift of 16 bits but perhaps I have missed a trick?
Many Thanks in advance
Steve
On Fri, 9 Jan 2015, Steve Dabner wrote:
That looks like a typo to me. I wonder how it could not be detected
up until now (> 9 years!)?
Bob
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/