OLD | NEW |
1 //------------------------------------------------------------------------------
--- | 1 //------------------------------------------------------------------------------
--- |
2 // | 2 // |
3 // Little Color Management System | 3 // Little Color Management System |
4 // Copyright (c) 1998-2014 Marti Maria Saguer | 4 // Copyright (c) 1998-2014 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 4207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4218 | 4218 |
4219 if (!_cmsReadFloat32Number(io, &v)) { | 4219 if (!_cmsReadFloat32Number(io, &v)) { |
4220 _cmsFree(self ->ContextID, Matrix); | 4220 _cmsFree(self ->ContextID, Matrix); |
4221 _cmsFree(self ->ContextID, Offsets); | 4221 _cmsFree(self ->ContextID, Offsets); |
4222 return NULL; | 4222 return NULL; |
4223 } | 4223 } |
4224 Offsets[i] = v; | 4224 Offsets[i] = v; |
4225 } | 4225 } |
4226 | 4226 |
4227 | 4227 |
4228 mpe = cmsStageAllocMatrix(self ->ContextID, InputChans, OutputChans, Matrix,
Offsets); | 4228 mpe = cmsStageAllocMatrix(self ->ContextID, OutputChans, InputChans, Matrix,
Offsets); |
4229 _cmsFree(self ->ContextID, Matrix); | 4229 _cmsFree(self ->ContextID, Matrix); |
4230 _cmsFree(self ->ContextID, Offsets); | 4230 _cmsFree(self ->ContextID, Offsets); |
4231 | 4231 |
4232 *nItems = 1; | 4232 *nItems = 1; |
4233 | 4233 |
4234 return mpe; | 4234 return mpe; |
4235 | 4235 |
4236 cmsUNUSED_PARAMETER(SizeOfTag); | 4236 cmsUNUSED_PARAMETER(SizeOfTag); |
4237 } | 4237 } |
4238 | 4238 |
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5570 | 5570 |
5571 for (pt = SupportedTags; | 5571 for (pt = SupportedTags; |
5572 pt != NULL; | 5572 pt != NULL; |
5573 pt = pt ->Next) { | 5573 pt = pt ->Next) { |
5574 | 5574 |
5575 if (sig == pt -> Signature) return &pt ->Descriptor; | 5575 if (sig == pt -> Signature) return &pt ->Descriptor; |
5576 } | 5576 } |
5577 | 5577 |
5578 return NULL; | 5578 return NULL; |
5579 } | 5579 } |
OLD | NEW |