Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/qcms/src/iccread.c

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/qcms/google.patch ('k') | third_party/qcms/src/qcms.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* vim: set ts=8 sw=8 noexpandtab: */ 1 /* vim: set ts=8 sw=8 noexpandtab: */
2 // qcms 2 // qcms
3 // Copyright (C) 2009 Mozilla Foundation 3 // Copyright (C) 2009 Mozilla Foundation
4 // Copyright (C) 1998-2007 Marti Maria 4 // Copyright (C) 1998-2007 Marti Maria
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 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 invalid_profile: 1160 invalid_profile:
1161 qcms_profile_release(profile); 1161 qcms_profile_release(profile);
1162 return INVALID_PROFILE; 1162 return INVALID_PROFILE;
1163 } 1163 }
1164 1164
1165 qcms_bool qcms_profile_match(qcms_profile *p1, qcms_profile *p2) 1165 qcms_bool qcms_profile_match(qcms_profile *p1, qcms_profile *p2)
1166 { 1166 {
1167 return memcmp(p1->description, p2->description, sizeof p1->description) == 0 ; 1167 return memcmp(p1->description, p2->description, sizeof p1->description) == 0 ;
1168 } 1168 }
1169 1169
1170 const char* qcms_profile_get_description(qcms_profile *profile)
1171 {
1172 return profile->description;
1173 }
1174
1170 qcms_intent qcms_profile_get_rendering_intent(qcms_profile *profile) 1175 qcms_intent qcms_profile_get_rendering_intent(qcms_profile *profile)
1171 { 1176 {
1172 return profile->rendering_intent; 1177 return profile->rendering_intent;
1173 } 1178 }
1174 1179
1175 icColorSpaceSignature 1180 icColorSpaceSignature
1176 qcms_profile_get_color_space(qcms_profile *profile) 1181 qcms_profile_get_color_space(qcms_profile *profile)
1177 { 1182 {
1178 return profile->color_space; 1183 return profile->color_space;
1179 } 1184 }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 { 1269 {
1265 qcms_profile *profile = NULL; 1270 qcms_profile *profile = NULL;
1266 FILE *file = _wfopen(path, L"rb"); 1271 FILE *file = _wfopen(path, L"rb");
1267 if (file) { 1272 if (file) {
1268 profile = qcms_profile_from_file(file); 1273 profile = qcms_profile_from_file(file);
1269 fclose(file); 1274 fclose(file);
1270 } 1275 }
1271 return profile; 1276 return profile;
1272 } 1277 }
1273 #endif 1278 #endif
OLDNEW
« no previous file with comments | « third_party/qcms/google.patch ('k') | third_party/qcms/src/qcms.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698