Closed
Bug 703231
Opened 14 years ago
Closed 12 years ago
[Mac] High quality down sampling causes scan lines while decoding images
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
WORKSFORME
mozilla11
People
(Reporter: BenWa, Assigned: BenWa)
References
()
Details
Attachments
(1 file, 2 obsolete files)
1020 bytes,
patch
|
joe
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•14 years ago
|
||
Test case: http://infidigm.net/scale.html
Assignee | ||
Comment 2•14 years ago
|
||
Comment 3•14 years ago
|
||
Comment on attachment 575135 [details] [diff] [review]
patch
Review of attachment 575135 [details] [diff] [review]:
-----------------------------------------------------------------
::: image/src/Decoder.cpp
@@ +190,5 @@
> +#ifdef XP_MACOSX
> + // Bug 703231
> + // Because of high quality down sampling on mac we show scan lines while decoding.
> + // Bypass this problem by redrawing the border.
> + mInvalidRect = nsIntRect(mInvalidRect.x-1, mInvalidRect.y-1, mInvalidRect.width+2, mInvalidRect.height+2);
Use .Inflate(1) instead, and test what ends up happening if we invalidate (-1, -1) to (width, height).
Attachment #575135 -
Flags: review?(joe) → review+
Assignee | ||
Comment 4•14 years ago
|
||
Non trivial change, re-requesting review.
Attachment #575135 -
Attachment is obsolete: true
Attachment #575144 -
Flags: review?(joe)
Comment 5•14 years ago
|
||
Comment on attachment 575144 [details] [diff] [review]
patch v2
Review of attachment 575144 [details] [diff] [review]:
-----------------------------------------------------------------
::: image/src/Decoder.cpp
@@ +198,5 @@
> + mImage.GetHeight(&height);
> + nsIntRect mImageBound(0, 0, width, height);
> +
> + mInvalidRect.Inflate(1);
> + mInvalidRect = mInvalidRect.Union(mImageBound);
Don't you want to intersect here?
Attachment #575144 -
Flags: review?(joe) → review-
Assignee | ||
Comment 6•14 years ago
|
||
Attachment #575381 -
Flags: review?
Assignee | ||
Updated•14 years ago
|
Attachment #575381 -
Flags: review? → review?(joe)
Comment 7•14 years ago
|
||
Comment on attachment 575381 [details] [diff] [review]
patch v3
Review of attachment 575381 [details] [diff] [review]:
-----------------------------------------------------------------
It'd be handy to have a reftest here. Might be a little tricky, but worthwhile.
Attachment #575381 -
Flags: review?(joe) → review+
Assignee | ||
Comment 8•14 years ago
|
||
Do we have any dupes of this bug? If we don't I find this concerning.
Do you have any ideas how I can capture this in the reftest? The current behavior is timing dependent. Have we written similar reftests in the past?
Comment 9•14 years ago
|
||
You'll have to write an HTTP reftest, similar to the one in layout/reftests/backgrounds/delay-image-response.sjs, but which sends only part of the image, delays a little bit, and then sends the rest.
Assignee | ||
Updated•14 years ago
|
Attachment #575144 -
Attachment is obsolete: true
Assignee | ||
Comment 10•14 years ago
|
||
Comment 11•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite?
OS: Mac OS X → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Version: unspecified → Trunk
Comment 15•14 years ago
|
||
I'm still seeing this with the current Nightly 11.0a1 (2011-12-04) when opening the URL from bug 705224.
Updated•14 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 16•14 years ago
|
||
I have noticed it too. Should we be more aggressive with our repainting area. Do we know what the bound should be?
Comment 17•14 years ago
|
||
We need to have one screen-space pixel be redrawn. So if you can get the inverse transform, then use it to transform 1 unit height into image space, you can use that value instead of just 1 pixel.
Assignee | ||
Comment 18•12 years ago
|
||
I don't see this anymore.
Status: REOPENED → RESOLVED
Closed: 14 years ago → 12 years ago
Resolution: --- → WORKSFORME
Comment 19•11 years ago
|
||
I have the same problem in Firefox 29.0 under Kubuntu 14.04 (fresh install).
You need to log in
before you can comment on or make changes to this bug.
Description
•