| OLD | NEW | 
|---|
| 1 //  qcms | 1 //  qcms | 
| 2 //  Copyright (C) 2009 Mozilla Foundation | 2 //  Copyright (C) 2009 Mozilla Foundation | 
| 3 // | 3 // | 
| 4 // Permission is hereby granted, free of charge, to any person obtaining | 4 // Permission is hereby granted, free of charge, to any person obtaining | 
| 5 // a copy of this software and associated documentation files (the "Software"), | 5 // a copy of this software and associated documentation files (the "Software"), | 
| 6 // to deal in the Software without restriction, including without limitation | 6 // to deal in the Software without restriction, including without limitation | 
| 7 // the rights to use, copy, modify, merge, publish, distribute, sublicense, | 7 // the rights to use, copy, modify, merge, publish, distribute, sublicense, | 
| 8 // and/or sell copies of the Software, and to permit persons to whom the Softwar
     e | 8 // and/or sell copies of the Software, and to permit persons to whom the Softwar
     e | 
| 9 // is furnished to do so, subject to the following conditions: | 9 // is furnished to do so, subject to the following conditions: | 
| 10 // | 10 // | 
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 589                         //     measurement or data, however it is what lcms uses
     . | 589                         //     measurement or data, however it is what lcms uses
     . | 
| 590                         *output_gamma_lut_length = trc->count; | 590                         *output_gamma_lut_length = trc->count; | 
| 591                         if (*output_gamma_lut_length < 256) | 591                         if (*output_gamma_lut_length < 256) | 
| 592                                 *output_gamma_lut_length = 256; | 592                                 *output_gamma_lut_length = 256; | 
| 593 | 593 | 
| 594                         *output_gamma_lut = invert_lut(trc->data, trc->count, *o
     utput_gamma_lut_length); | 594                         *output_gamma_lut = invert_lut(trc->data, trc->count, *o
     utput_gamma_lut_length); | 
