Commit Graph

73 Commits

Author SHA1 Message Date
Jeff Muizelaar
c4a49a86d5 Bug 798758. qcms: Fix component order typo. r=Bas
This was caused by bug 791422 (bd16a5d51273)
2012-10-06 08:20:50 -04:00
Jeff Muizelaar
3de99c3be7 Bug 791422. Support more flexibiltiy qcms output format. r=BenWa
This will help support Chrome and should also let us output directly to a cairo
compatible format.
2012-10-03 19:04:25 -04:00
Makoto Kato
6025716d17 Bug 785321 - Replace PRUptrdiff with uintptr_t, prtdiff_t or etc; r=ehsan,jrmuizel 2012-09-14 16:09:52 -04:00
Nathan Froyd
6b9882f0f0 Bug 786413 - fix -pedantic removal in gfx/qcms; r=BenWa 2012-08-28 15:22:09 -04:00
Ehsan Akhgari
845651448b Bug 579517 - Part 5: Add missing StandardInteger.h #includes where needed; r=bsmedberg
Landing on a CLOSED TREE
2012-08-08 17:08:17 -04:00
Ehsan Akhgari
e368dc9c85 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Mike Hommey
70d7c821af Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Jeff Muizelaar
5885617fc0 Bug 764181. Keep the output of the TRC between 0 and 1. r=bgirard
Section 10.16: The domain and range of each function shall be [0,0 1,0].
Any function value outside the range shall be clipped to the range of the function.

--HG--
extra : rebase_source : 165927afb271980259c021fa0af25787be4a7ad3
2012-06-07 16:47:34 -04:00
Gervase Markham
68d38d677f Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Benoit Girard
03519e232c Bug 752254 - qcms - Prefer precache output curves even if a A2B/B2A CLUT is present. r=jmuizelaar
--HG--
extra : rebase_source : fb5135434d7c7c80656a54e21b6e3b6216210b71
2012-05-22 14:51:29 -04:00
Mike Hommey
ec08589480 Bug 755277 - Avoid duplicate rules after bug 748001. r=ted 2012-05-15 19:01:01 +02:00
Makoto Kato
f8b96d58ae Bug 719383 - Remove DIST_INSTALL from gfx/qcms/Makefile. r=jmuizelaar 2012-02-13 14:00:06 +09:00
Bill McCloskey
d895426887 Bug 705332 - Re-enable printing filename in quiet builds (r=njn) 2011-12-08 10:14:06 -08:00
aceman
bee47e05f5 Bug 704210 - Add license headers to files gfx/gl/Makefile.in and gfx/thebes/Makefile.in. r=joe 2011-12-03 13:04:52 +01:00
Nicholas Nethercote
882791c0e6 Bug 703456 - Kill REPORT_BUILD; kill it dead. r=ted. 2011-11-21 18:47:54 -08:00
Benoit Girard
50a9cdb1af Bug 701348 - qcms_transform_precacheLUT_float did not properly free dest buffer. r=jmuizelaar 2011-11-10 08:28:58 -05:00
Gregory Szorc
d0e48e7c69 Merge b-s to m-c 2011-11-10 15:15:29 -08:00
Gregory Szorc
1a1f7b30ae Bug 698248 - Remove unused FORCE_USE_PIC variable; r=khuey 2011-11-01 15:45:23 -07:00
Jeff Muizelaar
d9f4daaff9 Bug 700773. qcms: cleanup up some integer types. r=bgirard
This fixes a couple of warnings in clang and makes things more consistent.

