OLD | NEW |
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 Corporation | 3 // Copyright (C) 2009 Mozilla Corporation |
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 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 return p; | 873 return p; |
874 } | 874 } |
875 | 875 |
876 void precache_release(struct precache_output *p) | 876 void precache_release(struct precache_output *p) |
877 { | 877 { |
878 if (--p->ref_count == 0) { | 878 if (--p->ref_count == 0) { |
879 free(p); | 879 free(p); |
880 } | 880 } |
881 } | 881 } |
882 | 882 |
883 #ifdef HAS_POSIX_MEMALIGN | 883 #ifdef HAVE_POSIX_MEMALIGN |
884 static qcms_transform *transform_alloc(void) | 884 static qcms_transform *transform_alloc(void) |
885 { | 885 { |
886 qcms_transform *t; | 886 qcms_transform *t; |
887 if (!posix_memalign(&t, 16, sizeof(*t))) { | 887 if (!posix_memalign(&t, 16, sizeof(*t))) { |
888 return t; | 888 return t; |
889 } else { | 889 } else { |
890 return NULL; | 890 return NULL; |
891 } | 891 } |
892 } | 892 } |
893 static void transform_free(qcms_transform *t) | 893 static void transform_free(qcms_transform *t) |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 static const struct _qcms_format_type output_bgrx = { 2, 0 }; | 1338 static const struct _qcms_format_type output_bgrx = { 2, 0 }; |
1339 | 1339 |
1340 transform->transform_fn(transform, src, dest, length, type == QCMS_OUTPU
T_BGRX ? output_bgrx : output_rgbx); | 1340 transform->transform_fn(transform, src, dest, length, type == QCMS_OUTPU
T_BGRX ? output_bgrx : output_rgbx); |
1341 } | 1341 } |
1342 | 1342 |
1343 qcms_bool qcms_supports_iccv4; | 1343 qcms_bool qcms_supports_iccv4; |
1344 void qcms_enable_iccv4() | 1344 void qcms_enable_iccv4() |
1345 { | 1345 { |
1346 qcms_supports_iccv4 = true; | 1346 qcms_supports_iccv4 = true; |
1347 } | 1347 } |
OLD | NEW |