LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Macros
Pseudo-tags and control values

Identify in-memory controls that are not written as TIFF fields. More...

Collaboration diagram for Pseudo-tags and control values:

Macros

#define TIFFTAG_FAXMODE   65536
 Pseudo-tag: Group 3/4 format control.
 
#define FAXMODE_CLASSIC   0x0000
 Default, include RTC.
 
#define FAXMODE_NORTC   0x0001
 No RTC at end of data.
 
#define FAXMODE_NOEOL   0x0002
 No EOL code at end of row.
 
#define FAXMODE_BYTEALIGN   0x0004
 Byte align row.
 
#define FAXMODE_WORDALIGN   0x0008
 Word align row.
 
#define FAXMODE_CLASSF   FAXMODE_NORTC
 TIFF Class F.
 
#define TIFFTAG_JPEGQUALITY   65537
 Pseudo-tag: Compression quality level.
 
#define TIFFTAG_JPEGCOLORMODE   65538
 Pseudo-tag: Auto RGB<=>YCbCr convert?
 
#define JPEGCOLORMODE_RAW   0x0000
 No conversion (default).
 
#define JPEGCOLORMODE_RGB   0x0001
 Do auto conversion.
 
#define TIFFTAG_JPEGTABLESMODE   65539
 Pseudo-tag: What to put in JPEGTables.
 
#define JPEGTABLESMODE_QUANT   0x0001
 Include quantization tbls.
 
#define JPEGTABLESMODE_HUFF   0x0002
 Include Huffman tbls.
 
#define TIFFTAG_FAXFILLFUNC   65540
 Pseudo-tag: G3/G4 fill function.
 
#define TIFFTAG_PIXARLOGDATAFMT   65549
 Pseudo-tag: PixarLogCodec I/O data sz.
 
#define PIXARLOGDATAFMT_8BIT   0
 Regular u_char samples.
 
#define PIXARLOGDATAFMT_8BITABGR   1
 ABGR-order u_chars.
 
#define PIXARLOGDATAFMT_11BITLOG   2
 11-bit log-encoded (raw).
 
#define PIXARLOGDATAFMT_12BITPICIO   3
 As per PICIO (1.0==2048).
 
#define PIXARLOGDATAFMT_16BIT   4
 Signed short samples.
 
#define PIXARLOGDATAFMT_FLOAT   5
 IEEE float samples.
 
#define TIFFTAG_DCSIMAGERTYPE   65550
 Pseudo-tag: Imager model & filter.
 
#define DCSIMAGERMODEL_M3   0
 M3 chip (1280 x 1024).
 
#define DCSIMAGERMODEL_M5   1
 M5 chip (1536 x 1024).
 
#define DCSIMAGERMODEL_M6   2
 M6 chip (3072 x 2048).
 
#define DCSIMAGERFILTER_IR   0
 Infrared filter.
 
#define DCSIMAGERFILTER_MONO   1
 Monochrome filter.
 
#define DCSIMAGERFILTER_CFA   2
 Color filter array.
 
#define DCSIMAGERFILTER_OTHER   3
 Other filter.
 
#define TIFFTAG_DCSINTERPMODE   65551
 Pseudo-tag: Interpolation mode.
 
#define DCSINTERPMODE_NORMAL   0x0
 Whole image, default.
 
#define DCSINTERPMODE_PREVIEW   0x1
 Preview of image (384x256).
 
#define TIFFTAG_DCSBALANCEARRAY   65552
 Pseudo-tag: Color balance values.
 
#define TIFFTAG_DCSCORRECTMATRIX   65553
 Pseudo-tag: Color correction values.
 
#define TIFFTAG_DCSGAMMA   65554
 Pseudo-tag: Gamma value.
 
#define TIFFTAG_DCSTOESHOULDERPTS   65555
 Pseudo-tag: Toe & shoulder points.
 
#define TIFFTAG_DCSCALIBRATIONFD   65556
 Pseudo-tag: Calibration file desc.
 
#define TIFFTAG_ZIPQUALITY   65557
 Pseudo-tag: Deflate compression level control.
 
#define TIFFTAG_PIXARLOGQUALITY   65558
 Pseudo-tag: PixarLog compression level control.
 
