Summary: | Speedup png reading | ||
---|---|---|---|
Product: | cairo | Reporter: | Billy Biggs <billy.biggs> |
Component: | png functions | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | minor | ||
Priority: | high | ||
Version: | 0.9.3 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Patch |
Description
Billy Biggs
2005-08-14 19:29:31 UTC
Created attachment 2859 [details] [review] Patch The patch looks fairly good to me. Here are a few (very minor) comments: Why does this use "__inline__" rather than the C99 "inline"? Or it could be a macro similar to the other multiplication macro (macros?) we have elsewhere in the implementation. I don't like the single-letter ientifiers "a" and "r" if they're intended to refer to specific things. Maybe alpha? and color? But if the arguments are interchangable, then single-letter generic names would be better. "a" and "b" ? And if so, perhaps "multiply_alpha" should also have a more generic name. Anyway, feel free to resolve those as you see fit, then commit. Released to HEAD with modifications. I don't know what the correct thing is to do for asking the compiler to inline things. I would think that if it's OK to depend on C99, using that "inline" would be a good thing. However, since I am unsure, and since pixman uses __inline__ for gcc, I used that for this commit (with a macro in cairoint.h). Hopefully someone who knows these things better can fix it in both cairo and pixman if it's wrong. Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.