-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
What steps will reproduce the problem?
1. Take a dpx in 4:2:2 CbCr 10bits filledmethodA with width 2048
2. Try to read the data or to convert to tiff
What is the expected output? What do you see instead?
There is one "Y" that is truncated at the end of the first line. => second line
things Cb is Y.
What version of the product are you using? On what operating system?
Windows. "0.5.0". Operating system not related item.
Please provide any additional information below.
offset calculation is wrong in Read10bitFilled function.
When reading a full image using Read10bitFilled function:
For an image of 2048 bytes, offset of line 1 is calculated as
"1365 * 4 bytes". It should be "1366 * 4 bytes"
Indeed, you need 1 4bytes word for 3 components (Y or Cb or Cr).
=> offset in number of words on line 1 should be
number of components = (2048*2)
number of words = (2048*2)/3 = 1365,3333
If you use 1365, the last "Y" of the line will be truncated and lost. Correct
value is 1366.
Original issue reported on code.google.com by Charles....@gmail.com on 25 Jul 2013 at 7:42
Reactions are currently unavailable