#define TIFFTAG_DCSCLIPRECTANGLE   65559
 Pseudo-tag: Area of image to acquire.
 
#define TIFFTAG_SGILOGDATAFMT   65560
 Pseudo-tag: SGILog user data format.
 
#define SGILOGDATAFMT_FLOAT   0
 IEEE float samples.
 
#define SGILOGDATAFMT_16BIT   1
 16-bit samples.
 
#define SGILOGDATAFMT_RAW   2
 Uninterpreted data.
 
#define SGILOGDATAFMT_8BIT   3
 8-bit RGB monitor values.
 
#define TIFFTAG_SGILOGENCODE   65561
 Pseudo-tag: SGILog data encoding control.
 
#define SGILOGENCODE_NODITHER   0
 Do not dither encoded values.
 
#define SGILOGENCODE_RANDITHER   1
 Randomly dither encoded values.
 
#define TIFFTAG_LZMAPRESET   65562
 Pseudo-tag: LZMA2 preset (compression level).
 
#define TIFFTAG_PERSAMPLE   65563
 Pseudo-tag: Interface for per sample tags.
 
#define PERSAMPLE_MERGED   0
 Present as a single value.
 
#define PERSAMPLE_MULTI   1
 Present as multiple values.
 
#define TIFFTAG_ZSTD_LEVEL   65564
 Pseudo-tag: ZSTD compression level.
 
#define TIFFTAG_LERC_VERSION   65565
 Pseudo-tag: LERC version.
 
#define LERC_VERSION_2_4   4
 Select the LERC 2.4-compatible bitstream format.
 
#define TIFFTAG_LERC_ADD_COMPRESSION   65566
 Pseudo-tag: LERC additional compression.
 
#define LERC_ADD_COMPRESSION_NONE   0
 No additional compression around the LERC bitstream.
 
#define LERC_ADD_COMPRESSION_DEFLATE   1
 Deflate compression around the LERC bitstream.
 
#define LERC_ADD_COMPRESSION_ZSTD   2
 Zstandard compression around the LERC bitstream.
 
#define TIFFTAG_LERC_MAXZERROR   65567
 Pseudo-tag: LERC maximum error.
 
#define TIFFTAG_WEBP_LEVEL   65568
 Pseudo-tag: WebP quality setting.
 
#define TIFFTAG_WEBP_LOSSLESS   65569
 Pseudo-tag: WebP lossless/lossy.
 
#define TIFFTAG_WEBP_LOSSLESS_EXACT   65571
 Pseudo-tag: Preserve RGB values under fully transparent pixels in lossless WebP.
 
#define TIFFTAG_DEFLATE_SUBCODEC   65570
 Pseudo-tag: Select the zlib or libdeflate Deflate implementation.
 
#define DEFLATE_SUBCODEC_ZLIB   0
 Select the zlib Deflate implementation.
 
#define DEFLATE_SUBCODEC_LIBDEFLATE   1
 Select the libdeflate Deflate implementation.
 

Detailed Description

Identify in-memory controls that are not written as TIFF fields.

Pseudo-tag numbers exceed 65535, the largest on-disk TIFF tag identifier. Codec-specific controls require the relevant codec. See the codec and directory interfaces for argument types, supported ranges, and side effects.

Macro Definition Documentation

◆ DCSIMAGERFILTER_CFA

#define DCSIMAGERFILTER_CFA   2

Color filter array.

Definition at line 1589 of file tiff.h.

◆ DCSIMAGERFILTER_IR

#define DCSIMAGERFILTER_IR   0

Infrared filter.

Definition at line 1585 of file tiff.h.

◆ DCSIMAGERFILTER_MONO

#define DCSIMAGERFILTER_MONO   1

Monochrome filter.

Definition at line 1587 of file tiff.h.

◆ DCSIMAGERFILTER_OTHER

#define DCSIMAGERFILTER_OTHER   3

Other filter.

Definition at line 1591 of file tiff.h.

◆ DCSIMAGERMODEL_M3

#define DCSIMAGERMODEL_M3   0

M3 chip (1280 x 1024).

Definition at line 1579 of file tiff.h.

◆ DCSIMAGERMODEL_M5

