| OLD | NEW |
| 1 /* $Id: tif_codec.c,v 1.15 2010-12-14 12:53:00 dron Exp $ */ | 1 /* $Id: tif_codec.c,v 1.17 2015-08-19 02:31:04 bfriesen Exp $ */ |
| 2 | 2 |
| 3 /* | 3 /* |
| 4 * Copyright (c) 1988-1997 Sam Leffler | 4 * Copyright (c) 1988-1997 Sam Leffler |
| 5 * Copyright (c) 1991-1997 Silicon Graphics, Inc. | 5 * Copyright (c) 1991-1997 Silicon Graphics, Inc. |
| 6 * | 6 * |
| 7 * Permission to use, copy, modify, distribute, and sell this software and | 7 * Permission to use, copy, modify, distribute, and sell this software and |
| 8 * its documentation for any purpose is hereby granted without fee, provided | 8 * its documentation for any purpose is hereby granted without fee, provided |
| 9 * that (i) the above copyright notices and this permission notice appear in | 9 * that (i) the above copyright notices and this permission notice appear in |
| 10 * all copies of the software and related documentation, and (ii) the names of | 10 * all copies of the software and related documentation, and (ii) the names of |
| 11 * Sam Leffler and Silicon Graphics may not be used in any advertising or | 11 * Sam Leffler and Silicon Graphics may not be used in any advertising or |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 { "LZMA", COMPRESSION_LZMA, TIFFInitLZMA }, | 101 { "LZMA", COMPRESSION_LZMA, TIFFInitLZMA }, |
| 102 { NULL, 0, NULL } | 102 { NULL, 0, NULL } |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 static int | 105 static int |
| 106 _notConfigured(TIFF* tif) | 106 _notConfigured(TIFF* tif) |
| 107 { | 107 { |
| 108 const TIFFCodec* c = TIFFFindCODEC(tif->tif_dir.td_compression); | 108 const TIFFCodec* c = TIFFFindCODEC(tif->tif_dir.td_compression); |
| 109 char compression_code[20]; | 109 char compression_code[20]; |
| 110 | 110 |
| 111 sprintf( compression_code, "%d", tif->tif_dir.td_compression ); | 111 sprintf(compression_code, "%d",tif->tif_dir.td_compression ); |
| 112 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, | 112 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, |
| 113 "%s compression support is not configured", | 113 "%s compression support is not configured", |
| 114 c ? c->name : compression_code ); | 114 c ? c->name : compression_code ); |
| 115 return (0); | 115 return (0); |
| 116 } | 116 } |
| 117 | 117 |
| 118 static int | 118 static int |
| 119 NotConfigured(TIFF* tif, int scheme) | 119 NotConfigured(TIFF* tif, int scheme) |
| 120 { | 120 { |
| 121 (void) scheme; | 121 (void) scheme; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 return 0; | 156 return 0; |
| 157 } | 157 } |
| 158 | 158 |
| 159 /* | 159 /* |
| 160 * Local Variables: | 160 * Local Variables: |
| 161 * mode: c | 161 * mode: c |
| 162 * c-basic-offset: 8 | 162 * c-basic-offset: 8 |
| 163 * fill-column: 78 | 163 * fill-column: 78 |
| 164 * End: | 164 * End: |
| 165 */ | 165 */ |
| 166 | |
| OLD | NEW |