Home
last modified time | relevance | path

Searched refs:tif (Results 1 – 25 of 80) 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 …]
Dtif_dir.c130 checkInkNamesString(TIFF* tif, uint32 slen, const char* s) in checkInkNamesString() argument
132 TIFFDirectory* td = &tif->tif_dir; in checkInkNamesString()
147 TIFFErrorExt(tif->tif_clientdata, "TIFFSetField", in checkInkNamesString()
149 tif->tif_name, in checkInkNamesString()
156 _TIFFVSetField(TIFF* tif, uint32 tag, va_list ap) in _TIFFVSetField() argument
160 TIFFDirectory* td = &tif->tif_dir; in _TIFFVSetField()
165 const TIFFField *fip = TIFFFindField(tif, tag, TIFF_ANY); in _TIFFVSetField()
198 if (tif->tif_flags & TIFF_SWAB) { in _TIFFVSetField()
200 tif->tif_postdecode = _TIFFNoPostDecode; in _TIFFVSetField()
202 tif->tif_postdecode = _TIFFSwab16BitData; in _TIFFVSetField()
[all …]
Dtif_packbits.c37 PackBitsPreEncode(TIFF* tif, uint16 s) in PackBitsPreEncode() argument
41 if (!(tif->tif_data = (uint8*)_TIFFmalloc(sizeof(tmsize_t)))) in PackBitsPreEncode()
46 if (isTiled(tif)) in PackBitsPreEncode()
47 *(tmsize_t*)tif->tif_data = TIFFTileRowSize(tif); in PackBitsPreEncode()
49 *(tmsize_t*)tif->tif_data = TIFFScanlineSize(tif); in PackBitsPreEncode()
54 PackBitsPostEncode(TIFF* tif) in PackBitsPostEncode() argument
56 if (tif->tif_data) in PackBitsPostEncode()
57 _TIFFfree(tif->tif_data); in PackBitsPostEncode()
65 PackBitsEncode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s) in PackBitsEncode() argument
76 op = tif->tif_rawcp; in PackBitsEncode()
[all …]
Dtif_strip.c38 TIFFComputeStrip(TIFF* tif, uint32 row, uint16 sample) in TIFFComputeStrip() argument
41 TIFFDirectory *td = &tif->tif_dir; in TIFFComputeStrip()
47 TIFFErrorExt(tif->tif_clientdata, module, in TIFFComputeStrip()
61 TIFFNumberOfStrips(TIFF* tif) in TIFFNumberOfStrips() argument
63 TIFFDirectory *td = &tif->tif_dir; in TIFFNumberOfStrips()
69 nstrips = _TIFFMultiply32(tif, nstrips, (uint32)td->td_samplesperpixel, in TIFFNumberOfStrips()
78 TIFFVStripSize64(TIFF* tif, uint32 nrows) in TIFFVStripSize64() argument
81 TIFFDirectory *td = &tif->tif_dir; in TIFFVStripSize64()
86 (!isUpSampled(tif))) in TIFFVStripSize64()
104 TIFFErrorExt(tif->tif_clientdata,module, in TIFFVStripSize64()
[all …]
Dtif_lzw.c157 #define LZWState(tif) ((LZWBaseState*) (tif)->tif_data) argument
158 #define DecoderState(tif) ((LZWCodecState*) LZWState(tif)) argument
159 #define EncoderState(tif) ((LZWCodecState*) LZWState(tif)) argument
161 static int LZWDecode(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s);
163 static int LZWDecodeCompat(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s);
188 #define NextCode(tif, sp, bp, code, get) get(sp, bp, code) argument
192 LZWFixupTags(TIFF* tif) in LZWFixupTags() argument
194 (void) tif; in LZWFixupTags()
199 LZWSetupDecode(TIFF* tif) in LZWSetupDecode() argument
202 LZWCodecState* sp = DecoderState(tif); in LZWSetupDecode()
[all …]
Dtif_jpeg.c47 int TIFFFillStrip(TIFF* tif, uint32 strip);
48 int TIFFFillTile(TIFF* tif, uint32 tile);
49 int TIFFReInitJPEG_12( TIFF *tif, int scheme, int is_encode );
163 TIFF* tif; /* back link needed by some code */ member
188 #define JState(tif) ((JPEGState*)(tif)->tif_data) argument
190 static int JPEGDecode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s);
191 static int JPEGDecodeRaw(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s);
192 static int JPEGEncode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s);
193 static int JPEGEncodeRaw(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s);
194 static int JPEGInitializeLibJPEG(TIFF * tif, int decode );
[all …]
Dtif_tile.c38 TIFFComputeTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s) in TIFFComputeTile() argument
40 TIFFDirectory *td = &tif->tif_dir; in TIFFComputeTile()
75 TIFFCheckTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s) in TIFFCheckTile() argument
77 TIFFDirectory *td = &tif->tif_dir; in TIFFCheckTile()
80 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFCheckTile()
87 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFCheckTile()
94 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFCheckTile()
102 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFCheckTile()
115 TIFFNumberOfTiles(TIFF* tif) in TIFFNumberOfTiles() argument
117 TIFFDirectory *td = &tif->tif_dir; in TIFFNumberOfTiles()
[all …]
Dtif_luv.c173 #define DecoderState(tif) ((LogLuvState*) (tif)->tif_data) argument
174 #define EncoderState(tif) ((LogLuvState*) (tif)->tif_data) argument
184 LogL16Decode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogL16Decode() argument
187 LogLuvState* sp = DecoderState(tif); in LogL16Decode()
206 TIFFErrorExt(tif->tif_clientdata, module, in LogL16Decode()
214 bp = (unsigned char*) tif->tif_rawcp; in LogL16Decode()
215 cc = tif->tif_rawcc; in LogL16Decode()
235 TIFFErrorExt(tif->tif_clientdata, module, in LogL16Decode()
237 (unsigned long) tif->tif_row, in LogL16Decode()
240 TIFFErrorExt(tif->tif_clientdata, module, in LogL16Decode()
[all …]
Dtif_ojpeg.c255 TIFF* tif; member
348 static int OJPEGVGetField(TIFF* tif, uint32 tag, va_list ap);
349 static int OJPEGVSetField(TIFF* tif, uint32 tag, va_list ap);
350 static void OJPEGPrintDir(TIFF* tif, FILE* fd, long flags);
352 static int OJPEGFixupTags(TIFF* tif);
353 static int OJPEGSetupDecode(TIFF* tif);
354 static int OJPEGPreDecode(TIFF* tif, uint16 s);
355 static int OJPEGPreDecodeSkipRaw(TIFF* tif);
356 static int OJPEGPreDecodeSkipScanlines(TIFF* tif);
357 static int OJPEGDecode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s);
[all …]
Dtiffiop.h96 typedef int (*TIFFCodeMethod)(TIFF* tif, uint8* buf, tmsize_t size, uint16 sample);
98 typedef void (*TIFFPostMethod)(TIFF* tif, uint8* buf, tmsize_t size);
213 #define isTiled(tif) (((tif)->tif_flags & TIFF_ISTILED) != 0) argument
214 #define isMapped(tif) (((tif)->tif_flags & TIFF_MAPPED) != 0) argument
215 #define isFillOrder(tif, o) (((tif)->tif_flags & (o)) != 0) argument
216 #define isUpSampled(tif) (((tif)->tif_flags & TIFF_UPSAMPLED) != 0) argument
217 #define TIFFReadFile(tif, buf, size) \ argument
218 ((*(tif)->tif_readproc)((tif)->tif_clientdata,(buf),(size)))
219 #define TIFFWriteFile(tif, buf, size) \ argument
220 ((*(tif)->tif_writeproc)((tif)->tif_clientdata,(buf),(size)))
[all …]
Dtif_thunder.c71 ThunderSetupDecode(TIFF* tif) in ThunderSetupDecode() argument
75 if( tif->tif_dir.td_bitspersample != 4 ) in ThunderSetupDecode()
77 TIFFErrorExt(tif->tif_clientdata, module, in ThunderSetupDecode()
79 (int) tif->tif_dir.td_bitspersample ); in ThunderSetupDecode()
88 ThunderDecode(TIFF* tif, uint8* op, tmsize_t maxpixels) in ThunderDecode() argument
96 bp = (unsigned char *)tif->tif_rawcp; in ThunderDecode()
97 cc = tif->tif_rawcc; in ThunderDecode()
143 tif->tif_rawcp = (uint8*) bp; in ThunderDecode()
144 tif->tif_rawcc = cc; in ThunderDecode()
147 TIFFErrorExt(tif->tif_clientdata, module, in ThunderDecode()
[all …]
Dtif_next.c49 NeXTDecode(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in NeXTDecode() argument
66 bp = (unsigned char *)tif->tif_rawcp; in NeXTDecode()
67 cc = tif->tif_rawcc; in NeXTDecode()
68 scanline = tif->tif_scanlinesize; in NeXTDecode()
71 TIFFErrorExt(tif->tif_clientdata, module, "Fractional scanlines cannot be read"); in NeXTDecode()
106 uint32 imagewidth = tif->tif_dir.td_imagewidth; in NeXTDecode()
107 if( isTiled(tif) ) in NeXTDecode()
108 imagewidth = tif->tif_dir.td_tilewidth; in NeXTDecode()
131 TIFFErrorExt(tif->tif_clientdata, module, "Invalid data for scanline %ld", in NeXTDecode()
132 (long) tif->tif_row); in NeXTDecode()
[all …]
/external/ltp/testcases/kernel/device-drivers/dev_sim_framework/user_space/
Dtmod_ki.c48 tmod_interface_t tif; in ki_generic() local
53 tif.in_len = 0; in ki_generic()
54 tif.in_data = 0; in ki_generic()
55 tif.out_len = 0; in ki_generic()
56 tif.out_data = 0; in ki_generic()
57 tif.out_rc = 0; in ki_generic()
62 rc = ioctl(fd, flag, &tif); in ki_generic()
67 if (tif.out_rc) { in ki_generic()
69 return tif.out_rc; in ki_generic()
77 tmod_interface_t tif;
[all …]
/external/ltp/testcases/kernel/device-drivers/agp/user_space/
Dtagp_ki.c48 tagp_interface_t tif; in ki_generic() local
53 tif.in_len = 0; in ki_generic()
54 tif.in_data = 0; in ki_generic()
55 tif.out_len = 0; in ki_generic()
56 tif.out_data = 0; in ki_generic()
57 tif.out_rc = 0; in ki_generic()
62 rc = ioctl(fd, flag, &tif); in ki_generic()
67 if (tif.out_rc) { in ki_generic()
69 return tif.out_rc; in ki_generic()
77 tagp_interface_t tif;
[all …]

1234