Closed
Bug 366214
Opened 18 years ago
Closed 18 years ago
Followon for 325906 and some more improvements for JPEG in Cairo
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
VERIFIED
FIXED
People
(Reporter: alfredkayser, Assigned: alfredkayser)
Details
Attachments
(1 file, 1 obsolete file)
8.76 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Attachment #250745 -
Flags: review?(pavlov)
Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•18 years ago
|
||
Patch description:
1. Use row_stride and bpr only in non-Cairo builds (for the RGBRow buffer)
(as jpg scanlines are always 3 bytes (in current config anyway)
2. Use 'client_data' to keep the pointer to the decoder instead of the offsetof hack
3. Call 'img->ImageUpdated' not for every scanline, but for every batch of scanlines received (just like OnDataAvailable).
Ad 1: Allows for better Cairo and non-Cairo separation
Ad 2: Removes the need for the offsetof hack
Ad 3: Makes image decoding for JPG in Cairo a lot faster (at least it feels faster)
Comment 2•18 years ago
|
||
(Betting you didn't mean to assign to nobody@mozilla.org)
Assignee: nobody → alfredkayser
Status: ASSIGNED → NEW
Comment 3•18 years ago
|
||
Comment on attachment 250745 [details] [diff] [review]
Patch to remove warnings and some optimize Jpg in Cairo
this looks good. the non-cairo code can also be removed at this point but may want to do that in a separate patch.
Attachment #250745 -
Flags: review?(pavlov) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #250745 -
Flags: superreview?(tor)
Comment on attachment 250745 [details] [diff] [review]
Patch to remove warnings and some optimize Jpg in Cairo
> nsJPEGDecoder::OutputScanlines()
> {
...
> #if defined(MOZ_CAIRO_GFX)
...
>+#else
>+ // Note! row_stride here must match the row_stride in
>+ // nsJPEGDecoder::WriteFrom
>+#if defined(MOZ_CAIRO_GFX) || defined(XP_MAC) || defined(XP_MACOSX)
This test is inside a !defined(MOZ_CAIRO_GFX) chunk, so remove the first condition. With that, sr=tor.
Attachment #250745 -
Flags: superreview?(tor) → superreview+
Comment 6•18 years ago
|
||
Please diff from mozilla/ so it's easier to apply your patches. Also attaching the diff with comments addressed would be appreciated.
Checked in with tor's comment fixed.
modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp 1.69
modules/libpr0n/decoders/jpeg/nsJPEGDecoder.h 1.24
Attachment #250745 -
Attachment is obsolete: true
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Assignee | ||
Updated•16 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•