Closed Bug 263151 Opened 20 years ago Closed 17 years ago

Turn on libpng MMX optimizations

Categories

(Core :: Graphics: ImageLib, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bernard.alleysson, Assigned: bernard.alleysson)

Details

Attachments

(1 obsolete file)

libpng has support for MMX but it is not currently enabled in Mozilla browsers.
Attached patch enable MMX (obsolete) — Splinter Review
I don't know the status of libpng MMX code, but I guess that this bug has to be
filed. I'm running with it with no problem so far. It should speed up png
decoding in some cases.
tor, let me know if you think it is worth considering.
Is this something worth considering still? Also, is the patch above incomplete? From what I can tell, it also needs the following #defines to be enabled, no?

#define PNG_ASSEMBLER_CODE_SUPPORTED
#define PNG_MMX_CODE_SUPPORTED
#define PNG_HAVE_MMX_READ_FILTER_ROW
#define PNG_HAVE_MMX_READ_INTERLACE
#define PNG_HAVE_MMX_COMBINE_ROW
#define PNG_USE_PNGVCRD
This patch has been used in unofficial builds for quite some time with no problems that I'm aware of. The performance improvement is about 25% in my png image suite.  
Comment on attachment 161259 [details] [diff] [review]
enable MMX

According to the comments in pngconf.h, this patch is actually obsolete anyway.
http://mxr.mozilla.org/mozilla/source/modules/libimg/png/pngconf.h#725
Attachment #161259 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Yes, this bug was fixed by checkin of bug #334110 if not earlier.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: