Home
last modified time | relevance | path

Searched refs:tif (Results 1 – 25 of 92) sorted by relevance

1234

/external/pdfium/third_party/libtiff/
Dtif_write.c37 #define WRITECHECKSTRIPS(tif, module) \ argument
38 (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),0,module))
39 #define WRITECHECKTILES(tif, module) \ argument
40 (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),1,module))
41 #define BUFFERCHECK(tif) \ argument
42 ((((tif)->tif_flags & TIFF_BUFFERSETUP) && tif->tif_rawdata) || \
43 TIFFWriteBufferSetup((tif), NULL, (tmsize_t) -1))
45 static int TIFFGrowStrips(TIFF* tif, uint32 delta, const char* module);
46 static int TIFFAppendToStrip(TIFF* tif, uint32 strip, uint8* data, tmsize_t cc);
49 TIFFWriteScanline(TIFF* tif, void* buf, uint32 row, uint16 sample) in TIFFWriteScanline() argument
[all …]
Dtif_read.c34 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 ) in TIFFFillStripPartial() argument
49 register TIFFDirectory *td = &tif->tif_dir; in TIFFFillStripPartial()
55 if (!_TIFFFillStriles( tif ) || !tif->tif_dir.td_stripbytecount) in TIFFFillStripPartial()
65 if (read_ahead*2 > tif->tif_rawdatasize) { in TIFFFillStripPartial()
68 tif->tif_curstrip = NOSTRIP; in TIFFFillStripPartial()
[all …]
Dtif_open.c86 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 */
129 tif->tif_curoff = 0;
130 tif->tif_curstrip = (uint32) -1; /* invalid strip */
[all …]
Dtif_dirwrite.c35 #define TIFFCvtNativeToIEEEFloat(tif, n, fp) argument
36 #define TIFFCvtNativeToIEEEDouble(tif, n, dp) argument
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, uint1…
46 static int TIFFWriteDirectoryTagSampleformatPerSample(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, u…
49 static int TIFFWriteDirectoryTagAscii(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint3…
50 static int TIFFWriteDirectoryTagUndefinedArray(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 t…
52 static int TIFFWriteDirectoryTagByte(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint8 …
[all …]
Dtif_zip.c82 #define ZState(tif) ((ZIPState*) (tif)->tif_data) argument
83 #define DecoderState(tif) ZState(tif) argument
84 #define EncoderState(tif) ZState(tif) argument
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) in ZIPFixupTags() argument
92 (void) tif; in ZIPFixupTags()
97 ZIPSetupDecode(TIFF* tif) in ZIPSetupDecode() argument
100 ZIPState* sp = DecoderState(tif); in ZIPSetupDecode()
111 TIFFErrorExt(tif->tif_clientdata, module, "%s", SAFE_MSG(sp)); in ZIPSetupDecode()
[all …]
Dtif_dumpmode.c35 DumpFixupTags(TIFF* tif) in DumpFixupTags() argument
37 (void) tif; in DumpFixupTags()
45 DumpModeEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in DumpModeEncode() argument
52 if (tif->tif_rawcc + n > tif->tif_rawdatasize) in DumpModeEncode()
53 n = tif->tif_rawdatasize - tif->tif_rawcc; in DumpModeEncode()
61 if (tif->tif_rawcp != pp) in DumpModeEncode()
62 _TIFFmemcpy(tif->tif_rawcp, pp, n); in DumpModeEncode()
63 tif->tif_rawcp += n; in DumpModeEncode()
64 tif->tif_rawcc += n; in DumpModeEncode()
67 if (tif->tif_rawcc >= tif->tif_rawdatasize && in DumpModeEncode()
[all …]
Dtif_fax3.c65 #define Fax3State(tif) ((Fax3BaseState*) (tif)->tif_data) argument
89 #define DecoderState(tif) ((Fax3CodecState*) Fax3State(tif)) argument
90 #define EncoderState(tif) ((Fax3CodecState*) Fax3State(tif)) argument
103 #define DECLARE_STATE(tif, sp, mod) \ argument
105 Fax3CodecState* sp = DecoderState(tif); \
118 #define DECLARE_STATE_2D(tif, sp, mod) \ argument
119 DECLARE_STATE(tif, sp, mod); \
125 #define CACHE_STATE(tif, sp) do { \ argument
129 cp = (unsigned char*) tif->tif_rawcp; \
130 ep = cp + tif->tif_rawcc; \
[all …]
Dtif_close.c47 TIFFCleanup(TIFF* tif) in TIFFCleanup() argument
52 if (tif->tif_mode != O_RDONLY) in TIFFCleanup()
53 TIFFFlush(tif); in TIFFCleanup()
54 (*tif->tif_cleanup)(tif); in TIFFCleanup()
55 TIFFFreeDirectory(tif); in TIFFCleanup()
57 if (tif->tif_dirlist) in TIFFCleanup()
58 _TIFFfree(tif->tif_dirlist); in TIFFCleanup()
63 while( tif->tif_clientinfo ) in TIFFCleanup()
65 TIFFClientInfoLink *link = tif->tif_clientinfo; in TIFFCleanup()
67 tif->tif_clientinfo = link->next; in TIFFCleanup()
[all …]
Dtif_flush.c33 TIFFFlush(TIFF* tif) in TIFFFlush() argument
35 if( tif->tif_mode == O_RDONLY ) in TIFFFlush()
38 if (!TIFFFlushData(tif)) in TIFFFlush()
46 if( (tif->tif_flags & TIFF_DIRTYSTRIP) in TIFFFlush()
47 && !(tif->tif_flags & TIFF_DIRTYDIRECT) in TIFFFlush()
48 && tif->tif_mode == O_RDWR ) in TIFFFlush()
52 if( TIFFIsTiled(tif) ) in TIFFFlush()
54 if( TIFFGetField( tif, TIFFTAG_TILEOFFSETS, &offsets ) in TIFFFlush()
55 && TIFFGetField( tif, TIFFTAG_TILEBYTECOUNTS, &sizes ) in TIFFFlush()
56 && _TIFFRewriteField( tif, TIFFTAG_TILEOFFSETS, TIFF_LONG8, in TIFFFlush()
[all …]
Dtif_predict.c35 #define PredictorState(tif) ((TIFFPredictorState*) (tif)->tif_data) argument
37 static void horAcc8(TIFF* tif, uint8* cp0, tmsize_t cc);
38 static void horAcc16(TIFF* tif, uint8* cp0, tmsize_t cc);
39 static void horAcc32(TIFF* tif, uint8* cp0, tmsize_t cc);
40 static void swabHorAcc16(TIFF* tif, uint8* cp0, tmsize_t cc);
41 static void swabHorAcc32(TIFF* tif, uint8* cp0, tmsize_t cc);
42 static void horDiff8(TIFF* tif, uint8* cp0, tmsize_t cc);
43 static void horDiff16(TIFF* tif, uint8* cp0, tmsize_t cc);
44 static void horDiff32(TIFF* tif, uint8* cp0, tmsize_t cc);
45 static void swabHorDiff16(TIFF* tif, uint8* cp0, tmsize_t cc);
[all …]
Dtif_compress.c35 TIFFNoEncode(TIFF* tif, const char* method) in TIFFNoEncode() argument
37 const TIFFCodec* c = TIFFFindCODEC(tif->tif_dir.td_compression); in TIFFNoEncode()
40 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFNoEncode()
44 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFNoEncode()
46 tif->tif_dir.td_compression, method); in TIFFNoEncode()
52 _TIFFNoRowEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in _TIFFNoRowEncode() argument
55 return (TIFFNoEncode(tif, "scanline")); in _TIFFNoRowEncode()
59 _TIFFNoStripEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in _TIFFNoStripEncode() argument
62 return (TIFFNoEncode(tif, "strip")); in _TIFFNoStripEncode()
66 _TIFFNoTileEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in _TIFFNoTileEncode() argument
[all …]
Dtif_dirread.c48 # define TIFFCvtIEEEFloatToNative(tif, n, fp) argument
49 # define TIFFCvtIEEEDoubleToNative(tif, n, dp) argument
66 static enum TIFFReadDirEntryErr TIFFReadDirEntryByte(TIFF* tif, TIFFDirEntry* direntry, uint8* valu…
67 static enum TIFFReadDirEntryErr TIFFReadDirEntryShort(TIFF* tif, TIFFDirEntry* direntry, uint16* va…
68 static enum TIFFReadDirEntryErr TIFFReadDirEntryLong(TIFF* tif, TIFFDirEntry* direntry, uint32* val…
69 static enum TIFFReadDirEntryErr TIFFReadDirEntryLong8(TIFF* tif, TIFFDirEntry* direntry, uint64* va…
70 static enum TIFFReadDirEntryErr TIFFReadDirEntryFloat(TIFF* tif, TIFFDirEntry* direntry, float* val…
71 static enum TIFFReadDirEntryErr TIFFReadDirEntryDouble(TIFF* tif, TIFFDirEntry* direntry, double* v…
72 static enum TIFFReadDirEntryErr TIFFReadDirEntryIfd8(TIFF* tif, TIFFDirEntry* direntry, uint64* val…
74 static enum TIFFReadDirEntryErr TIFFReadDirEntryArray(TIFF* tif, TIFFDirEntry* direntry, uint32* co…
[all …]
/external/opencv3/3rdparty/libtiff/
Dtif_read.c34 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 ) in TIFFFillStripPartial() argument
49 register TIFFDirectory *td = &tif->tif_dir; in TIFFFillStripPartial()
55 if (!_TIFFFillStriles( tif ) || !tif->tif_dir.td_stripbytecount) in TIFFFillStripPartial()
65 if (read_ahead*2 > tif->tif_rawdatasize) { in TIFFFillStripPartial()
68 tif->tif_curstrip = NOSTRIP; in TIFFFillStripPartial()
[all …]
Dtif_write.c37 #define WRITECHECKSTRIPS(tif, module) \ argument
38 (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),0,module))
39 #define WRITECHECKTILES(tif, module) \ argument
40 (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),1,module))
41 #define BUFFERCHECK(tif) \ argument
42 ((((tif)->tif_flags & TIFF_BUFFERSETUP) && tif->tif_rawdata) || \
43 TIFFWriteBufferSetup((tif), NULL, (tmsize_t) -1))
45 static int TIFFGrowStrips(TIFF* tif, uint32 delta, const char* module);
46 static int TIFFAppendToStrip(TIFF* tif, uint32 strip, uint8* data, tmsize_t cc);
49 TIFFWriteScanline(TIFF* tif, void* buf, uint32 row, uint16 sample) in TIFFWriteScanline() argument
[all …]
Dtif_open.c86 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 */
129 tif->tif_curoff = 0;
130 tif->tif_curstrip = (uint32) -1; /* invalid strip */
[all …]
Dtif_dirwrite.c35 #define TIFFCvtNativeToIEEEFloat(tif, n, fp) argument
36 #define TIFFCvtNativeToIEEEDouble(tif, n, dp) argument
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, uint1…
46 static int TIFFWriteDirectoryTagSampleformatPerSample(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, u…
49 static int TIFFWriteDirectoryTagAscii(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint3…
50 static int TIFFWriteDirectoryTagUndefinedArray(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 t…
52 static int TIFFWriteDirectoryTagByte(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint8 …
[all …]
Dtif_zip.c80 #define ZState(tif) ((ZIPState*) (tif)->tif_data) argument
81 #define DecoderState(tif) ZState(tif) argument
82 #define EncoderState(tif) ZState(tif) argument
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) in ZIPFixupTags() argument
90 (void) tif; in ZIPFixupTags()
95 ZIPSetupDecode(TIFF* tif) in ZIPSetupDecode() argument
98 ZIPState* sp = DecoderState(tif); in ZIPSetupDecode()
109 TIFFErrorExt(tif->tif_clientdata, module, "%s", sp->stream.msg); in ZIPSetupDecode()
[all …]
Dtif_lzma.c62 #define LState(tif) ((LZMAState*) (tif)->tif_data) argument
63 #define DecoderState(tif) LState(tif) argument
64 #define EncoderState(tif) LState(tif) argument
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) in LZMAFixupTags() argument
105 (void) tif; in LZMAFixupTags()
110 LZMASetupDecode(TIFF* tif) in LZMASetupDecode() argument
112 LZMAState* sp = DecoderState(tif); in LZMASetupDecode()
130 LZMAPreDecode(TIFF* tif, uint16 s) in LZMAPreDecode() argument
[all …]
Dtif_dumpmode.c35 DumpFixupTags(TIFF* tif) in DumpFixupTags() argument
37 (void) tif; in DumpFixupTags()
45 DumpModeEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in DumpModeEncode() argument
52 if (tif->tif_rawcc + n > tif->tif_rawdatasize) in DumpModeEncode()
53 n = tif->tif_rawdatasize - tif->tif_rawcc; in DumpModeEncode()
61 if (tif->tif_rawcp != pp) in DumpModeEncode()
62 _TIFFmemcpy(tif->tif_rawcp, pp, n); in DumpModeEncode()
63 tif->tif_rawcp += n; in DumpModeEncode()
64 tif->tif_rawcc += n; in DumpModeEncode()
67 if (tif->tif_rawcc >= tif->tif_rawdatasize && in DumpModeEncode()
[all …]
Dtif_fax3.c65 #define Fax3State(tif) ((Fax3BaseState*) (tif)->tif_data) argument
89 #define DecoderState(tif) ((Fax3CodecState*) Fax3State(tif)) argument
90 #define EncoderState(tif) ((Fax3CodecState*) Fax3State(tif)) argument
103 #define DECLARE_STATE(tif, sp, mod) \ argument
105 Fax3CodecState* sp = DecoderState(tif); \
118 #define DECLARE_STATE_2D(tif, sp, mod) \ argument
119 DECLARE_STATE(tif, sp, mod); \
125 #define CACHE_STATE(tif, sp) do { \ argument
129 cp = (unsigned char*) tif->tif_rawcp; \
130 ep = cp + tif->tif_rawcc; \
[all …]
Dtif_jbig.c40 static int JBIGSetupDecode(TIFF* tif) in JBIGSetupDecode() argument
42 if (TIFFNumberOfStrips(tif) != 1) in JBIGSetupDecode()
44 TIFFErrorExt(tif->tif_clientdata, "JBIG", "Multistrip images not supported in decoder"); in JBIGSetupDecode()
51 static int JBIGDecode(TIFF* tif, uint8* buffer, tmsize_t size, uint16 s) in JBIGDecode() argument
58 if (isFillOrder(tif, tif->tif_dir.td_fillorder)) in JBIGDecode()
60 TIFFReverseBits(tif->tif_rawdata, tif->tif_rawdatasize); in JBIGDecode()
66 jbg_newlen(tif->tif_rawdata, (size_t)tif->tif_rawdatasize); in JBIGDecode()
79 decodeStatus = jbg_dec_in(&decoder, (unsigned char*)tif->tif_rawdata, in JBIGDecode()
80 (size_t)tif->tif_rawdatasize, NULL); in JBIGDecode()
88 TIFFErrorExt(tif->tif_clientdata, in JBIGDecode()
[all …]
Dtif_close.c47 TIFFCleanup(TIFF* tif) in TIFFCleanup() argument
52 if (tif->tif_mode != O_RDONLY) in TIFFCleanup()
53 TIFFFlush(tif); in TIFFCleanup()
54 (*tif->tif_cleanup)(tif); in TIFFCleanup()
55 TIFFFreeDirectory(tif); in TIFFCleanup()
57 if (tif->tif_dirlist) in TIFFCleanup()
58 _TIFFfree(tif->tif_dirlist); in TIFFCleanup()
63 while( tif->tif_clientinfo ) in TIFFCleanup()
65 TIFFClientInfoLink *link = tif->tif_clientinfo; in TIFFCleanup()
67 tif->tif_clientinfo = link->next; in TIFFCleanup()
[all …]
Dtif_predict.c35 #define PredictorState(tif) ((TIFFPredictorState*) (tif)->tif_data) argument
37 static void horAcc8(TIFF* tif, uint8* cp0, tmsize_t cc);
38 static void horAcc16(TIFF* tif, uint8* cp0, tmsize_t cc);
39 static void horAcc32(TIFF* tif, uint8* cp0, tmsize_t cc);
40 static void swabHorAcc16(TIFF* tif, uint8* cp0, tmsize_t cc);
41 static void swabHorAcc32(TIFF* tif, uint8* cp0, tmsize_t cc);
42 static void horDiff8(TIFF* tif, uint8* cp0, tmsize_t cc);
43 static void horDiff16(TIFF* tif, uint8* cp0, tmsize_t cc);
44 static void horDiff32(TIFF* tif, uint8* cp0, tmsize_t cc);
45 static void fpAcc(TIFF* tif, uint8* cp0, tmsize_t cc);
[all …]
Dtif_flush.c33 TIFFFlush(TIFF* tif) in TIFFFlush() argument
35 if( tif->tif_mode == O_RDONLY ) in TIFFFlush()
38 if (!TIFFFlushData(tif)) in TIFFFlush()
46 if( (tif->tif_flags & TIFF_DIRTYSTRIP) in TIFFFlush()
47 && !(tif->tif_flags & TIFF_DIRTYDIRECT) in TIFFFlush()
48 && tif->tif_mode == O_RDWR ) in TIFFFlush()
52 if( TIFFIsTiled(tif) ) in TIFFFlush()
54 if( TIFFGetField( tif, TIFFTAG_TILEOFFSETS, &offsets ) in TIFFFlush()
55 && TIFFGetField( tif, TIFFTAG_TILEBYTECOUNTS, &sizes ) in TIFFFlush()
56 && _TIFFRewriteField( tif, TIFFTAG_TILEOFFSETS, TIFF_LONG8, in TIFFFlush()
[all …]
Dtif_compress.c35 TIFFNoEncode(TIFF* tif, const char* method) in TIFFNoEncode() argument
37 const TIFFCodec* c = TIFFFindCODEC(tif->tif_dir.td_compression); in TIFFNoEncode()
40 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFNoEncode()
44 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFNoEncode()
46 tif->tif_dir.td_compression, method); in TIFFNoEncode()
52 _TIFFNoRowEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in _TIFFNoRowEncode() argument
55 return (TIFFNoEncode(tif, "scanline")); in _TIFFNoRowEncode()
59 _TIFFNoStripEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in _TIFFNoStripEncode() argument
62 return (TIFFNoEncode(tif, "strip")); in _TIFFNoStripEncode()
66 _TIFFNoTileEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in _TIFFNoTileEncode() argument
[all …]

1234