SGI decoder corrupts high bit depth images encoded with RLE
| Originator: | vittorio.giovara | ||
| Number: | rdar://23620553 | Date Originated: | 20/11/2015 |
| Status: | Open | Resolved: | |
| Product: | Quicktime | Product Version: | |
| Classification: | Serious bug | Reproducible: | Always |
Summary: It looks like Preview and derivatives cannot decode correctly high bit depth RLE encoded SGI images. I analyzed the problem and found the solution: it looks like the decoder is reading the value of the run-code as little-endian, while any numeric value should be treated always as big-endian (as mandated by the specifications). The raw copy of the RLE decoding correctly reads values as big-endian. Steps to Reproduce: Open one of the images attached ending in "_rle", they are image which are not displayed correctly. Expected Results: Open one of the images attached ending in "_dec", they are how images should appear. Actual Results: Version: QuickTime Version 10.3 (727.4) OSX 10.9.5 (13F1134) Notes: The following conventions are used: - gray16: 1 component, 16 bits each, Y16 - rgb48: 3 components, 16 bits each, R16G16B16 - rgba64: 4 components, 16 bits each, R16G16B16A16 Configuration: Attachments: 'images_sgi-rle.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!