#define DCSIMAGERMODEL_M5   1

M5 chip (1536 x 1024).

Definition at line 1581 of file tiff.h.

◆ DCSIMAGERMODEL_M6

#define DCSIMAGERMODEL_M6   2

M6 chip (3072 x 2048).

Definition at line 1583 of file tiff.h.

◆ DCSINTERPMODE_NORMAL

#define DCSINTERPMODE_NORMAL   0x0

Whole image, default.

Definition at line 1595 of file tiff.h.

◆ DCSINTERPMODE_PREVIEW

#define DCSINTERPMODE_PREVIEW   0x1

Preview of image (384x256).

Definition at line 1597 of file tiff.h.

◆ DEFLATE_SUBCODEC_LIBDEFLATE

#define DEFLATE_SUBCODEC_LIBDEFLATE   1

Select the libdeflate Deflate implementation.

Definition at line 1680 of file tiff.h.

◆ DEFLATE_SUBCODEC_ZLIB

#define DEFLATE_SUBCODEC_ZLIB   0

Select the zlib Deflate implementation.

Definition at line 1678 of file tiff.h.

◆ FAXMODE_BYTEALIGN

#define FAXMODE_BYTEALIGN   0x0004

Byte align row.

Definition at line 1538 of file tiff.h.

◆ FAXMODE_CLASSF

#define FAXMODE_CLASSF   FAXMODE_NORTC

TIFF Class F.

Definition at line 1542 of file tiff.h.

◆ FAXMODE_CLASSIC

#define FAXMODE_CLASSIC   0x0000

Default, include RTC.

Definition at line 1532 of file tiff.h.

◆ FAXMODE_NOEOL

#define FAXMODE_NOEOL   0x0002

No EOL code at end of row.

Definition at line 1536 of file tiff.h.

◆ FAXMODE_NORTC

#define FAXMODE_NORTC   0x0001

No RTC at end of data.

Definition at line 1534 of file tiff.h.

◆ FAXMODE_WORDALIGN

#define FAXMODE_WORDALIGN   0x0008

Word align row.

Definition at line 1540 of file tiff.h.

◆ JPEGCOLORMODE_RAW

#define JPEGCOLORMODE_RAW   0x0000

No conversion (default).

Definition at line 1549 of file tiff.h.

◆ JPEGCOLORMODE_RGB

#define JPEGCOLORMODE_RGB   0x0001

Do auto conversion.

Definition at line 1551 of file tiff.h.

◆ JPEGTABLESMODE_HUFF

#define JPEGTABLESMODE_HUFF   0x0002

Include Huffman tbls.

Definition at line 1557 of file tiff.h.

◆ JPEGTABLESMODE_QUANT

#define JPEGTABLESMODE_QUANT   0x0001

Include quantization tbls.

Definition at line 1555 of file tiff.h.

◆ LERC_ADD_COMPRESSION_DEFLATE

#define LERC_ADD_COMPRESSION_DEFLATE   1

Deflate compression around the LERC bitstream.

Definition at line 1651 of file tiff.h.

◆ LERC_ADD_COMPRESSION_NONE

#define LERC_ADD_COMPRESSION_NONE   0

No additional compression around the LERC bitstream.

Definition at line 1649 of file tiff.h.

◆ LERC_ADD_COMPRESSION_ZSTD

#define LERC_ADD_COMPRESSION_ZSTD   2

Zstandard compression around the LERC bitstream.

Definition at line 1653 of file tiff.h.

◆ LERC_VERSION_2_4

#define LERC_VERSION_2_4   4

Select the LERC 2.4-compatible bitstream format.

Definition at line 1645 of file tiff.h.

◆ PERSAMPLE_MERGED

#define PERSAMPLE_MERGED   0

Present as a single value.

Definition at line 1637 of file tiff.h.

◆ PERSAMPLE_MULTI

#define PERSAMPLE_MULTI   1

Present as multiple values.

Definition at line 1639 of file tiff.h.

◆ PIXARLOGDATAFMT_11BITLOG

#define PIXARLOGDATAFMT_11BITLOG   2

11-bit log-encoded (raw).

Definition at line 1568 of file tiff.h.

◆ PIXARLOGDATAFMT_12BITPICIO

#define PIXARLOGDATAFMT_12BITPICIO   3

As per PICIO (1.0==2048).

Definition at line 1570 of file tiff.h.

◆ PIXARLOGDATAFMT_16BIT

#define PIXARLOGDATAFMT_16BIT   4

Signed short samples.

Definition at line 1572 of file tiff.h.

◆ PIXARLOGDATAFMT_8BIT

#define PIXARLOGDATAFMT_8BIT   0

Regular u_char samples.

Definition at line 1564 of file tiff.h.

◆ PIXARLOGDATAFMT_8BITABGR

#define PIXARLOGDATAFMT_8BITABGR   1

ABGR-order u_chars.

Definition at line 1566 of file tiff.h.

◆ PIXARLOGDATAFMT_FLOAT

#define PIXARLOGDATAFMT_FLOAT   5

IEEE float samples.

Definition at line 1574 of file tiff.h.

◆ SGILOGDATAFMT_16BIT

#define SGILOGDATAFMT_16BIT   1

16-bit samples.

Definition at line 1621 of file tiff.h.

◆ SGILOGDATAFMT_8BIT

#define SGILOGDATAFMT_8BIT   3

8-bit RGB monitor values.

Definition at line 1625 of file tiff.h.

◆ SGILOGDATAFMT_FLOAT

#define SGILOGDATAFMT_FLOAT   0

IEEE float samples.

Definition at line 1619 of file tiff.h.

◆ SGILOGDATAFMT_RAW

#define SGILOGDATAFMT_RAW   2

Uninterpreted data.

Definition at line 1623 of file tiff.h.

◆ SGILOGENCODE_NODITHER

#define SGILOGENCODE_NODITHER   0

Do not dither encoded values.

Definition at line 1629 of file tiff.h.

◆ SGILOGENCODE_RANDITHER

#define SGILOGENCODE_RANDITHER   1

Randomly dither encoded values.

Definition at line 1631 of file tiff.h.

◆ TIFFTAG_DCSBALANCEARRAY

#define TIFFTAG_DCSBALANCEARRAY   65552

Pseudo-tag: Color balance values.

Definition at line 1599 of file tiff.h.

◆ TIFFTAG_DCSCALIBRATIONFD

#define TIFFTAG_DCSCALIBRATIONFD   65556

Pseudo-tag: Calibration file desc.

Definition at line 1607 of file tiff.h.

◆ TIFFTAG_DCSCLIPRECTANGLE

#define TIFFTAG_DCSCLIPRECTANGLE   65559

Pseudo-tag: Area of image to acquire.

Definition at line 1615 of file tiff.h.

◆ TIFFTAG_DCSCORRECTMATRIX

#define TIFFTAG_DCSCORRECTMATRIX   65553

Pseudo-tag: Color correction values.

Definition at line 1601 of file tiff.h.

◆ TIFFTAG_DCSGAMMA

#define TIFFTAG_DCSGAMMA   65554

Pseudo-tag: Gamma value.

Definition at line 1603 of file tiff.h.

◆ TIFFTAG_DCSIMAGERTYPE

#define TIFFTAG_DCSIMAGERTYPE   65550

Pseudo-tag: Imager model & filter.

Definition at line 1577 of file tiff.h.

◆ TIFFTAG_DCSINTERPMODE

#define TIFFTAG_DCSINTERPMODE   65551

Pseudo-tag: Interpolation mode.

Definition at line 1593 of file tiff.h.

◆ TIFFTAG_DCSTOESHOULDERPTS

#define TIFFTAG_DCSTOESHOULDERPTS   65555

Pseudo-tag: Toe & shoulder points.

Definition at line 1605 of file tiff.h.

◆ TIFFTAG_DEFLATE_SUBCODEC

#define TIFFTAG_DEFLATE_SUBCODEC   65570

Pseudo-tag: Select the zlib or libdeflate Deflate implementation.

Defaults to libdeflate when that implementation is available. This control selects an implementation of Deflate, not a different on-disk compression identifier.

Definition at line 1676 of file tiff.h.

◆ TIFFTAG_FAXFILLFUNC

#define TIFFTAG_FAXFILLFUNC   65540

