OLD | NEW |
1 //------------------------------------------------------------------------------
--- | 1 //------------------------------------------------------------------------------
--- |
2 // | 2 // |
3 // Little Color Management System | 3 // Little Color Management System |
4 // Copyright (c) 1998-2012 Marti Maria Saguer | 4 // Copyright (c) 1998-2012 Marti Maria Saguer |
5 // | 5 // |
6 // Permission is hereby granted, free of charge, to any person obtaining | 6 // Permission is hereby granted, free of charge, to any person obtaining |
7 // a copy of this software and associated documentation files (the "Software"), | 7 // a copy of this software and associated documentation files (the "Software"), |
8 // to deal in the Software without restriction, including without limitation | 8 // to deal in the Software without restriction, including without limitation |
9 // the rights to use, copy, modify, merge, publish, distribute, sublicense, | 9 // the rights to use, copy, modify, merge, publish, distribute, sublicense, |
10 // and/or sell copies of the Software, and to permit persons to whom the Softwar
e | 10 // and/or sell copies of the Software, and to permit persons to whom the Softwar
e |
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 continue; | 712 continue; |
713 | 713 |
714 Icc -> TagNames[Icc ->TagCount] = Tag.sig; | 714 Icc -> TagNames[Icc ->TagCount] = Tag.sig; |
715 Icc -> TagOffsets[Icc ->TagCount] = Tag.offset; | 715 Icc -> TagOffsets[Icc ->TagCount] = Tag.offset; |
716 Icc -> TagSizes[Icc ->TagCount] = Tag.size; | 716 Icc -> TagSizes[Icc ->TagCount] = Tag.size; |
717 | 717 |
718 // Search for links | 718 // Search for links |
719 for (j=0; j < Icc ->TagCount; j++) { | 719 for (j=0; j < Icc ->TagCount; j++) { |
720 | 720 |
721 if ((Icc ->TagOffsets[j] == Tag.offset) && | 721 if ((Icc ->TagOffsets[j] == Tag.offset) && |
722 (Icc ->TagSizes[j] == Tag.size)) { | 722 (Icc ->TagSizes[j] == Tag.size) && |
| 723 (Icc ->TagNames[j] == Tag.sig)) { |
723 | 724 |
724 Icc ->TagLinked[Icc ->TagCount] = Icc ->TagNames[j]; | 725 Icc ->TagLinked[Icc ->TagCount] = Icc ->TagNames[j]; |
725 } | 726 } |
726 | 727 |
727 } | 728 } |
728 | 729 |
729 Icc ->TagCount++; | 730 Icc ->TagCount++; |
730 } | 731 } |
731 | 732 |
732 return TRUE; | 733 return TRUE; |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1874 { | 1875 { |
1875 _cmsICCPROFILE* Icc = (_cmsICCPROFILE*) hProfile; | 1876 _cmsICCPROFILE* Icc = (_cmsICCPROFILE*) hProfile; |
1876 int i; | 1877 int i; |
1877 | 1878 |
1878 // Search for given tag in ICC profile directory | 1879 // Search for given tag in ICC profile directory |
1879 i = _cmsSearchTag(Icc, sig, FALSE); | 1880 i = _cmsSearchTag(Icc, sig, FALSE); |
1880 if (i < 0) return (cmsTagSignature) 0; // Not found, return
0 | 1881 if (i < 0) return (cmsTagSignature) 0; // Not found, return
0 |
1881 | 1882 |
1882 return Icc -> TagLinked[i]; | 1883 return Icc -> TagLinked[i]; |
1883 } | 1884 } |
OLD | NEW |