| 595                 } | 595                 } | 
| 596         } | 596         } | 
| 597 | 597 | 
| 598 } | 598 } | 
| 599 |  | 
| 600 const unsigned short qcms_half_float_base_table[512] = { |  | 
| 601         0,      0,      0,      0,      0,      0,      0,      0,      0,      
     0,      0,      0,      0,      0,      0,      0, |  | 
| 602         0,      0,      0,      0,      0,      0,      0,      0,      0,      
     0,      0,      0,      0,      0,      0,      0, |  | 
| 603         0,      0,      0,      0,      0,      0,      0,      0,      0,      
     0,      0,      0,      0,      0,      0,      0, |  | 
| 604         0,      0,      0,      0,      0,      0,      0,      0,      0,      
     0,      0,      0,      0,      0,      0,      0, |  | 
| 605         0,      0,      0,      0,      0,      0,      0,      0,      0,      
     0,      0,      0,      0,      0,      0,      0, |  | 
| 606         0,      0,      0,      0,      0,      0,      0,      0,      0,      
     0,      0,      0,      0,      0,      0,      0, |  | 
| 607         0,      0,      0,      0,      0,      0,      0,      1,      2,      
     4,      8,      16,     32,     64,     128,    256, |  | 
| 608         512,    1024,   2048,   3072,   4096,   5120,   6144,   7168,   8192,   
     9216,   10240,  11264,  12288,  13312,  14336,  15360, |  | 
| 609         16384,  17408,  18432,  19456,  20480,  21504,  22528,  23552,  24576,  
     25600,  26624,  27648,  28672,  29696,  30720,  31744, |  | 
| 610         31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  
     31744,  31744,  31744,  31744,  31744,  31744,  31744, |  | 
| 611         31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  
     31744,  31744,  31744,  31744,  31744,  31744,  31744, |  | 
| 612         31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  
     31744,  31744,  31744,  31744,  31744,  31744,  31744, |  | 
| 613         31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  
     31744,  31744,  31744,  31744,  31744,  31744,  31744, |  | 
| 614         31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  
     31744,  31744,  31744,  31744,  31744,  31744,  31744, |  | 
| 615         31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  
     31744,  31744,  31744,  31744,  31744,  31744,  31744, |  | 
| 616         31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  31744,  
     31744,  31744,  31744,  31744,  31744,  31744,  31744, |  | 
| 617         32768,  32768,  32768,  32768,  32768,  32768,  32768,  32768,  32768,  
     32768,  32768,  32768,  32768,  32768,  32768,  32768, |  | 
| 618         32768,  32768,  32768,  32768,  32768,  32768,  32768,  32768,  32768,  
     32768,  32768,  32768,  32768,  32768,  32768,  32768, |  | 
| 619         32768,  32768,  32768,  32768,  32768,  32768,  32768,  32768,  32768,  
     32768,  32768,  32768,  32768,  32768,  32768,  32768, |  | 
| 620         32768,  32768,  32768,  32768,  32768,  32768,  32768,  32768,  32768,  
     32768,  32768,  32768,  32768,  32768,  32768,  32768, |  | 
| 621         32768,  32768,  32768,  32768,  32768,  32768,  32768,  32768,  32768,  
     32768,  32768,  32768,  32768,  32768,  32768,  32768, |  | 
| 622         32768,  32768,  32768,  32768,  32768,  32768,  32768,  32768,  32768,  
     32768,  32768,  32768,  32768,  32768,  32768,  32768, |  | 
| 623         32768,  32768,  32768,  32768,  32768,  32768,  32768,  32769,  32770,  
     32772,  32776,  32784,  32800,  32832,  32896,  33024, |  | 
| 624         33280,  33792,  34816,  35840,  36864,  37888,  38912,  39936,  40960,  
     41984,  43008,  44032,  45056,  46080,  47104,  48128, |  | 
| 625         49152,  50176,  51200,  52224,  53248,  54272,  55296,  56320,  57344,  
     58368,  59392,  60416,  61440,  62464,  63488,  64512, |  | 
| 626         64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  
     64512,  64512,  64512,  64512,  64512,  64512,  64512, |  | 
| 627         64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  
     64512,  64512,  64512,  64512,  64512,  64512,  64512, |  | 
| 628         64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  
     64512,  64512,  64512,  64512,  64512,  64512,  64512, |  | 
| 629         64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  
     64512,  64512,  64512,  64512,  64512,  64512,  64512, |  | 
| 630         64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  
     64512,  64512,  64512,  64512,  64512,  64512,  64512, |  | 
| 631         64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  
     64512,  64512,  64512,  64512,  64512,  64512,  64512, |  | 
| 632         64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  64512,  
     64512,  64512,  64512,  64512,  64512,  64512,  64512 |  | 
| 633 }; |  | 
| 634 |  | 
| 635 const unsigned char qcms_half_float_shift_table[512] = { |  | 
| 636         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 637         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 638         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 639         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 640         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 641         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 642         24,     24,     24,     24,     24,     24,     24,     23,     22,     
     21,     20,     19,     18,     17,     16,     15, |  | 
| 643         14,     13,     13,     13,     13,     13,     13,     13,     13,     
     13,     13,     13,     13,     13,     13,     13, |  | 
| 644         13,     13,     13,     13,     13,     13,     13,     13,     13,     
     13,     13,     13,     13,     13,     13,     24, |  | 
| 645         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 646         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 647         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 648         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 649         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 650         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 651         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     13, |  | 
| 652         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 653         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 654         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 655         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 656         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 657         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 658         24,     24,     24,     24,     24,     24,     24,     23,     22,     
     21,     20,     19,     18,     17,     16,     15, |  | 
| 659         14,     13,     13,     13,     13,     13,     13,     13,     13,     
     13,     13,     13,     13,     13,     13,     13, |  | 
| 660         13,     13,     13,     13,     13,     13,     13,     13,     13,     
     13,     13,     13,     13,     13,     13,     24, |  | 
| 661         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 662         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 663         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 664         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 665         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 666         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     24, |  | 
| 667         24,     24,     24,     24,     24,     24,     24,     24,     24,     
     24,     24,     24,     24,     24,     24,     13 |  | 
| 668 }; |  | 
| OLD | NEW | 
|---|