Pseudo-tag: G3/G4 fill function.

Definition at line 1560 of file tiff.h.

◆ TIFFTAG_FAXMODE

#define TIFFTAG_FAXMODE   65536

Pseudo-tag: Group 3/4 format control.

Definition at line 1530 of file tiff.h.

◆ TIFFTAG_JPEGCOLORMODE

#define TIFFTAG_JPEGCOLORMODE   65538

Pseudo-tag: Auto RGB<=>YCbCr convert?

Definition at line 1547 of file tiff.h.

◆ TIFFTAG_JPEGQUALITY

#define TIFFTAG_JPEGQUALITY   65537

Pseudo-tag: Compression quality level.

Definition at line 1544 of file tiff.h.

◆ TIFFTAG_JPEGTABLESMODE

#define TIFFTAG_JPEGTABLESMODE   65539

Pseudo-tag: What to put in JPEGTables.

Definition at line 1553 of file tiff.h.

◆ TIFFTAG_LERC_ADD_COMPRESSION

#define TIFFTAG_LERC_ADD_COMPRESSION   65566

Pseudo-tag: LERC additional compression.

Definition at line 1647 of file tiff.h.

◆ TIFFTAG_LERC_MAXZERROR

#define TIFFTAG_LERC_MAXZERROR   65567

Pseudo-tag: LERC maximum error.

Definition at line 1655 of file tiff.h.

◆ TIFFTAG_LERC_VERSION

#define TIFFTAG_LERC_VERSION   65565

Pseudo-tag: LERC version.

Definition at line 1643 of file tiff.h.

◆ TIFFTAG_LZMAPRESET

#define TIFFTAG_LZMAPRESET   65562

Pseudo-tag: LZMA2 preset (compression level).

Definition at line 1633 of file tiff.h.

◆ TIFFTAG_PERSAMPLE

#define TIFFTAG_PERSAMPLE   65563

Pseudo-tag: Interface for per sample tags.

Definition at line 1635 of file tiff.h.

◆ TIFFTAG_PIXARLOGDATAFMT

#define TIFFTAG_PIXARLOGDATAFMT   65549

Pseudo-tag: PixarLogCodec I/O data sz.

Definition at line 1562 of file tiff.h.

◆ TIFFTAG_PIXARLOGQUALITY

#define TIFFTAG_PIXARLOGQUALITY   65558

Pseudo-tag: PixarLog compression level control.

Definition at line 1612 of file tiff.h.

◆ TIFFTAG_SGILOGDATAFMT

#define TIFFTAG_SGILOGDATAFMT   65560

Pseudo-tag: SGILog user data format.

Definition at line 1617 of file tiff.h.

◆ TIFFTAG_SGILOGENCODE

#define TIFFTAG_SGILOGENCODE   65561

Pseudo-tag: SGILog data encoding control.

Definition at line 1627 of file tiff.h.

◆ TIFFTAG_WEBP_LEVEL

#define TIFFTAG_WEBP_LEVEL   65568

Pseudo-tag: WebP quality setting.

Definition at line 1657 of file tiff.h.

◆ TIFFTAG_WEBP_LOSSLESS

#define TIFFTAG_WEBP_LOSSLESS   65569

Pseudo-tag: WebP lossless/lossy.

Definition at line 1659 of file tiff.h.

◆ TIFFTAG_WEBP_LOSSLESS_EXACT

#define TIFFTAG_WEBP_LOSSLESS_EXACT   65571

Pseudo-tag: Preserve RGB values under fully transparent pixels in lossless WebP.

The WebP codec defaults to preserving these RGB values. Setting the control to zero may improve compression by allowing them to change. It is a codec pseudo-tag that can be set and queried but is not written to the file.

Definition at line 1669 of file tiff.h.

◆ TIFFTAG_ZIPQUALITY

#define TIFFTAG_ZIPQUALITY   65557

Pseudo-tag: Deflate compression level control.

Definition at line 1610 of file tiff.h.

◆ TIFFTAG_ZSTD_LEVEL

#define TIFFTAG_ZSTD_LEVEL   65564

Pseudo-tag: ZSTD compression level.

Definition at line 1641 of file tiff.h.