/external/opencv3/3rdparty/libtiff/ |
tif_close.c | 43 * @param tif A TIFF pointer. 47 TIFFCleanup(TIFF* tif) 52 if (tif->tif_mode != O_RDONLY) 53 TIFFFlush(tif); 54 (*tif->tif_cleanup)(tif); 55 TIFFFreeDirectory(tif); 57 if (tif->tif_dirlist) 58 _TIFFfree(tif->tif_dirlist); 63 while( tif->tif_clientinfo [all...] |
tif_flush.c | 33 TIFFFlush(TIFF* tif) 35 if( tif->tif_mode == O_RDONLY ) 38 if (!TIFFFlushData(tif)) 46 if( (tif->tif_flags & TIFF_DIRTYSTRIP) 47 && !(tif->tif_flags & TIFF_DIRTYDIRECT) 48 && tif->tif_mode == O_RDWR ) 52 if( TIFFIsTiled(tif) ) 54 if( TIFFGetField( tif, TIFFTAG_TILEOFFSETS, &offsets ) 55 && TIFFGetField( tif, TIFFTAG_TILEBYTECOUNTS, &sizes ) 56 && _TIFFRewriteField( tif, TIFFTAG_TILEOFFSETS, TIFF_LONG8 [all...] |
tif_dumpmode.c | 35 DumpFixupTags(TIFF* tif) 37 (void) tif; 45 DumpModeEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) 52 if (tif->tif_rawcc + n > tif->tif_rawdatasize) 53 n = tif->tif_rawdatasize - tif->tif_rawcc; 61 if (tif->tif_rawcp != pp) 62 _TIFFmemcpy(tif->tif_rawcp, pp, n); 63 tif->tif_rawcp += n [all...] |
tif_open.c | 86 TIFF *tif; local 119 tif = (TIFF *)_TIFFmalloc((tmsize_t)(sizeof (TIFF) + strlen(name) + 1)); 120 if (tif == NULL) { 124 _TIFFmemset(tif, 0, sizeof (*tif)); 125 tif->tif_name = (char *)tif + sizeof (TIFF); 126 strcpy(tif->tif_name, name); 127 tif->tif_mode = m &~ (O_CREAT|O_TRUNC); 128 tif->tif_curdir = (uint16) -1; /* non-existent directory * [all...] |
tif_jpeg_12.c | 12 int TIFFReInitJPEG_12( TIFF *tif, int scheme, int is_encode ) 19 sp = JState(tif); 20 sp->tif = tif; /* back link */ 25 tif->tif_tagmethods.vgetfield = JPEGVGetField; /* hook for codec tags */ 26 tif->tif_tagmethods.vsetfield = JPEGVSetField; /* hook for codec tags */ 27 tif->tif_tagmethods.printdir = JPEGPrintDir; /* hook for codec tags */ 32 tif->tif_fixuptags = JPEGFixupTags; 33 tif->tif_setupdecode = JPEGSetupDecode; 34 tif->tif_predecode = JPEGPreDecode [all...] |
tif_write.c | 37 #define WRITECHECKSTRIPS(tif, module) \ 38 (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),0,module)) 39 #define WRITECHECKTILES(tif, module) \ 40 (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),1,module)) 41 #define BUFFERCHECK(tif) \ 42 ((((tif)->tif_flags & TIFF_BUFFERSETUP) && tif->tif_rawdata) || \ 43 TIFFWriteBufferSetup((tif), NULL, (tmsize_t) -1) [all...] |
tif_jbig.c | 40 static int JBIGSetupDecode(TIFF* tif) 42 if (TIFFNumberOfStrips(tif) != 1) 44 TIFFErrorExt(tif->tif_clientdata, "JBIG", "Multistrip images not supported in decoder"); 51 static int JBIGDecode(TIFF* tif, uint8* buffer, tmsize_t size, uint16 s) 58 if (isFillOrder(tif, tif->tif_dir.td_fillorder)) 60 TIFFReverseBits(tif->tif_rawdata, tif->tif_rawdatasize); 66 jbg_newlen(tif->tif_rawdata, (size_t)tif->tif_rawdatasize) 147 TIFF* tif = (TIFF*)userData; local [all...] |
tif_read.c | 34 int TIFFFillStrip(TIFF* tif, uint32 strip); 35 int TIFFFillTile(TIFF* tif, uint32 tile); 36 static int TIFFStartStrip(TIFF* tif, uint32 strip); 37 static int TIFFStartTile(TIFF* tif, uint32 tile); 40 TIFFReadRawStrip1(TIFF* tif, uint32 strip, void* buf, tmsize_t size,const char* module); 46 TIFFFillStripPartial( TIFF *tif, int strip, tmsize_t read_ahead, int restart ) 49 register TIFFDirectory *td = &tif->tif_dir; 55 if (!_TIFFFillStriles( tif ) || !tif->tif_dir.td_stripbytecount) 65 if (read_ahead*2 > tif->tif_rawdatasize) [all...] |
tif_compress.c | 35 TIFFNoEncode(TIFF* tif, const char* method) 37 const TIFFCodec* c = TIFFFindCODEC(tif->tif_dir.td_compression); 40 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 44 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 46 tif->tif_dir.td_compression, method); 52 _TIFFNoRowEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) 55 return (TIFFNoEncode(tif, "scanline")); 59 _TIFFNoStripEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s [all...] |
tif_lzma.c | 62 #define LState(tif) ((LZMAState*) (tif)->tif_data) 63 #define DecoderState(tif) LState(tif) 64 #define EncoderState(tif) LState(tif) 66 static int LZMAEncode(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s); 67 static int LZMADecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s); 103 LZMAFixupTags(TIFF* tif) 105 (void) tif; [all...] |
tif_zip.c | 80 #define ZState(tif) ((ZIPState*) (tif)->tif_data) 81 #define DecoderState(tif) ZState(tif) 82 #define EncoderState(tif) ZState(tif) 84 static int ZIPEncode(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s); 85 static int ZIPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s); 88 ZIPFixupTags(TIFF* tif) 90 (void) tif; [all...] |
tif_dirwrite.c | 35 #define TIFFCvtNativeToIEEEFloat(tif, n, fp) 36 #define TIFFCvtNativeToIEEEDouble(tif, n, dp) 38 extern void TIFFCvtNativeToIEEEFloat(TIFF* tif, uint32 n, float* fp); 39 extern void TIFFCvtNativeToIEEEDouble(TIFF* tif, uint32 n, double* dp); 42 static int TIFFWriteDirectorySec(TIFF* tif, int isimage, int imagedone, uint64* pdiroff); 44 static int TIFFWriteDirectoryTagSampleformatArray(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint32 count, double* value); 46 static int TIFFWriteDirectoryTagSampleformatPerSample(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, double value); 49 static int TIFFWriteDirectoryTagAscii(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint32 count, char* value); 50 static int TIFFWriteDirectoryTagUndefinedArray(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint32 count, uint8* value); 52 static int TIFFWriteDirectoryTagByte(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint8 value) [all...] |
tif_fax3.c | 65 #define Fax3State(tif) ((Fax3BaseState*) (tif)->tif_data) 89 #define DecoderState(tif) ((Fax3CodecState*) Fax3State(tif)) 90 #define EncoderState(tif) ((Fax3CodecState*) Fax3State(tif)) 103 #define DECLARE_STATE(tif, sp, mod) \ 105 Fax3CodecState* sp = DecoderState(tif); \ 118 #define DECLARE_STATE_2D(tif, sp, mod) \ 119 DECLARE_STATE(tif, sp, mod); [all...] |
tif_extension.c | 36 int TIFFGetTagListCount( TIFF *tif ) 39 TIFFDirectory* td = &tif->tif_dir; 44 uint32 TIFFGetTagListEntry( TIFF *tif, int tag_index ) 47 TIFFDirectory* td = &tif->tif_dir; 60 TIFFTagMethods *TIFFAccessTagMethods( TIFF *tif ) 63 return &(tif->tif_tagmethods); 66 void *TIFFGetClientInfo( TIFF *tif, const char *name ) 69 TIFFClientInfoLink *link = tif->tif_clientinfo; 80 void TIFFSetClientInfo( TIFF *tif, void *data, const char *name ) 83 TIFFClientInfoLink *link = tif->tif_clientinfo [all...] |
/external/pdfium/third_party/libtiff/ |
tif_close.c | 43 * @param tif A TIFF pointer. 47 TIFFCleanup(TIFF* tif) 52 if (tif->tif_mode != O_RDONLY) 53 TIFFFlush(tif); 54 (*tif->tif_cleanup)(tif); 55 TIFFFreeDirectory(tif); 57 if (tif->tif_dirlist) 58 _TIFFfree(tif->tif_dirlist); 63 while( tif->tif_clientinfo [all...] |
tif_flush.c | 33 TIFFFlush(TIFF* tif) 35 if( tif->tif_mode == O_RDONLY ) 38 if (!TIFFFlushData(tif)) 46 if( (tif->tif_flags & TIFF_DIRTYSTRIP) 47 && !(tif->tif_flags & TIFF_DIRTYDIRECT) 48 && tif->tif_mode == O_RDWR ) 52 if( TIFFIsTiled(tif) ) 54 if( TIFFGetField( tif, TIFFTAG_TILEOFFSETS, &offsets ) 55 && TIFFGetField( tif, TIFFTAG_TILEBYTECOUNTS, &sizes ) 56 && _TIFFRewriteField( tif, TIFFTAG_TILEOFFSETS, TIFF_LONG8, [all...] |
tif_dumpmode.c | 35 DumpFixupTags(TIFF* tif) 37 (void) tif; 45 DumpModeEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) 52 if (tif->tif_rawcc + n > tif->tif_rawdatasize) 53 n = tif->tif_rawdatasize - tif->tif_rawcc; 61 if (tif->tif_rawcp != pp) 62 _TIFFmemcpy(tif->tif_rawcp, pp, n); 63 tif->tif_rawcp += n [all...] |
tif_open.c | 86 TIFF *tif; local 119 tif = (TIFF *)_TIFFmalloc((tmsize_t)(sizeof (TIFF) + strlen(name) + 1)); 120 if (tif == NULL) { 124 _TIFFmemset(tif, 0, sizeof (*tif)); 125 tif->tif_name = (char *)tif + sizeof (TIFF); 126 strcpy(tif->tif_name, name); 127 tif->tif_mode = m &~ (O_CREAT|O_TRUNC); 128 tif->tif_curdir = (uint16) -1; /* non-existent directory * [all...] |
tif_write.c | 37 #define WRITECHECKSTRIPS(tif, module) \ 38 (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),0,module)) 39 #define WRITECHECKTILES(tif, module) \ 40 (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),1,module)) 41 #define BUFFERCHECK(tif) \ 42 ((((tif)->tif_flags & TIFF_BUFFERSETUP) && tif->tif_rawdata) || \ 43 TIFFWriteBufferSetup((tif), NULL, (tmsize_t) -1) [all...] |
tif_read.c | 34 int TIFFFillStrip(TIFF* tif, uint32 strip); 35 int TIFFFillTile(TIFF* tif, uint32 tile); 36 static int TIFFStartStrip(TIFF* tif, uint32 strip); 37 static int TIFFStartTile(TIFF* tif, uint32 tile); 40 TIFFReadRawStrip1(TIFF* tif, uint32 strip, void* buf, tmsize_t size,const char* module); 46 TIFFFillStripPartial( TIFF *tif, int strip, tmsize_t read_ahead, int restart ) 49 register TIFFDirectory *td = &tif->tif_dir; 55 if (!_TIFFFillStriles( tif ) || !tif->tif_dir.td_stripbytecount) 65 if (read_ahead*2 > tif->tif_rawdatasize) [all...] |
tif_compress.c | 35 TIFFNoEncode(TIFF* tif, const char* method) 37 const TIFFCodec* c = TIFFFindCODEC(tif->tif_dir.td_compression); 40 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 44 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 46 tif->tif_dir.td_compression, method); 52 _TIFFNoRowEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) 55 return (TIFFNoEncode(tif, "scanline")); 59 _TIFFNoStripEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s [all...] |
tif_zip.c | 82 #define ZState(tif) ((ZIPState*) (tif)->tif_data) 83 #define DecoderState(tif) ZState(tif) 84 #define EncoderState(tif) ZState(tif) 86 static int ZIPEncode(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s); 87 static int ZIPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s); 90 ZIPFixupTags(TIFF* tif) 92 (void) tif; [all...] |
tif_tile.c | 38 TIFFComputeTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s) 40 TIFFDirectory *td = &tif->tif_dir; 75 TIFFCheckTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s) 77 TIFFDirectory *td = &tif->tif_dir; 80 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 87 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 94 TIFFErrorExt(tif->tif_clientdata, tif->tif_name [all...] |
tif_dirwrite.c | 35 #define TIFFCvtNativeToIEEEFloat(tif, n, fp) 36 #define TIFFCvtNativeToIEEEDouble(tif, n, dp) 38 extern void TIFFCvtNativeToIEEEFloat(TIFF* tif, uint32 n, float* fp); 39 extern void TIFFCvtNativeToIEEEDouble(TIFF* tif, uint32 n, double* dp); 42 static int TIFFWriteDirectorySec(TIFF* tif, int isimage, int imagedone, uint64* pdiroff); 44 static int TIFFWriteDirectoryTagSampleformatArray(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint32 count, double* value); 46 static int TIFFWriteDirectoryTagSampleformatPerSample(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, double value); 49 static int TIFFWriteDirectoryTagAscii(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint32 count, char* value); 50 static int TIFFWriteDirectoryTagUndefinedArray(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint32 count, uint8* value); 52 static int TIFFWriteDirectoryTagByte(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint8 value) [all...] |
tif_fax3.c | 65 #define Fax3State(tif) ((Fax3BaseState*) (tif)->tif_data) 89 #define DecoderState(tif) ((Fax3CodecState*) Fax3State(tif)) 90 #define EncoderState(tif) ((Fax3CodecState*) Fax3State(tif)) 103 #define DECLARE_STATE(tif, sp, mod) \ 105 Fax3CodecState* sp = DecoderState(tif); \ 118 #define DECLARE_STATE_2D(tif, sp, mod) \ 119 DECLARE_STATE(tif, sp, mod); [all...] |