Closed Bug 155941 Opened 23 years ago Closed 22 years ago

cleanup of nsPNGDecoder

Categories

(Core :: Graphics: ImageLib, enhancement)

PowerPC
macOS
enhancement
Not set
normal

Tracking

()

VERIFIED WONTFIX

People

(Reporter: tor, Assigned: tor)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Remove unused RGBA code, let libpng do the word padding for MacOS.
Attached patch patch (obsolete) — Splinter Review
OS: Linux → MacOS X
Hardware: PC → Macintosh
Attached patch merge to tipSplinter Review
Attachment #90331 - Attachment is obsolete: true
Attachment #120310 - Flags: review?(cbiesinger)
Attachment #120310 - Flags: review?(cbiesinger) → review+
Attachment #120310 - Flags: superreview?(blizzard)
Comment on attachment 120310 [details] [diff] [review] merge to tip sr=blizzard
Attachment #120310 - Flags: superreview?(blizzard) → superreview+
Checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Please reopen. The checkin triggered bug #202376 and its duplicates. Glenn
Backed out.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Severity: normal → enhancement
Red is full-range but appears to be inverted--at least approximately; some of the yellow areas appear darker than they should, but that may be due to gamma correction. Both green and blue are compressed into the upper quarter of the range (191+ and 188+, respectively), and both appear to be folded or wrapped--for example, the chicken should be nearly black, but only its edges are darker, while the middle is as bright as the wall above it. The main kitten is darkest in its medium-level parts, equally light in both its lightest and darkest regions. I don't see anything immediately obvious in the patch that could do that, but as noted in the other bug, the set-filler call will boost the reported number of channels from 3 to 4, which presumably screws up the logic elsewhere. Two other things come to mind: despite the code it replaces, might it be worthwhile to set the filler value to 0xff so that it can be used as alpha (if only to test an alternate code path)? And is decoder->colorLine ever allocated if channels is _not_ greater than 3? (Maybe it doesn't need to be...) I'm looking only at the patch itself, not the full source code, so I could well be missing things. (Was it the intent to remove the RGBA/BGRA code path even for non-Mac builds?)
png_set_filler() wasn't doing what I expected and will cause the interlace buffer to bloat. Closing as WONTFIX.
Status: REOPENED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → WONTFIX
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: