Lines Matching refs:tif

172 #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()
241 (unsigned long) tif->tif_row, in LogL16Decode()
244 tif->tif_rawcp = (uint8*) bp; in LogL16Decode()
245 tif->tif_rawcc = cc; in LogL16Decode()
250 tif->tif_rawcp = (uint8*) bp; in LogL16Decode()
251 tif->tif_rawcc = cc; in LogL16Decode()
259 LogLuvDecode24(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogLuvDecode24() argument
262 LogLuvState* sp = DecoderState(tif); in LogLuvDecode24()
278 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvDecode24()
285 bp = (unsigned char*) tif->tif_rawcp; in LogLuvDecode24()
286 cc = tif->tif_rawcc; in LogLuvDecode24()
292 tif->tif_rawcp = (uint8*) bp; in LogLuvDecode24()
293 tif->tif_rawcc = cc; in LogLuvDecode24()
296 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvDecode24()
298 (unsigned long) tif->tif_row, in LogLuvDecode24()
301 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvDecode24()
303 (unsigned long) tif->tif_row, in LogLuvDecode24()
316 LogLuvDecode32(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in LogLuvDecode32() argument
330 sp = DecoderState(tif); in LogLuvDecode32()
339 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvDecode32()
347 bp = (unsigned char*) tif->tif_rawcp; in LogLuvDecode32()
348 cc = tif->tif_rawcc; in LogLuvDecode32()
368 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvDecode32()
370 (unsigned long) tif->tif_row, in LogLuvDecode32()
373 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvDecode32()
375 (unsigned long) tif->tif_row, in LogLuvDecode32()
378 tif->tif_rawcp = (uint8*) bp; in LogLuvDecode32()
379 tif->tif_rawcc = cc; in LogLuvDecode32()
384 tif->tif_rawcp = (uint8*) bp; in LogLuvDecode32()
385 tif->tif_rawcc = cc; in LogLuvDecode32()
395 LogLuvDecodeStrip(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in LogLuvDecodeStrip() argument
397 tmsize_t rowlen = TIFFScanlineSize(tif); in LogLuvDecodeStrip()
403 while (cc && (*tif->tif_decoderow)(tif, bp, rowlen, s)) { in LogLuvDecodeStrip()
416 LogLuvDecodeTile(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in LogLuvDecodeTile() argument
418 tmsize_t rowlen = TIFFTileRowSize(tif); in LogLuvDecodeTile()
424 while (cc && (*tif->tif_decoderow)(tif, bp, rowlen, s)) { in LogLuvDecodeTile()
435 LogL16Encode(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in LogL16Encode() argument
438 LogLuvState* sp = EncoderState(tif); in LogL16Encode()
459 TIFFErrorExt(tif->tif_clientdata, module, in LogL16Encode()
466 op = tif->tif_rawcp; in LogL16Encode()
467 occ = tif->tif_rawdatasize - tif->tif_rawcc; in LogL16Encode()
471 tif->tif_rawcp = op; in LogL16Encode()
472 tif->tif_rawcc = tif->tif_rawdatasize - occ; in LogL16Encode()
473 if (!TIFFFlushData1(tif)) in LogL16Encode()
475 op = tif->tif_rawcp; in LogL16Encode()
476 occ = tif->tif_rawdatasize - tif->tif_rawcc; in LogL16Encode()
503 tif->tif_rawcp = op; in LogL16Encode()
504 tif->tif_rawcc = tif->tif_rawdatasize - occ; in LogL16Encode()
505 if (!TIFFFlushData1(tif)) in LogL16Encode()
507 op = tif->tif_rawcp; in LogL16Encode()
508 occ = tif->tif_rawdatasize - tif->tif_rawcc; in LogL16Encode()
524 tif->tif_rawcp = op; in LogL16Encode()
525 tif->tif_rawcc = tif->tif_rawdatasize - occ; in LogL16Encode()
534 LogLuvEncode24(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in LogLuvEncode24() argument
537 LogLuvState* sp = EncoderState(tif); in LogLuvEncode24()
553 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvEncode24()
560 op = tif->tif_rawcp; in LogLuvEncode24()
561 occ = tif->tif_rawdatasize - tif->tif_rawcc; in LogLuvEncode24()
564 tif->tif_rawcp = op; in LogLuvEncode24()
565 tif->tif_rawcc = tif->tif_rawdatasize - occ; in LogLuvEncode24()
566 if (!TIFFFlushData1(tif)) in LogLuvEncode24()
568 op = tif->tif_rawcp; in LogLuvEncode24()
569 occ = tif->tif_rawdatasize - tif->tif_rawcc; in LogLuvEncode24()
576 tif->tif_rawcp = op; in LogLuvEncode24()
577 tif->tif_rawcc = tif->tif_rawdatasize - occ; in LogLuvEncode24()
586 LogLuvEncode32(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in LogLuvEncode32() argument
589 LogLuvState* sp = EncoderState(tif); in LogLuvEncode32()
611 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvEncode32()
618 op = tif->tif_rawcp; in LogLuvEncode32()
619 occ = tif->tif_rawdatasize - tif->tif_rawcc; in LogLuvEncode32()
623 tif->tif_rawcp = op; in LogLuvEncode32()
624 tif->tif_rawcc = tif->tif_rawdatasize - occ; in LogLuvEncode32()
625 if (!TIFFFlushData1(tif)) in LogLuvEncode32()
627 op = tif->tif_rawcp; in LogLuvEncode32()
628 occ = tif->tif_rawdatasize - tif->tif_rawcc; in LogLuvEncode32()
655 tif->tif_rawcp = op; in LogLuvEncode32()
656 tif->tif_rawcc = tif->tif_rawdatasize - occ; in LogLuvEncode32()
657 if (!TIFFFlushData1(tif)) in LogLuvEncode32()
659 op = tif->tif_rawcp; in LogLuvEncode32()
660 occ = tif->tif_rawdatasize - tif->tif_rawcc; in LogLuvEncode32()
676 tif->tif_rawcp = op; in LogLuvEncode32()
677 tif->tif_rawcc = tif->tif_rawdatasize - occ; in LogLuvEncode32()
687 LogLuvEncodeStrip(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in LogLuvEncodeStrip() argument
689 tmsize_t rowlen = TIFFScanlineSize(tif); in LogLuvEncodeStrip()
695 while (cc && (*tif->tif_encoderow)(tif, bp, rowlen, s) == 1) { in LogLuvEncodeStrip()
707 LogLuvEncodeTile(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in LogLuvEncodeTile() argument
709 tmsize_t rowlen = TIFFTileRowSize(tif); in LogLuvEncodeTile()
715 while (cc && (*tif->tif_encoderow)(tif, bp, rowlen, s) == 1) { in LogLuvEncodeTile()
1279 LogL16InitState(TIFF* tif) in LogL16InitState() argument
1282 TIFFDirectory *td = &tif->tif_dir; in LogL16InitState()
1283 LogLuvState* sp = DecoderState(tif); in LogL16InitState()
1290 TIFFErrorExt(tif->tif_clientdata, module, in LogL16InitState()
1310 TIFFErrorExt(tif->tif_clientdata, module, in LogL16InitState()
1314 if( isTiled(tif) ) in LogL16InitState()
1322 TIFFErrorExt(tif->tif_clientdata, module, "No space for SGILog translation buffer"); in LogL16InitState()
1381 LogLuvInitState(TIFF* tif) in LogLuvInitState() argument
1384 TIFFDirectory* td = &tif->tif_dir; in LogLuvInitState()
1385 LogLuvState* sp = DecoderState(tif); in LogLuvInitState()
1392 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvInitState()
1412 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvInitState()
1416 if( isTiled(tif) ) in LogLuvInitState()
1424 TIFFErrorExt(tif->tif_clientdata, module, "No space for SGILog translation buffer"); in LogLuvInitState()
1431 LogLuvFixupTags(TIFF* tif) in LogLuvFixupTags() argument
1433 (void) tif; in LogLuvFixupTags()
1438 LogLuvSetupDecode(TIFF* tif) in LogLuvSetupDecode() argument
1441 LogLuvState* sp = DecoderState(tif); in LogLuvSetupDecode()
1442 TIFFDirectory* td = &tif->tif_dir; in LogLuvSetupDecode()
1444 tif->tif_postdecode = _TIFFNoPostDecode; in LogLuvSetupDecode()
1447 if (!LogLuvInitState(tif)) in LogLuvSetupDecode()
1450 tif->tif_decoderow = LogLuvDecode24; in LogLuvSetupDecode()
1463 tif->tif_decoderow = LogLuvDecode32; in LogLuvSetupDecode()
1478 if (!LogL16InitState(tif)) in LogLuvSetupDecode()
1480 tif->tif_decoderow = LogL16Decode; in LogLuvSetupDecode()
1491 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvSetupDecode()
1500 LogLuvSetupEncode(TIFF* tif) in LogLuvSetupEncode() argument
1503 LogLuvState* sp = EncoderState(tif); in LogLuvSetupEncode()
1504 TIFFDirectory* td = &tif->tif_dir; in LogLuvSetupEncode()
1508 if (!LogLuvInitState(tif)) in LogLuvSetupEncode()
1511 tif->tif_encoderow = LogLuvEncode24; in LogLuvSetupEncode()
1525 tif->tif_encoderow = LogLuvEncode32; in LogLuvSetupEncode()
1541 if (!LogL16InitState(tif)) in LogLuvSetupEncode()
1543 tif->tif_encoderow = LogL16Encode; in LogLuvSetupEncode()
1555 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvSetupEncode()
1563 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvSetupEncode()
1570 LogLuvClose(TIFF* tif) in LogLuvClose() argument
1572 LogLuvState* sp = (LogLuvState*) tif->tif_data; in LogLuvClose()
1573 TIFFDirectory *td = &tif->tif_dir; in LogLuvClose()
1596 LogLuvCleanup(TIFF* tif) in LogLuvCleanup() argument
1598 LogLuvState* sp = (LogLuvState *)tif->tif_data; in LogLuvCleanup()
1602 tif->tif_tagmethods.vgetfield = sp->vgetparent; in LogLuvCleanup()
1603 tif->tif_tagmethods.vsetfield = sp->vsetparent; in LogLuvCleanup()
1608 tif->tif_data = NULL; in LogLuvCleanup()
1610 _TIFFSetDefaultCompressionState(tif); in LogLuvCleanup()
1614 LogLuvVSetField(TIFF* tif, uint32 tag, va_list ap) in LogLuvVSetField() argument
1617 LogLuvState* sp = DecoderState(tif); in LogLuvVSetField()
1641 TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1); in LogLuvVSetField()
1648 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, in LogLuvVSetField()
1653 TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bps); in LogLuvVSetField()
1654 TIFFSetField(tif, TIFFTAG_SAMPLEFORMAT, fmt); in LogLuvVSetField()
1658 tif->tif_tilesize = isTiled(tif) ? TIFFTileSize(tif) : (tmsize_t) -1; in LogLuvVSetField()
1659 tif->tif_scanlinesize = TIFFScanlineSize(tif); in LogLuvVSetField()
1665 TIFFErrorExt(tif->tif_clientdata, module, in LogLuvVSetField()
1672 return (*sp->vsetparent)(tif, tag, ap); in LogLuvVSetField()
1677 LogLuvVGetField(TIFF* tif, uint32 tag, va_list ap) in LogLuvVGetField() argument
1679 LogLuvState *sp = (LogLuvState *)tif->tif_data; in LogLuvVGetField()
1686 return (*sp->vgetparent)(tif, tag, ap); in LogLuvVGetField()
1696 TIFFInitSGILog(TIFF* tif, int scheme) in TIFFInitSGILog() argument
1706 if (!_TIFFMergeFields(tif, LogLuvFields, in TIFFInitSGILog()
1708 TIFFErrorExt(tif->tif_clientdata, module, in TIFFInitSGILog()
1716 tif->tif_data = (uint8*) _TIFFmalloc(sizeof (LogLuvState)); in TIFFInitSGILog()
1717 if (tif->tif_data == NULL) in TIFFInitSGILog()
1719 sp = (LogLuvState*) tif->tif_data; in TIFFInitSGILog()
1731 tif->tif_fixuptags = LogLuvFixupTags; in TIFFInitSGILog()
1732 tif->tif_setupdecode = LogLuvSetupDecode; in TIFFInitSGILog()
1733 tif->tif_decodestrip = LogLuvDecodeStrip; in TIFFInitSGILog()
1734 tif->tif_decodetile = LogLuvDecodeTile; in TIFFInitSGILog()
1735 tif->tif_setupencode = LogLuvSetupEncode; in TIFFInitSGILog()
1736 tif->tif_encodestrip = LogLuvEncodeStrip; in TIFFInitSGILog()
1737 tif->tif_encodetile = LogLuvEncodeTile; in TIFFInitSGILog()
1738 tif->tif_close = LogLuvClose; in TIFFInitSGILog()
1739 tif->tif_cleanup = LogLuvCleanup; in TIFFInitSGILog()
1744 sp->vgetparent = tif->tif_tagmethods.vgetfield; in TIFFInitSGILog()
1745 tif->tif_tagmethods.vgetfield = LogLuvVGetField; /* hook for codec tags */ in TIFFInitSGILog()
1746 sp->vsetparent = tif->tif_tagmethods.vsetfield; in TIFFInitSGILog()
1747 tif->tif_tagmethods.vsetfield = LogLuvVSetField; /* hook for codec tags */ in TIFFInitSGILog()
1751 TIFFErrorExt(tif->tif_clientdata, module, in TIFFInitSGILog()
1752 "%s: No space for LogLuv state block", tif->tif_name); in TIFFInitSGILog()