--HG--
extra : rebase_source : feac84090f270461a73de955902bc016b5835616
2011-11-08 15:43:33 -05:00
Yati Sagade
4426ead531 Bug 550969 - Fix white_point_from_temp to handle out of range input. r=jmuizelaar 2011-10-14 14:58:34 -04:00
Landry Breuil
712a60acbc Bug 651444 - inttypes.h is needed on OpenBSD to get uintptr_t; r=jmuizelaar 2011-09-27 19:59:34 +01:00
Landry Breuil
521e9fa30c Bug 651444 - Dont redefine intX_t types on OpenBSD; r=jmuizelaar 2011-09-20 17:32:18 +01:00
Jeff Muizelaar
186fdbec03 Bug 676747. qcms: Fix a warning about using the wrong function type. r=bgirard
--HG--
extra : rebase_source : 177b781ea8f8cc350283bd082cbd3600433c3f82
2011-08-05 09:49:45 -04:00
Benoit Girard
e6e07e47b0 Bug 674230 - Merge from qcms github branch v4; r=jmuizelaar 2011-07-27 10:11:19 -04:00
Jeff Muizelaar
05510f6c09 Bug 672280. qcms: Use C99-style flexible arrays. r=bgirard
This is in preparation for adding more of these for the
upcoming ICCv4 parsing.
2011-07-19 11:17:47 -04:00
Jeff Muizelaar
28b5f7d673 qcms: avoid unnecessary promotion to double. r=ehsan 2011-05-10 12:01:48 -04:00
Jeff Muizelaar
1eac9663aa Bug 605179. qcms: revert build warning fixes. r=ehsan
0ec22e77aefc fixed some build warnings that no longer happen because pedantic is disabled.
2011-05-10 11:55:39 -04:00
Jeff Muizelaar
7d31ce1e77 Bug 648446. Remove -pedantic from CFLAGS in qcms. r=khuey
-pedantic causes warnings that we don't care about
2011-04-08 11:34:16 -07:00
Jeff Muizelaar
b9abe889a0 Bug 646321. qcms: Avoid implicit conversion to double. r=bjacob
The double literal will cause us to unnecessarily convert to double.
2011-04-07 16:59:12 -07:00
Makoto Kato
a63db003fb Bug 613440. Make loading ICM profiles from non-ASCII paths work. r=jmuizelaar 2011-03-30 13:40:47 -04:00
Jeff Muizelaar
76b8dd5301 Bug 506207 - Check the return value of fread to make sure the readed data is valid; r,a=joe 2011-02-28 13:01:05 -08:00
Ms2ger
78236f0f98 Bug 605179 - Fix build warnings in gfx/; r=roc a=bsmedberg
--HG--
extra : rebase_source : f9bd24d5f4bc6124b431ce22e6ac72bd218dc208
2010-12-05 18:38:12 +00:00
Jacek Caban
7e554d4fdb Bug 594769 - qcms fails to compile on mingw r=jmuizelaar a=joe 2010-10-14 21:00:22 +00:00
Benoit Girard
b7fb412e8b Bug 575142 - qcms_transform_create should use transform_free. r=jmuizellar 2010-07-24 20:10:15 -04:00
Daniel Holbert
0a2d04e6df Bug 503279: disable spammy 'missing initializer' warning in imported code within gfx. r=jrmuizel 2010-07-13 11:50:18 -07:00
Justin Wood
7404e635db Bug 467051 - Introduce GLOBAL_DEPS to build system (gfx/cairo) r=vlad, feedback+=ted
--HG--
extra : rebase_source : 3dee9c67387cb9b72dd81da6d52ad996afa2bfae
2010-05-30 22:49:32 -04:00
Jacek Caban
425f7b166a Bug 569475 - Fix qcms linking failure on mingw-w64. r=jmuizelaar
--HG--
extra : rebase_source : 07a082564d002faeaedc4fb57911ec9d64b605fd
2010-06-07 10:16:22 +02:00
Jeff Muizelaar
e6b3a462fa Bug 548612. qcms: Reduce size of output lookup tables. r=bgirard
We currently use a larger output lookup table than we probably need. Switch to
a common define for the table size and lower it. The should also give a small
improvement to startup time because we have fewer lookup table entries to
compute.
2010-06-04 14:48:30 -04:00
Daniel Holbert
d2a1c857c0 Bug 561787: Add missing #include to iccread.c, to fix compile warnings about declarations of memcpy. r=roc 2010-04-28 23:13:13 -07:00
Michael Wu
e7503e900c Bug 556405 - Support building qcms on Android, r=jrmuizel 2010-04-05 17:38:43 -07:00
Jeff Muizelaar
0d8421521c Bug 550188. qcms: remove an empty loop that annoyed coverity. r=bgirard 2010-03-04 12:13:13 -05:00
Steve Snyder
9d5575fe90 qcms: Replace second green table release with release of blue table
Cut 'n' paste gone awry: green output table freed instead of blue.

That is, there exists a release for red, 2 releases for green, and none for
blue.
2010-02-18 15:21:11 -05:00
Makoto Kato
49b6a5ee05 Bug 536725 - Disable SSE1 code on Windows x64 r=jmuizelaar 2010-02-01 17:43:21 +09:00
Shailen
5acc0bfd81 Bug 523848 - qcms typedef clashes on AIX with <sys/types.h>. r=jmuizelaar, sr=roc 2010-01-20 11:21:19 +01:00
Ginn Chen
a4fbc88542 Bug 537070 qcms failed to build with -m64 on Solaris x86_64 r=jrmuizel 2010-01-06 15:02:04 +08:00
Ginn Chen
d8150c3a0f Bug 522440 QCMS: Make sse/sse2 code built with Sun Studio 12 on Solaris r=jmuizelaar, ted.mielczarek 2009-11-20 14:15:39 +08:00
Jeff Muizelaar
50543d8818 Backout 8a790e81279e (bug 528322) because wince doesn't have powf.
The link error was obscured by other errors when I ran this on try...
2009-11-13 11:53:12 -05:00
Jeff Muizelaar
feb0e8dd5f Bug 528322. qcms: Avoid unneeded precision during table creation. r=joe
Switch from pow() to powf() because it's faster and we don't need the
additional precision.  Also avoid unnecessary conversion to and from doubles by
using float constants instead of doubles.
2009-11-13 10:14:13 -05:00
Jeff Muizelaar
0d2d8d41c8 Bug 488800. qcms: accept ICCv4 profiles. r=bobbyholley
ICCv4 profiles are a superset of ICCv2 so it shouldn't hurt us to accept them and
just treat them the same way we do ICCv2 profiles.
2009-10-02 17:57:25 -04:00
Steve Snyder
726ac89b07 Bug 512865. qcms: Improve SSE2 performance, add SSE support. r=jrmuizel
This patch greatly improves the performance of QCMS transformations on x86 &
x86_64 systems.  Some notes:

0. On 32-bit x86 systems it does runtime selection between non-SIMD, SSE, and
SSE2 code paths.

1. On x86_64 systems the SSE2 code path is always taken.  The non-SIMD and SSE
code paths are left intact, but contemporary versions of the GCC and MSVC
compilers will see that they cannot be reached and optimize them away.

2. The execution of the SSE2 code path is reduced by 67%, relative to the
original Intel/Microsoft formatted ASM code.  The relative performance is seen
on a Pentium4 (Northwood) 2.4GHz CPU with DDR1 RAM.

3. The SSE code path provides a 80% reduction in execution time, relative to
the non-SIMD code path.  The relative performance is seen on a Pentium3
(Coppermine) 1.26GHz CPU with SDRAM.

4. The code has been split out into separate files so that it can be built
with different cflags (-msse, and -msse2) when using gcc.

5. Try to land again, this time with __attribute__((__force_align_arg_pointer__))
to avoid crashes on linux.
2009-10-01 14:19:41 -04:00