44 "Compression scheme %u %s encoding is not implemented",
54 return (TIFFNoEncode(tif,
"scanline"));
61 return (TIFFNoEncode(tif,
"strip"));
68 return (TIFFNoEncode(tif,
"tile"));
72 TIFFNoDecode(
TIFF* tif,
const char* method)
81 "Compression scheme %u %s decoding is not implemented",
90 return (TIFFNoDecode(tif,
"scanline"));
97 return (TIFFNoDecode(tif,
"strip"));
104 return (TIFFNoDecode(tif,
"tile"));
112 "Compression algorithm does not support random access");
123 static int _TIFFtrue(
TIFF* tif) { (
void) tif;
return (1); }
124 static void _TIFFvoid(
TIFF* tif) { (
void) tif; }
162 return (c ? (*c->
init)(tif, scheme) : 1);
170 typedef struct _codec {
182 for (cd = registeredCODECS; cd; cd = cd->next)
183 if (cd->info->scheme == scheme)
199 cd->info->name = (
char*)
201 strcpy(cd->info->name, name);
202 cd->info->scheme = scheme;
203 cd->info->init = init;
204 cd->next = registeredCODECS;
205 registeredCODECS = cd;
208 "No space to register compression scheme %s", name);
220 for (pcd = ®isteredCODECS; (cd = *pcd); pcd = &cd->next)
227 "Cannot remove compression scheme %s; not registered", c->
name);
250 for (cd = registeredCODECS; cd; cd = cd->next) {
TIFFCodeMethod tif_decoderow
int _TIFFNoStripEncode(TIFF *tif, tidata_t pp, tsize_t cc, tsample_t s)
TIFFPreMethod tif_predecode
TIFFCodeMethod tif_encodestrip
TIFFCodeMethod tif_encoderow
int(* TIFFInitMethod)(TIFF *, int)
int _TIFFNoRowEncode(TIFF *tif, tidata_t pp, tsize_t cc, tsample_t s)
int _TIFFNoSeek(TIFF *tif, uint32 off)
int _TIFFNoTileEncode(TIFF *tif, tidata_t pp, tsize_t cc, tsample_t s)
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
void _TIFFmemcpy(tdata_t d, const tdata_t s, tsize_t c)
TIFFCodec * TIFFRegisterCODEC(uint16 scheme, const char *name, TIFFInitMethod init)
int _TIFFNoStripDecode(TIFF *tif, tidata_t pp, tsize_t cc, tsample_t s)
TIFFCodeMethod tif_decodestrip
TIFFCodeMethod tif_encodetile
int _TIFFNoPreCode(TIFF *tif, tsample_t s)
TIFFTileMethod tif_deftilesize
TIFFPreMethod tif_preencode
uint32 _TIFFDefaultStripSize(TIFF *tif, uint32 s)
TIFFBoolMethod tif_postencode
int _TIFFNoTileDecode(TIFF *tif, tidata_t pp, tsize_t cc, tsample_t s)
void * _TIFFrealloc(tdata_t p, tsize_t s)
int _TIFFNoRowDecode(TIFF *tif, tidata_t pp, tsize_t cc, tsample_t s)
void TIFFErrorExt(thandle_t fd, const char *module, const char *fmt,...)
TIFFCodec * TIFFGetConfiguredCODECs()
Get list of configured codecs, both built-in and registered by user.
TIFFCodeMethod tif_decodetile
const TIFFCodec * TIFFFindCODEC(uint16 scheme)
TIFFVoidMethod tif_cleanup
void _TIFFmemset(tdata_t p, int v, tsize_t c)
void _TIFFSetDefaultCompressionState(TIFF *tif)
void _TIFFDefaultTileSize(TIFF *tif, uint32 *tw, uint32 *th)
GLuint const GLchar * name
TIFFCodec _TIFFBuiltinCODECS[]
void TIFFUnRegisterCODEC(TIFFCodec *c)
int TIFFSetCompressionScheme(TIFF *tif, int scheme)
int TIFFIsCODECConfigured(uint16 scheme)
Check whether we have working codec for the specific coding scheme.
void * _TIFFmalloc(tsize_t s)
void _TIFFfree(tdata_t p)
TIFFBoolMethod tif_setupencode
TIFFStripMethod tif_defstripsize
TIFFBoolMethod tif_setupdecode