Home
last modified time | relevance | path

Searched refs:tmsize_t (Results 1 – 25 of 63) sorted by relevance

123

/external/opencv3/3rdparty/libtiff/
Dtif_read.c39 static tmsize_t
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()
52 tmsize_t cc, to_read; in TIFFFillStripPartial()
53 tmsize_t bytecountm; in TIFFFillStripPartial()
64 bytecountm=(tmsize_t) td->td_stripbytecount[strip]; in TIFFFillStripPartial()
179 tmsize_t read_ahead = 0; in TIFFSeek()
316 tmsize_t
317 TIFFReadEncodedStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size) in TIFFReadEncodedStrip()
326 tmsize_t stripsize; in TIFFReadEncodedStrip()
[all …]
Dtiffio.h67 typedef TIFF_SSIZE_T tmsize_t; typedef
77 typedef tmsize_t tsize_t; /* i/o size in bytes */
275 typedef tmsize_t (*TIFFReadWriteProc)(thandle_t, void*, tmsize_t);
295 extern void* _TIFFmalloc(tmsize_t s);
296 extern void* _TIFFrealloc(void* p, tmsize_t s);
297 extern void _TIFFmemset(void* p, int v, tmsize_t c);
298 extern void _TIFFmemcpy(void* d, const void* s, tmsize_t c);
299 extern int _TIFFmemcmp(const void* p1, const void* p2, tmsize_t c);
348 extern tmsize_t TIFFScanlineSize(TIFF* tif);
350 extern tmsize_t TIFFRasterScanlineSize(TIFF* tif);
[all …]
Dtif_predict.c37 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);
46 static void fpDiff(TIFF* tif, uint8* cp0, tmsize_t cc);
[all …]
Dtif_write.c43 TIFFWriteBufferSetup((tif), NULL, (tmsize_t) -1))
46 static int TIFFAppendToStrip(TIFF* tif, uint32 strip, uint8* data, tmsize_t cc);
183 tmsize_t
184 TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc) in TIFFWriteEncodedStrip()
191 return ((tmsize_t) -1); in TIFFWriteEncodedStrip()
205 return ((tmsize_t) -1); in TIFFWriteEncodedStrip()
208 return ((tmsize_t) -1); in TIFFWriteEncodedStrip()
218 return ((tmsize_t) -1); in TIFFWriteEncodedStrip()
226 return ((tmsize_t) -1); in TIFFWriteEncodedStrip()
243 return ((tmsize_t) -1); in TIFFWriteEncodedStrip()
[all …]
Dtif_unix.c58 static tmsize_t
59 _tiffReadProc(thandle_t fd, void* buf, tmsize_t size) in _tiffReadProc()
62 if ((tmsize_t) size_io != size) in _tiffReadProc()
65 return (tmsize_t) -1; in _tiffReadProc()
67 return ((tmsize_t) read((int)(intptr_t) fd, buf, size_io)); in _tiffReadProc()
70 static tmsize_t
71 _tiffWriteProc(thandle_t fd, void* buf, tmsize_t size) in _tiffWriteProc()
74 if ((tmsize_t) size_io != size) in _tiffWriteProc()
77 return (tmsize_t) -1; in _tiffWriteProc()
79 return ((tmsize_t) write((int)(intptr_t) fd, buf, size_io)); in _tiffWriteProc()
[all …]
Dtif_packbits.c41 if (!(tif->tif_data = (uint8*)_TIFFmalloc(sizeof(tmsize_t)))) in PackBitsPreEncode()
47 *(tmsize_t*)tif->tif_data = TIFFTileRowSize(tif); in PackBitsPreEncode()
49 *(tmsize_t*)tif->tif_data = TIFFScanlineSize(tif); in PackBitsPreEncode()
65 PackBitsEncode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s) in PackBitsEncode()
97 tif->tif_rawcc += (tmsize_t)(lastliteral - tif->tif_rawcp); in PackBitsEncode()
105 tif->tif_rawcc += (tmsize_t)(op - tif->tif_rawcp); in PackBitsEncode()
181 tif->tif_rawcc += (tmsize_t)(op - tif->tif_rawcp); in PackBitsEncode()
194 PackBitsEncodeChunk(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in PackBitsEncodeChunk()
196 tmsize_t rowsize = *(tmsize_t*)tif->tif_data; in PackBitsEncodeChunk()
199 tmsize_t chunk = rowsize; in PackBitsEncodeChunk()
[all …]
Dtiffiop.h91 typedef int (*TIFFCodeMethod)(TIFF* tif, uint8* buf, tmsize_t size, uint16 sample);
93 typedef void (*TIFFPostMethod)(TIFF* tif, uint8* buf, tmsize_t size);
149 tmsize_t tif_tilesize; /* # of bytes in a tile */
172 tmsize_t tif_scanlinesize; /* # of bytes in a scanline */
173 tmsize_t tif_scanlineskew; /* scanline skew for reading strips */
175 tmsize_t tif_rawdatasize; /* # of bytes in raw data buffer */
176 tmsize_t tif_rawdataoff; /* rawdata offset within strip */
177 tmsize_t tif_rawdataloaded;/* amount of data in rawdata */
179 tmsize_t tif_rawcc; /* bytes unread from raw buffer */
182 tmsize_t tif_size; /* size of mapped file region (bytes, thus tmsize_t) */
[all …]
Dtif_stream.cxx84 static tmsize_t _tiffosReadProc(thandle_t, void*, tmsize_t);
85 static tmsize_t _tiffisReadProc(thandle_t fd, void* buf, tmsize_t size);
86 static tmsize_t _tiffosWriteProc(thandle_t fd, void* buf, tmsize_t size);
87 static tmsize_t _tiffisWriteProc(thandle_t, void*, tmsize_t);
110 static tmsize_t
111 _tiffosReadProc(thandle_t, void*, tmsize_t) in _tiffosReadProc() argument
116 static tmsize_t
117 _tiffisReadProc(thandle_t fd, void* buf, tmsize_t size) in _tiffisReadProc()
123 if (static_cast<tmsize_t>(request_size) != size) in _tiffisReadProc()
124 return static_cast<tmsize_t>(-1); in _tiffisReadProc()
[all …]
Dtif_strip.c129 tmsize_t
134 tmsize_t n; in TIFFVStripSize()
136 n=(tmsize_t)m; in TIFFVStripSize()
173 tmsize_t
178 tmsize_t n; in TIFFRawStripSize()
181 n=(tmsize_t)(-1); in TIFFRawStripSize()
184 n=(tmsize_t)m; in TIFFRawStripSize()
211 tmsize_t
216 tmsize_t n; in TIFFStripSize()
218 n=(tmsize_t)m; in TIFFStripSize()
[all …]
Dtif_luv.c166 tmsize_t tbuflen; /* buffer length */
167 void (*tfunc)(LogLuvState*, uint8*, tmsize_t);
184 LogL16Decode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogL16Decode()
189 tmsize_t i; in LogL16Decode()
190 tmsize_t npixels; in LogL16Decode()
194 tmsize_t cc; in LogL16Decode()
253 LogLuvDecode24(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogLuvDecode24()
257 tmsize_t cc; in LogLuvDecode24()
258 tmsize_t i; in LogLuvDecode24()
259 tmsize_t npixels; in LogLuvDecode24()
[all …]
Dtif_win32.c35 static tmsize_t
36 _tiffReadProc(thandle_t fd, void* buf, tmsize_t size) in _tiffReadProc()
45 tmsize_t p; in _tiffReadProc()
65 static tmsize_t
66 _tiffWriteProc(thandle_t fd, void* buf, tmsize_t size) in _tiffWriteProc()
75 tmsize_t p; in _tiffWriteProc()
160 tmsize_t sizem; in _tiffMapProc()
164 sizem = (tmsize_t)size; in _tiffMapProc()
330 _TIFFmalloc(tmsize_t s) in _TIFFmalloc()
342 _TIFFrealloc(void* p, tmsize_t s) in _TIFFrealloc()
[all …]
Dtif_tile.c158 tmsize_t
163 tmsize_t n; in TIFFTileRowSize()
165 n=(tmsize_t)m; in TIFFTileRowSize()
225 tmsize_t
230 tmsize_t n; in TIFFVTileSize()
232 n=(tmsize_t)m; in TIFFVTileSize()
249 tmsize_t
254 tmsize_t n; in TIFFTileSize()
256 n=(tmsize_t)m; in TIFFTileSize()
Dtif_swab.c73 TIFFSwabArrayOfShort(register uint16* wp, tmsize_t n) in TIFFSwabArrayOfShort()
89 TIFFSwabArrayOfTriples(register uint8* tp, tmsize_t n) in TIFFSwabArrayOfTriples()
105 TIFFSwabArrayOfLong(register uint32* lp, tmsize_t n) in TIFFSwabArrayOfLong()
122 TIFFSwabArrayOfLong8(register uint64* lp, tmsize_t n) in TIFFSwabArrayOfLong8()
153 TIFFSwabArrayOfFloat(register float* fp, tmsize_t n) in TIFFSwabArrayOfFloat()
184 TIFFSwabArrayOfDouble(double* dp, tmsize_t n) in TIFFSwabArrayOfDouble()
286 TIFFReverseBits(uint8* cp, tmsize_t n) in TIFFReverseBits()
Dtif_jbig.c51 static int JBIGDecode(TIFF* tif, uint8* buffer, tmsize_t size, uint16 s) in JBIGDecode()
122 tmsize_t n = (tmsize_t)cc; in JBIGCopyEncodedData()
151 TIFFReverseBits(buffer, (tmsize_t)len); in JBIGOutputBie()
157 static int JBIGEncode(TIFF* tif, uint8* buffer, tmsize_t size, uint16 s) in JBIGEncode()
Dtif_aux.c64 tmsize_t nmemb, tmsize_t elem_size, const char* what) in _TIFFCheckRealloc()
67 tmsize_t bytes = nmemb * elem_size; in _TIFFCheckRealloc()
86 _TIFFCheckMalloc(TIFF* tif, tmsize_t nmemb, tmsize_t elem_size, const char* what) in _TIFFCheckMalloc()
95 tmsize_t i, n, nbytes; in TIFFDefaultTransferFunction()
98 if (td->td_bitspersample >= sizeof(tmsize_t) * 8 - 2) in TIFFDefaultTransferFunction()
101 n = ((tmsize_t)1)<<td->td_bitspersample; in TIFFDefaultTransferFunction()
/external/pdfium/third_party/libtiff/
Dtif_read.c39 static tmsize_t
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()
50 tmsize_t unused_data; in TIFFFillStripPartial()
52 tmsize_t cc, to_read; in TIFFFillStripPartial()
120 to_read = (tmsize_t) td->td_stripbytecount[strip] in TIFFFillStripPartial()
179 tmsize_t read_ahead = 0; in TIFFSeek()
316 tmsize_t
317 TIFFReadEncodedStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size) in TIFFReadEncodedStrip()
326 tmsize_t stripsize; in TIFFReadEncodedStrip()
[all …]
Dtif_write.c43 TIFFWriteBufferSetup((tif), NULL, (tmsize_t) -1))
46 static int TIFFAppendToStrip(TIFF* tif, uint32 strip, uint8* data, tmsize_t cc);
187 tmsize_t
188 TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc) in TIFFWriteEncodedStrip()
195 return ((tmsize_t) -1); in TIFFWriteEncodedStrip()
209 return ((tmsize_t) -1); in TIFFWriteEncodedStrip()
212 return ((tmsize_t) -1); in TIFFWriteEncodedStrip()
222 return ((tmsize_t) -1); in TIFFWriteEncodedStrip()
229 return ((tmsize_t) -1); in TIFFWriteEncodedStrip()
235 return ((tmsize_t) -1); in TIFFWriteEncodedStrip()
[all …]
Dtiffio.h67 typedef TIFF_SSIZE_T tmsize_t; typedef
77 typedef tmsize_t tsize_t; /* i/o size in bytes */
275 typedef tmsize_t (*TIFFReadWriteProc)(thandle_t, void*, tmsize_t);
295 extern void* _TIFFmalloc(tmsize_t s);
296 extern void* _TIFFrealloc(void* p, tmsize_t s);
297 extern void _TIFFmemset(void* p, int v, tmsize_t c);
298 extern void _TIFFmemcpy(void* d, const void* s, tmsize_t c);
299 extern int _TIFFmemcmp(const void* p1, const void* p2, tmsize_t c);
355 extern tmsize_t TIFFScanlineSize(TIFF* tif);
357 extern tmsize_t TIFFRasterScanlineSize(TIFF* tif);
[all …]
Dtif_predict.c37 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);
46 static void swabHorDiff32(TIFF* tif, uint8* cp0, tmsize_t cc);
[all …]
Dtif_packbits.c41 if (!(tif->tif_data = (uint8*)_TIFFmalloc(sizeof(tmsize_t)))) in PackBitsPreEncode()
47 *(tmsize_t*)tif->tif_data = TIFFTileRowSize(tif); in PackBitsPreEncode()
49 *(tmsize_t*)tif->tif_data = TIFFScanlineSize(tif); in PackBitsPreEncode()
65 PackBitsEncode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s) in PackBitsEncode()
97 tif->tif_rawcc += (tmsize_t)(lastliteral - tif->tif_rawcp); in PackBitsEncode()
105 tif->tif_rawcc += (tmsize_t)(op - tif->tif_rawcp); in PackBitsEncode()
181 tif->tif_rawcc += (tmsize_t)(op - tif->tif_rawcp); in PackBitsEncode()
194 PackBitsEncodeChunk(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in PackBitsEncodeChunk()
196 tmsize_t rowsize = *(tmsize_t*)tif->tif_data; in PackBitsEncodeChunk()
199 tmsize_t chunk = rowsize; in PackBitsEncodeChunk()
[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);
154 tmsize_t tif_tilesize; /* # of bytes in a tile */
177 tmsize_t tif_scanlinesize; /* # of bytes in a scanline */
178 tmsize_t tif_scanlineskew; /* scanline skew for reading strips */
180 tmsize_t tif_rawdatasize; /* # of bytes in raw data buffer */
181 tmsize_t tif_rawdataoff; /* rawdata offset within strip */
182 tmsize_t tif_rawdataloaded;/* amount of data in rawdata */
184 tmsize_t tif_rawcc; /* bytes unread from raw buffer */
187 tmsize_t tif_size; /* size of mapped file region (bytes, thus tmsize_t) */
[all …]
Dtif_strip.c129 tmsize_t
134 tmsize_t n; in TIFFVStripSize()
136 n=(tmsize_t)m; in TIFFVStripSize()
173 tmsize_t
178 tmsize_t n; in TIFFRawStripSize()
181 n=(tmsize_t)(-1); in TIFFRawStripSize()
184 n=(tmsize_t)m; in TIFFRawStripSize()
211 tmsize_t
216 tmsize_t n; in TIFFStripSize()
218 n=(tmsize_t)m; in TIFFStripSize()
[all …]
Dtif_luv.c166 tmsize_t tbuflen; /* buffer length */
167 void (*tfunc)(LogLuvState*, uint8*, tmsize_t);
184 LogL16Decode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogL16Decode()
189 tmsize_t i; in LogL16Decode()
190 tmsize_t npixels; in LogL16Decode()
194 tmsize_t cc; in LogL16Decode()
253 LogLuvDecode24(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogLuvDecode24()
257 tmsize_t cc; in LogLuvDecode24()
258 tmsize_t i; in LogLuvDecode24()
259 tmsize_t npixels; in LogLuvDecode24()
[all …]
Dtif_tile.c181 tmsize_t
186 tmsize_t n; in TIFFTileRowSize()
188 n=(tmsize_t)m; in TIFFTileRowSize()
248 tmsize_t
253 tmsize_t n; in TIFFVTileSize()
255 n=(tmsize_t)m; in TIFFVTileSize()
272 tmsize_t
277 tmsize_t n; in TIFFTileSize()
279 n=(tmsize_t)m; in TIFFTileSize()
Dtif_swab.c73 TIFFSwabArrayOfShort(register uint16* wp, tmsize_t n) in TIFFSwabArrayOfShort()
89 TIFFSwabArrayOfTriples(register uint8* tp, tmsize_t n) in TIFFSwabArrayOfTriples()
105 TIFFSwabArrayOfLong(register uint32* lp, tmsize_t n) in TIFFSwabArrayOfLong()
122 TIFFSwabArrayOfLong8(register uint64* lp, tmsize_t n) in TIFFSwabArrayOfLong8()
153 TIFFSwabArrayOfFloat(register float* fp, tmsize_t n) in TIFFSwabArrayOfFloat()
184 TIFFSwabArrayOfDouble(double* dp, tmsize_t n) in TIFFSwabArrayOfDouble()
286 TIFFReverseBits(uint8* cp, tmsize_t n) in TIFFReverseBits()

123