Open
Bug 449655
Opened 17 years ago
Updated 3 years ago
nsThebesImage::GetIsImageComplete returns true with interlaced PNG images while only first decompression pass is completed
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
NEW
People
(Reporter: mozilla, Unassigned)
References
()
Details
Attachments
(1 file, 1 obsolete file)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008073015 Minefield/3.0.1
While developing a patch for #395260, I had to rely on the GetIsImageComplete() method to optimize the drawing of image surfaces. I encountered the problem that GetIsImageComplete() would return true for an interlaced image (see url) while it was still not completely decompressed. This image is a PNG image using Adam7 compression as an interlacing algorithm.
The GetIsImageComplete() verifies if the size of the decoded data matches the size of the actual nsThebesImage. In the case of an interlaced image, the first pass will set the mImageComplete to true. This variable should not be set to true and there should be a way to know this image has only been partially decoded since it uses interlacing.
Reproducible: Always
Steps to Reproduce:
1. Patch a Firefox build with #395260's latest attachment
2 [review]. Browse to the url specified above
Actual Results:
If the image renders perfectly, you might be lucky to have a very fast connection with the web server and only the full decompressed image is shown.(Try hard-refreshing the page)
Else, rendering of the image will stop before the decoding is complete and the image will be blurry.
Expected Results:
Image should render more than once, probably two to three times depending of how fast your connection is with the web server. The image quality should gets better and better after each paint until it shows perfectly.
Updated•17 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 1•17 years ago
|
||
Only affected interlaced PNG images.
Reporter | ||
Comment 2•17 years ago
|
||
Attachment #332851 -
Attachment is obsolete: true
Attachment #332853 -
Flags: review?(joe)
Updated•17 years ago
|
Attachment #332853 -
Flags: superreview?(pavlov)
Attachment #332853 -
Flags: review?(joe)
Attachment #332853 -
Flags: review+
Comment 3•16 years ago
|
||
Francis, this patch was bitrotted by my changes to bug 753. Can you update it? With the changes to current review requirements, we can get this in without a superreview (which Stuart is unlikely to do as he's busy).
Updated•16 years ago
|
Attachment #332853 -
Flags: superreview?(pavlov)
Reporter | ||
Comment 4•16 years ago
|
||
To reproduce this issue, we first need to update the patch for 395260, which may be harder to adapt.
You haven't worked on 395260 since last year, right ?
Comment 5•16 years ago
|
||
Correct - it has not been a priority of mine.
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•