Home
last modified time | relevance | path

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

1234

/external/pdfium/third_party/libtiff/
Dtif_read.c32 int TIFFFillStrip(TIFF* tif, uint32 strip);
33 int TIFFFillTile(TIFF* tif, uint32 tile);
34 static int TIFFStartStrip(TIFF* tif, uint32 strip);
35 static int TIFFStartTile(TIFF* tif, uint32 tile);
38 TIFFReadRawStrip1(TIFF* tif, uint32 strip, void* buf, tmsize_t size,const char* module);
40 TIFFReadRawTile1(TIFF* tif, uint32 tile, void* buf, tmsize_t size, const char* module);
53 static int TIFFReadAndRealloc( TIFF* tif, tmsize_t size, in TIFFReadAndRealloc() argument
69 uint64 filesize = TIFFGetFileSize(tif); in TIFFReadAndRealloc()
72 TIFFErrorExt(tif->tif_clientdata, module, in TIFFReadAndRealloc()
91 already_read + to_read + rawdata_offset > tif->tif_rawdatasize ) in TIFFReadAndRealloc()
[all …]
Dtif_write.c35 #define WRITECHECKSTRIPS(tif, module) \ argument
36 (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),0,module))
37 #define WRITECHECKTILES(tif, module) \ argument
38 (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),1,module))
39 #define BUFFERCHECK(tif) \ argument
40 ((((tif)->tif_flags & TIFF_BUFFERSETUP) && tif->tif_rawdata) || \
41 TIFFWriteBufferSetup((tif), NULL, (tmsize_t) -1))
43 static int TIFFGrowStrips(TIFF* tif, uint32 delta, const char* module);
44 static int TIFFAppendToStrip(TIFF* tif, uint32 strip, uint8* data, tmsize_t cc);
47 TIFFWriteScanline(TIFF* tif, void* buf, uint32 row, uint16 sample) in TIFFWriteScanline() argument
[all …]
Dtif_open.c84 TIFF *tif; local
117 tif = (TIFF *)_TIFFmalloc((tmsize_t)(sizeof (TIFF) + strlen(name) + 1));
118 if (tif == NULL) {
122 _TIFFmemset(tif, 0, sizeof (*tif));
123 tif->tif_name = (char *)tif + sizeof (TIFF);
124 strcpy(tif->tif_name, name);
125 tif->tif_mode = m &~ (O_CREAT|O_TRUNC);
126 tif->tif_curdir = (uint16) -1; /* non-existent directory */
127 tif->tif_curoff = 0;
128 tif->tif_curstrip = (uint32) -1; /* invalid strip */
[all …]
Dtif_dirwrite.c33 #define TIFFCvtNativeToIEEEFloat(tif, n, fp) argument
34 #define TIFFCvtNativeToIEEEDouble(tif, n, dp) argument
36 extern void TIFFCvtNativeToIEEEFloat(TIFF* tif, uint32 n, float* fp);
37 extern void TIFFCvtNativeToIEEEDouble(TIFF* tif, uint32 n, double* dp);
40 static int TIFFWriteDirectorySec(TIFF* tif, int isimage, int imagedone, uint64* pdiroff);
42 static int TIFFWriteDirectoryTagSampleformatArray(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint1…
44 static int TIFFWriteDirectoryTagSampleformatPerSample(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, u…
47 static int TIFFWriteDirectoryTagAscii(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint3…
48 static int TIFFWriteDirectoryTagUndefinedArray(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 t…
50 static int TIFFWriteDirectoryTagByte(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint8 …
[all …]
Dtif_flush.c31 TIFFFlush(TIFF* tif) in TIFFFlush() argument
33 if( tif->tif_mode == O_RDONLY ) in TIFFFlush()
36 if (!TIFFFlushData(tif)) in TIFFFlush()
44 if( (tif->tif_flags & TIFF_DIRTYSTRIP) in TIFFFlush()
45 && !(tif->tif_flags & TIFF_DIRTYDIRECT) in TIFFFlush()
46 && tif->tif_mode == O_RDWR ) in TIFFFlush()
48 if( TIFFForceStrileArrayWriting(tif) ) in TIFFFlush()
52 if ((tif->tif_flags & (TIFF_DIRTYDIRECT|TIFF_DIRTYSTRIP)) in TIFFFlush()
53 && !TIFFRewriteDirectory(tif)) in TIFFFlush()
78 int TIFFForceStrileArrayWriting(TIFF* tif) in TIFFForceStrileArrayWriting() argument
[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()
113 TIFFErrorExt(tif->tif_clientdata, module, "%s", SAFE_MSG(sp)); in ZIPSetupDecode()
[all …]
Dtif_dumpmode.c33 DumpFixupTags(TIFF* tif) in DumpFixupTags() argument
35 (void) tif; in DumpFixupTags()
43 DumpModeEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in DumpModeEncode() argument
50 if (tif->tif_rawcc + n > tif->tif_rawdatasize) in DumpModeEncode()
51 n = tif->tif_rawdatasize - tif->tif_rawcc; in DumpModeEncode()
59 if (tif->tif_rawcp != pp) in DumpModeEncode()
60 _TIFFmemcpy(tif->tif_rawcp, pp, n); in DumpModeEncode()
61 tif->tif_rawcp += n; in DumpModeEncode()
62 tif->tif_rawcc += n; in DumpModeEncode()
65 if (tif->tif_rawcc >= tif->tif_rawdatasize && in DumpModeEncode()
[all …]
Dtif_predict.c33 #define PredictorState(tif) ((TIFFPredictorState*) (tif)->tif_data) argument
35 static int horAcc8(TIFF* tif, uint8* cp0, tmsize_t cc);
36 static int horAcc16(TIFF* tif, uint8* cp0, tmsize_t cc);
37 static int horAcc32(TIFF* tif, uint8* cp0, tmsize_t cc);
38 static int swabHorAcc16(TIFF* tif, uint8* cp0, tmsize_t cc);
39 static int swabHorAcc32(TIFF* tif, uint8* cp0, tmsize_t cc);
40 static int horDiff8(TIFF* tif, uint8* cp0, tmsize_t cc);
41 static int horDiff16(TIFF* tif, uint8* cp0, tmsize_t cc);
42 static int horDiff32(TIFF* tif, uint8* cp0, tmsize_t cc);
43 static int swabHorDiff16(TIFF* tif, uint8* cp0, tmsize_t cc);
[all …]
Dtif_fax3.c63 #define Fax3State(tif) ((Fax3BaseState*) (tif)->tif_data) argument
87 #define DecoderState(tif) ((Fax3CodecState*) Fax3State(tif)) argument
88 #define EncoderState(tif) ((Fax3CodecState*) Fax3State(tif)) argument
101 #define DECLARE_STATE(tif, sp, mod) \ argument
103 Fax3CodecState* sp = DecoderState(tif); \
116 #define DECLARE_STATE_2D(tif, sp, mod) \ argument
117 DECLARE_STATE(tif, sp, mod); \
123 #define CACHE_STATE(tif, sp) do { \ argument
127 cp = (unsigned char*) tif->tif_rawcp; \
128 ep = cp + tif->tif_rawcc; \
[all …]
Dtif_dirread.c50 # define TIFFCvtIEEEFloatToNative(tif, n, fp) argument
51 # define TIFFCvtIEEEDoubleToNative(tif, n, dp) argument
68 static enum TIFFReadDirEntryErr TIFFReadDirEntryByte(TIFF* tif, TIFFDirEntry* direntry, uint8* valu…
69 static enum TIFFReadDirEntryErr TIFFReadDirEntryShort(TIFF* tif, TIFFDirEntry* direntry, uint16* va…
70 static enum TIFFReadDirEntryErr TIFFReadDirEntryLong(TIFF* tif, TIFFDirEntry* direntry, uint32* val…
71 static enum TIFFReadDirEntryErr TIFFReadDirEntryLong8(TIFF* tif, TIFFDirEntry* direntry, uint64* va…
72 static enum TIFFReadDirEntryErr TIFFReadDirEntryFloat(TIFF* tif, TIFFDirEntry* direntry, float* val…
73 static enum TIFFReadDirEntryErr TIFFReadDirEntryDouble(TIFF* tif, TIFFDirEntry* direntry, double* v…
74 static enum TIFFReadDirEntryErr TIFFReadDirEntryIfd8(TIFF* tif, TIFFDirEntry* direntry, uint64* val…
76 static enum TIFFReadDirEntryErr TIFFReadDirEntryArray(TIFF* tif, TIFFDirEntry* direntry, uint32* co…
[all …]
Dtif_close.c45 TIFFCleanup(TIFF* tif) in TIFFCleanup() argument
50 if (tif->tif_mode != O_RDONLY) in TIFFCleanup()
51 TIFFFlush(tif); in TIFFCleanup()
52 (*tif->tif_cleanup)(tif); in TIFFCleanup()
53 TIFFFreeDirectory(tif); in TIFFCleanup()
55 if (tif->tif_dirlist) in TIFFCleanup()
56 _TIFFfree(tif->tif_dirlist); in TIFFCleanup()
61 while( tif->tif_clientinfo ) in TIFFCleanup()
63 TIFFClientInfoLink *psLink = tif->tif_clientinfo; in TIFFCleanup()
65 tif->tif_clientinfo = psLink->next; in TIFFCleanup()
[all …]
Dtif_compress.c33 TIFFNoEncode(TIFF* tif, const char* method) in TIFFNoEncode() argument
35 const TIFFCodec* c = TIFFFindCODEC(tif->tif_dir.td_compression); in TIFFNoEncode()
38 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFNoEncode()
42 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFNoEncode()
44 tif->tif_dir.td_compression, method); in TIFFNoEncode()
50 _TIFFNoRowEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in _TIFFNoRowEncode() argument
53 return (TIFFNoEncode(tif, "scanline")); in _TIFFNoRowEncode()
57 _TIFFNoStripEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in _TIFFNoStripEncode() argument
60 return (TIFFNoEncode(tif, "strip")); in _TIFFNoStripEncode()
64 _TIFFNoTileEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) in _TIFFNoTileEncode() argument
[all …]
Dtif_strip.c36 TIFFComputeStrip(TIFF* tif, uint32 row, uint16 sample) in TIFFComputeStrip() argument
39 TIFFDirectory *td = &tif->tif_dir; in TIFFComputeStrip()
45 TIFFErrorExt(tif->tif_clientdata, module, in TIFFComputeStrip()
59 TIFFNumberOfStrips(TIFF* tif) in TIFFNumberOfStrips() argument
61 TIFFDirectory *td = &tif->tif_dir; in TIFFNumberOfStrips()
67 nstrips = _TIFFMultiply32(tif, nstrips, (uint32)td->td_samplesperpixel, in TIFFNumberOfStrips()
76 TIFFVStripSize64(TIFF* tif, uint32 nrows) in TIFFVStripSize64() argument
79 TIFFDirectory *td = &tif->tif_dir; in TIFFVStripSize64()
84 (!isUpSampled(tif))) in TIFFVStripSize64()
102 TIFFErrorExt(tif->tif_clientdata,module, in TIFFVStripSize64()
[all …]
Dtif_dir.c90 setExtraSamples(TIFF* tif, va_list ap, uint32* v) in setExtraSamples() argument
97 TIFFDirectory* td = &tif->tif_dir; in setExtraSamples()
124 TIFFWarningExt(tif->tif_clientdata,module, in setExtraSamples()
127 TIFFClrFieldBit(tif,FIELD_TRANSFERFUNCTION); in setExtraSamples()
144 checkInkNamesString(TIFF* tif, uint32 slen, const char* s) in checkInkNamesString() argument
146 TIFFDirectory* td = &tif->tif_dir; in checkInkNamesString()
161 TIFFErrorExt(tif->tif_clientdata, "TIFFSetField", in checkInkNamesString()
163 tif->tif_name, in checkInkNamesString()
170 _TIFFVSetField(TIFF* tif, uint32 tag, va_list ap) in _TIFFVSetField() argument
174 TIFFDirectory* td = &tif->tif_dir; in _TIFFVSetField()
[all …]
Dtif_packbits.c35 PackBitsPreEncode(TIFF* tif, uint16 s) in PackBitsPreEncode() argument
39 tif->tif_data = (uint8*)_TIFFmalloc(sizeof(tmsize_t)); in PackBitsPreEncode()
40 if (tif->tif_data == NULL) in PackBitsPreEncode()
45 if (isTiled(tif)) in PackBitsPreEncode()
46 *(tmsize_t*)tif->tif_data = TIFFTileRowSize(tif); in PackBitsPreEncode()
48 *(tmsize_t*)tif->tif_data = TIFFScanlineSize(tif); in PackBitsPreEncode()
53 PackBitsPostEncode(TIFF* tif) in PackBitsPostEncode() argument
55 if (tif->tif_data) in PackBitsPostEncode()
56 _TIFFfree(tif->tif_data); in PackBitsPostEncode()
64 PackBitsEncode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s) in PackBitsEncode() argument
[all …]
Dtif_tile.c36 TIFFComputeTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s) in TIFFComputeTile() argument
38 TIFFDirectory *td = &tif->tif_dir; in TIFFComputeTile()
73 TIFFCheckTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s) in TIFFCheckTile() argument
75 TIFFDirectory *td = &tif->tif_dir; in TIFFCheckTile()
78 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFCheckTile()
85 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFCheckTile()
92 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFCheckTile()
100 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in TIFFCheckTile()
113 TIFFNumberOfTiles(TIFF* tif) in TIFFNumberOfTiles() argument
115 TIFFDirectory *td = &tif->tif_dir; in TIFFNumberOfTiles()
[all …]
Dtif_lzw.c156 #define LZWState(tif) ((LZWBaseState*) (tif)->tif_data) argument
157 #define DecoderState(tif) ((LZWCodecState*) LZWState(tif)) argument
158 #define EncoderState(tif) ((LZWCodecState*) LZWState(tif)) argument
160 static int LZWDecode(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s);
162 static int LZWDecodeCompat(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s);
187 #define NextCode(tif, sp, bp, code, get) get(sp, bp, code) argument
191 LZWFixupTags(TIFF* tif) in LZWFixupTags() argument
193 (void) tif; in LZWFixupTags()
198 LZWSetupDecode(TIFF* tif) in LZWSetupDecode() argument
201 LZWCodecState* sp = DecoderState(tif); in LZWSetupDecode()
[all …]
Dtif_luv.c172 #define DecoderState(tif) ((LogLuvState*) (tif)->tif_data) argument
173 #define EncoderState(tif) ((LogLuvState*) (tif)->tif_data) argument
183 LogL16Decode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogL16Decode() argument
186 LogLuvState* sp = DecoderState(tif); in LogL16Decode()
205 TIFFErrorExt(tif->tif_clientdata, module, in LogL16Decode()
213 bp = (unsigned char*) tif->tif_rawcp; in LogL16Decode()
214 cc = tif->tif_rawcc; in LogL16Decode()
234 TIFFErrorExt(tif->tif_clientdata, module, in LogL16Decode()
236 (unsigned long) tif->tif_row, in LogL16Decode()
239 TIFFErrorExt(tif->tif_clientdata, module, in LogL16Decode()
[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 );
50 int TIFFJPEGIsFullStripRequired_12(TIFF* tif);
166 TIFF* tif; /* back link needed by some code */ member
192 #define JState(tif) ((JPEGState*)(tif)->tif_data) argument
194 static int JPEGDecode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s);
195 static int JPEGDecodeRaw(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s);
196 static int JPEGEncode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s);
197 static int JPEGEncodeRaw(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s);
[all …]
Dtif_ojpeg.c253 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.h108 typedef int (*TIFFCodeMethod)(TIFF* tif, uint8* buf, tmsize_t size, uint16 sample);
110 typedef void (*TIFFPostMethod)(TIFF* tif, uint8* buf, tmsize_t size);
228 #define isTiled(tif) (((tif)->tif_flags & TIFF_ISTILED) != 0) argument
229 #define isMapped(tif) (((tif)->tif_flags & TIFF_MAPPED) != 0) argument
230 #define isFillOrder(tif, o) (((tif)->tif_flags & (o)) != 0) argument
231 #define isUpSampled(tif) (((tif)->tif_flags & TIFF_UPSAMPLED) != 0) argument
232 #define TIFFReadFile(tif, buf, size) \ argument
233 ((*(tif)->tif_readproc)((tif)->tif_clientdata,(buf),(size)))
234 #define TIFFWriteFile(tif, buf, size) \ argument
235 ((*(tif)->tif_writeproc)((tif)->tif_clientdata,(buf),(size)))
[all …]
Dtif_thunder.c69 ThunderSetupDecode(TIFF* tif) in ThunderSetupDecode() argument
73 if( tif->tif_dir.td_bitspersample != 4 ) in ThunderSetupDecode()
75 TIFFErrorExt(tif->tif_clientdata, module, in ThunderSetupDecode()
77 (int) tif->tif_dir.td_bitspersample ); in ThunderSetupDecode()
86 ThunderDecode(TIFF* tif, uint8* op, tmsize_t maxpixels) in ThunderDecode() argument
94 bp = (unsigned char *)tif->tif_rawcp; in ThunderDecode()
95 cc = tif->tif_rawcc; in ThunderDecode()
142 tif->tif_rawcp = (uint8*) bp; in ThunderDecode()
143 tif->tif_rawcc = cc; in ThunderDecode()
146 TIFFErrorExt(tif->tif_clientdata, module, in ThunderDecode()
[all …]
Dtif_next.c47 NeXTDecode(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in NeXTDecode() argument
64 bp = (unsigned char *)tif->tif_rawcp; in NeXTDecode()
65 cc = tif->tif_rawcc; in NeXTDecode()
66 scanline = tif->tif_scanlinesize; in NeXTDecode()
69 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()
130 TIFFErrorExt(tif->tif_clientdata, module, "Invalid data for scanline %ld", in NeXTDecode()
131 (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