Closed Bug 350316 Opened 19 years ago Closed 16 years ago

use JDCT_FLOAT

Categories

(Core :: Graphics: ImageLib, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: wbrana, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1b2) Gecko/20060826 BonEcho/2.0b2 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1b2) Gecko/20060826 BonEcho/2.0b2 JDCT_FLOAT could be used to speedup jpeg decoding Reproducible: Always Actual Results: JDCT_ISLOW is used Expected Results: JDCT_FLOAT could be used
Attached patch jpeg-float.patchSplinter Review
Component: General → ImageLib
Product: Firefox → Core
QA Contact: general → imagelib
Version: unspecified → Trunk
You should probably ask for review from tor@acm.org or pavlov@pavlov.net.
Have you timing tests to show that FLOAT performs better than ISLOW on Linux? Most floating point instructions take five or more cycles per operation while integer operations can take from one (addition, subtraction) to four (multiplication). This is why scaled integer math is used to simulate floating point operations. On Windows we use an SIMD IDCT routine which can do far more operations in a given number of cycles than either FLOAT or ISLOW scaler routines can. There are patches to extend the use of SIMD IDCT code to other x86 platforms and hopefully these will be added in the future.
I tested it with djpeg. ISLOW and FLOAT have same speed.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: