Lines Matching refs:tifin
72 int copyFaxFile(TIFF* tifin, TIFF* tifout);
365 copyFaxFile(TIFF* tifin, TIFF* tifout) in copyFaxFile() argument
372 tifin->tif_rawdatasize = (tmsize_t)TIFFGetFileSize(tifin); in copyFaxFile()
373 if (tifin->tif_rawdatasize == 0) { in copyFaxFile()
374 TIFFError(tifin->tif_name, "Empty input file"); in copyFaxFile()
377 tifin->tif_rawdata = _TIFFmalloc(tifin->tif_rawdatasize); in copyFaxFile()
378 if (tifin->tif_rawdata == NULL) { in copyFaxFile()
379 TIFFError(tifin->tif_name, "Not enough memory"); in copyFaxFile()
382 if (!ReadOK(tifin, tifin->tif_rawdata, tifin->tif_rawdatasize)) { in copyFaxFile()
383 TIFFError(tifin->tif_name, "Read error at scanline 0"); in copyFaxFile()
386 tifin->tif_rawcp = tifin->tif_rawdata; in copyFaxFile()
387 tifin->tif_rawcc = tifin->tif_rawdatasize; in copyFaxFile()
389 (*tifin->tif_setupdecode)(tifin); in copyFaxFile()
390 (*tifin->tif_predecode)(tifin, (tsample_t) 0); in copyFaxFile()
391 tifin->tif_row = 0; in copyFaxFile()
398 while (tifin->tif_rawcc > 0) { in copyFaxFile()
399 ok = (*tifin->tif_decoderow)(tifin, (tdata_t) rowbuf, in copyFaxFile()
412 tifin->tif_row++; in copyFaxFile()
431 _TIFFfree(tifin->tif_rawdata); in copyFaxFile()