TIFFFIELDQUERY(3tiff)
β¨ NAME β¨
TIFFFieldQuery β the little squad of routines that let you ask questions about TIFF fields π no cap, they just hand you info.
π SYNOPSIS π
#include <tiffio.h>
const TIFFField *TIFFFieldWithName(TIFF *tif, const char *field_name)
const TIFFField *TIFFFieldWithTag(TIFF *tif, uint32_t tag)
const TIFFField *TIFFFindField(TIFF *tif, uint32_t tag, TIFFDataType dt)
int TIFFFieldIsAnonymous(const TIFFField *fip)
int TIFFFieldSetGetSize(const TIFFField *fip)
int TIFFFieldSetGetCountSize(const TIFFField *fip)
π DESCRIPTION π
okay so bestie, first up we got the lookups π
TIFFFieldWithName() and TIFFFieldWithTag() hand you back a pointer to the TIFF field info structure fip, found either by the tag's field_name or by its tag number. cute, right?
TIFFFindField() goes hunting for the TIFF field info structure fip for a given tag number plus a specific TIFFDataType dt. And when dt== TIFF_ANY, it behaves exactly the same as TIFFFieldWithTag(). same energy, fr fr.
π¨ all three of these return NULL when the tag isn't registered inside libtiff (peep Default Tag Auto-registration for the lore).
A TIFFDataType-dependent search like this could be useful when the same tag is defined twice but with different data types β which is true for rare cases like TIFFTAG_XCLIPPATHUNITS. However, the libtiff does currently not support multiple definitions of the same tag. so likeβ¦ don't count on it π
πΈ the status-info girlies πΈ
The following routines return status information about TIFF fields.
fip is a field information pointer previously returned by TIFFFindField(), TIFFFieldWithTag(), or TIFFFieldWithName(). she's a returning character π«
TIFFFieldIsAnonymous()β returns true (nonzero) if the field, read from file, is unknown to libtiff and an anonymous field has been auto-registered. Return is zero"0"if the field is known to libtiff. See Default Tag Auto-registration for more info πTIFFFieldSetGetSize()β returns the data size in bytes of the field data type used for libtiff internal storage. This is also the data size of the parameter you gotta hand over toTIFFSetField()andTIFFGetField(). CustomTIFF_RATIONALvalues can be stored internally either asfloatordoubleβ andTIFFFieldSetGetSize()would then return"4"or"8", respectively. it's giving flexible πTIFFFieldSetGetCountSize()β returns size of the count parameter ofTIFFSetField()andTIFFGetField(), and also whether it's required:0=none,2=uint16_t,4=uint32_t. See also the description ofTIFFFieldReadCount(). numbers don't lie β
π DIAGNOSTICS π
None. literally nothing. she's chill, no drama, no errors to report π
π¦ SEE ALSO π¦
TIFFFieldDataType (3tiff)TIFFFieldName (3tiff)TIFFFieldPassCount (3tiff)TIFFFieldReadCount (3tiff)TIFFFieldTag (3tiff)TIFFFieldWriteCount (3tiff)libtiff (3tiff)
the whole friend group, go say hi π«Ά
π AUTHOR π
LibTIFF contributors β iconic collective behavior, we love to see it π
π COPYRIGHT π
1988-2025, LibTIFF contributors
and that's the tea bestie π this page is from LibTIFF 4.7, dated Jun 27, 2026 β screenshot it, memorise it, slay with it. periodt. π β¨π
π¦ where this page comes from
- fedora 43: libtiff-devel 4.7.2-1.fc43
- fedora 43: libtiff-devel 4.7.2-1.fc43
- fedora 43: libtiff-devel 4.7.2-3.fc43 Β· libtiff
- fedora 43: libtiff-devel 4.7.2-3.fc43 Β· libtiff
- fedora 44: libtiff-devel 4.7.2-1.fc44
- fedora 44: libtiff-devel 4.7.2-1.fc44
- fedora 44: libtiff-devel 4.7.2-3.fc44 Β· libtiff
- fedora 44: libtiff-devel 4.7.2-3.fc44 Β· libtiff
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms