Home
last modified time | relevance | path

Searched refs:occ (Results 1 – 17 of 17) sorted by relevance

/external/pdfium/third_party/libtiff/
Dtif_lzw.c365 long occ = (long) occ0; in LZWDecode() local
381 if ((tmsize_t) occ != occ0) in LZWDecode()
391 if (residue > occ) { in LZWDecode()
398 sp->dec_restart += occ; in LZWDecode()
401 } while (--residue > occ && codep); in LZWDecode()
403 tp = op + occ; in LZWDecode()
407 } while (--occ && codep); in LZWDecode()
414 op += residue, occ -= residue; in LZWDecode()
435 while (occ > 0) { in LZWDecode()
457 *op++ = (char)code, occ--; in LZWDecode()
[all …]
Dtif_packbits.c213 PackBitsDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in PackBitsDecode() argument
224 while (cc > 0 && occ > 0) { in PackBitsDecode()
236 if( occ < (tmsize_t)n ) in PackBitsDecode()
240 (unsigned long) ((tmsize_t)n - occ)); in PackBitsDecode()
241 n = (long)occ; in PackBitsDecode()
243 occ -= n; in PackBitsDecode()
248 if (occ < (tmsize_t)(n + 1)) in PackBitsDecode()
252 (unsigned long) ((tmsize_t)n - occ + 1)); in PackBitsDecode()
253 n = (long)occ - 1; in PackBitsDecode()
262 op += n; occ -= n; in PackBitsDecode()
[all …]
Dtif_luv.c184 LogL16Decode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogL16Decode() argument
200 npixels = occ / sp->pixel_size; in LogL16Decode()
253 LogLuvDecode24(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogLuvDecode24() argument
266 npixels = occ / sp->pixel_size; in LogLuvDecode24()
306 LogLuvDecode32(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogLuvDecode32() argument
323 npixels = occ / sp->pixel_size; in LogLuvDecode32()
424 tmsize_t occ; in LogL16Encode() local
441 occ = tif->tif_rawdatasize - tif->tif_rawcc; in LogL16Encode()
444 if (occ < 4) { in LogL16Encode()
446 tif->tif_rawcc = tif->tif_rawdatasize - occ; in LogL16Encode()
[all …]
Dtif_next.c49 NeXTDecode(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in NeXTDecode() argument
63 for (op = (unsigned char*) buf, cc = occ; cc-- > 0;) in NeXTDecode()
69 if (occ % scanline) in NeXTDecode()
74 for (row = buf; cc > 0 && occ > 0; occ -= scanline, row += scanline) { in NeXTDecode()
Dtif_thunder.c168 ThunderDecodeRow(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in ThunderDecodeRow() argument
174 if (occ % tif->tif_scanlinesize) in ThunderDecodeRow()
179 while (occ > 0) { in ThunderDecodeRow()
182 occ -= tif->tif_scanlinesize; in ThunderDecodeRow()
Dtif_fax3.c227 Fax3Decode1D(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in Fax3Decode1D() argument
231 if (occ % sp->b.rowbytes) in Fax3Decode1D()
238 while (occ > 0) { in Fax3Decode1D()
251 occ -= sp->b.rowbytes; in Fax3Decode1D()
270 Fax3Decode2D(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in Fax3Decode2D() argument
275 if (occ % sp->b.rowbytes) in Fax3Decode2D()
281 while (occ > 0) { in Fax3Decode2D()
308 occ -= sp->b.rowbytes; in Fax3Decode2D()
1382 Fax4Decode(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in Fax4Decode() argument
1386 if (occ % sp->b.rowbytes) in Fax4Decode()
[all …]
Dtif_zip.c87 static int ZIPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s);
149 ZIPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in ZIPDecode() argument
166 sp->stream.avail_out = (uInt) occ; in ZIPDecode()
167 if ((tmsize_t)sp->stream.avail_out != occ) in ZIPDecode()
Dtif_pixarlog.c597 static int PixarLogDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s);
739 PixarLogDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in PixarLogDecode() argument
751 nsamples = occ / sizeof(float); /* XXX float == 32 bits */ in PixarLogDecode()
756 nsamples = occ / sizeof(uint16); /* XXX uint16 == 16 bits */ in PixarLogDecode()
760 nsamples = occ; in PixarLogDecode()
/external/opencv3/3rdparty/libtiff/
Dtif_lzw.c363 long occ = (long) occ0; in LZWDecode() local
378 if ((tmsize_t) occ != occ0) in LZWDecode()
388 if (residue > occ) { in LZWDecode()
395 sp->dec_restart += occ; in LZWDecode()
398 } while (--residue > occ && codep); in LZWDecode()
400 tp = op + occ; in LZWDecode()
404 } while (--occ && codep); in LZWDecode()
411 op += residue, occ -= residue; in LZWDecode()
432 while (occ > 0) { in LZWDecode()
452 *op++ = (char)code, occ--; in LZWDecode()
[all …]
Dtif_packbits.c213 PackBitsDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in PackBitsDecode() argument
224 while (cc > 0 && occ > 0) { in PackBitsDecode()
236 if( occ < (tmsize_t)n ) in PackBitsDecode()
240 (unsigned long) ((tmsize_t)n - occ)); in PackBitsDecode()
241 n = (long)occ; in PackBitsDecode()
243 occ -= n; in PackBitsDecode()
248 if (occ < (tmsize_t)(n + 1)) in PackBitsDecode()
252 (unsigned long) ((tmsize_t)n - occ + 1)); in PackBitsDecode()
253 n = (long)occ - 1; in PackBitsDecode()
256 op += n; occ -= n; in PackBitsDecode()
[all …]
Dtif_luv.c184 LogL16Decode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogL16Decode() argument
200 npixels = occ / sp->pixel_size; in LogL16Decode()
253 LogLuvDecode24(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogLuvDecode24() argument
266 npixels = occ / sp->pixel_size; in LogLuvDecode24()
306 LogLuvDecode32(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogLuvDecode32() argument
323 npixels = occ / sp->pixel_size; in LogLuvDecode32()
418 tmsize_t occ; in LogL16Encode() local
435 occ = tif->tif_rawdatasize - tif->tif_rawcc; in LogL16Encode()
438 if (occ < 4) { in LogL16Encode()
440 tif->tif_rawcc = tif->tif_rawdatasize - occ; in LogL16Encode()
[all …]
Dtif_next.c49 NeXTDecode(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in NeXTDecode() argument
63 for (op = (unsigned char*) buf, cc = occ; cc-- > 0;) in NeXTDecode()
69 if (occ % scanline) in NeXTDecode()
74 for (row = buf; occ > 0; occ -= scanline, row += scanline) { in NeXTDecode()
Dtif_thunder.c168 ThunderDecodeRow(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in ThunderDecodeRow() argument
174 if (occ % tif->tif_scanlinesize) in ThunderDecodeRow()
179 while (occ > 0) { in ThunderDecodeRow()
182 occ -= tif->tif_scanlinesize; in ThunderDecodeRow()
Dtif_fax3.c227 Fax3Decode1D(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in Fax3Decode1D() argument
231 if (occ % sp->b.rowbytes) in Fax3Decode1D()
238 while (occ > 0) { in Fax3Decode1D()
251 occ -= sp->b.rowbytes; in Fax3Decode1D()
270 Fax3Decode2D(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in Fax3Decode2D() argument
275 if (occ % sp->b.rowbytes) in Fax3Decode2D()
281 while (occ > 0) { in Fax3Decode2D()
308 occ -= sp->b.rowbytes; in Fax3Decode2D()
1381 Fax4Decode(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) in Fax4Decode() argument
1385 if (occ % sp->b.rowbytes) in Fax4Decode()
[all …]
Dtif_zip.c85 static int ZIPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s);
147 ZIPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in ZIPDecode() argument
164 sp->stream.avail_out = (uInt) occ; in ZIPDecode()
165 if ((tmsize_t)sp->stream.avail_out != occ) in ZIPDecode()
Dtif_lzma.c67 static int LZMADecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s);
165 LZMADecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LZMADecode() argument
178 sp->stream.avail_out = (size_t) occ; in LZMADecode()
179 if ((tmsize_t)sp->stream.avail_out != occ) { in LZMADecode()
Dtif_pixarlog.c597 static int PixarLogDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s);
723 PixarLogDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in PixarLogDecode() argument
735 nsamples = occ / sizeof(float); /* XXX float == 32 bits */ in PixarLogDecode()
740 nsamples = occ / sizeof(uint16); /* XXX uint16 == 16 bits */ in PixarLogDecode()
744 nsamples = occ; in PixarLogDecode()