38static int JBIGSetupDecode(
TIFF *tif)
43 "Multistrip images not supported in decoder");
54 unsigned char *pImage =
NULL;
55 unsigned long decodedSize;
65#if defined(HAVE_JBG_NEWLEN)
81 if (JBG_EOK != decodeStatus)
88 TIFFErrorExtR(tif,
"JBIG",
"Error (%d) decoding: %s", decodeStatus,
90 jbg_strerror(decodeStatus, JBG_EN)
92 jbg_strerror(decodeStatus)
100 decodedSize = jbg_dec_getsize(&
decoder);
118 pImage = jbg_dec_getimage(&
decoder, 0);
128static int JBIGSetupEncode(
TIFF *tif)
133 "Multistrip images not supported in encoder");
140static int JBIGCopyEncodedData(
TIFF *tif,
unsigned char *pp,
size_t cc,
168static void JBIGOutputBie(
unsigned char *
buffer,
size_t len,
void *userData)
177 JBIGCopyEncodedData(tif,
buffer,
len, 0);
TIFFCodeMethod tif_encodestrip
TIFFCodeMethod tif_decodestrip
TIFFBoolMethod tif_setupencode
TIFFBoolMethod tif_setupdecode
#define TIFF_SSIZE_FORMAT
void TIFFErrorExtR(TIFF *tif, const char *module, const char *fmt,...)
uint32_t TIFFNumberOfStrips(TIFF *tif)
void TIFFReverseBits(uint8_t *cp, tmsize_t n)
void _TIFFmemcpy(void *d, const void *s, tmsize_t c)
void TIFFWarningExtR(TIFF *tif, const char *module, const char *fmt,...)
int TIFFFlushData1(TIFF *tif)
#define isFillOrder(tif, o)