TIFFFIELDQUERY(3tiff) LibTIFF TIFFFIELDQUERY(3tiff) NNAAMMEE TIFFFieldQuery - routines to query TIFF field information SSYYNNOOPPSSIISS #include ccoonnsstt TTIIFFFFFFiieelldd **TTIIFFFFFFiieellddWWiitthhNNaammee((TTIIFFFF **ttiiff,, ccoonnsstt cchhaarr **ffiieelldd__nnaammee)) ccoonnsstt TTIIFFFFFFiieelldd **TTIIFFFFFFiieellddWWiitthhTTaagg((TTIIFFFF **ttiiff,, uuiinntt3322__tt ttaagg)) ccoonnsstt TTIIFFFFFFiieelldd **TTIIFFFFFFiinnddFFiieelldd((TTIIFFFF **ttiiff,, uuiinntt3322__tt ttaagg,, TTIIFFFFDDaattaaTTyyppee ddtt)) iinntt TTIIFFFFFFiieellddIIssAAnnoonnyymmoouuss((ccoonnsstt TTIIFFFFFFiieelldd **ffiipp)) iinntt TTIIFFFFFFiieellddSSeettGGeettSSiizzee((ccoonnsstt TTIIFFFFFFiieelldd **ffiipp)) iinntt TTIIFFFFFFiieellddSSeettGGeettCCoouunnttSSiizzee((ccoonnsstt TTIIFFFFFFiieelldd **ffiipp)) DDEESSCCRRIIPPTTIIOONN _T_I_F_F_F_i_e_l_d_W_i_t_h_N_a_m_e_(_) and _T_I_F_F_F_i_e_l_d_W_i_t_h_T_a_g_(_) return a pointer to TIFF field information structure _f_i_p by the tags _f_i_e_l_d___n_a_m_e or its _t_a_g num- ber. _T_I_F_F_F_i_n_d_F_i_e_l_d_(_) searches for the TIFF field information structure _f_i_p of a given _t_a_g number and a specific _T_I_F_F_D_a_t_a_T_y_p_e _d_t. With dt== TTIIFFFF__AANNYY the behaviour is the same than for _T_I_F_F_F_i_e_l_d_W_i_t_h_T_a_g_(_). All three functions return NNUULLLL, when the tag is not registered within lliibbttiiffff (see also _D_e_f_a_u_l_t _T_a_g _A_u_t_o_-_r_e_g_i_s_t_r_a_t_i_o_n ). Such a _T_I_F_F_D_a_t_a_T_y_p_e dependent search 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 lliibbttiiffff does currently not support multiple definitions of the same tag. The following routines return status information about TIFF fields. ffiipp is a field information pointer previously returned by _T_I_F_F_F_i_n_d_- _F_i_e_l_d_(_), _T_I_F_F_F_i_e_l_d_W_i_t_h_T_a_g_(_), _T_I_F_F_F_i_e_l_d_W_i_t_h_N_a_m_e_(_). _T_I_F_F_F_i_e_l_d_I_s_A_n_o_n_y_m_o_u_s_(_) returns true (nonzero) if the field, read from file, is unknown to lliibbttiiffff and an anonymous field has been auto-regis- tered. Return is zero 0 if field is known to lliibbttiiffff. See _D_e_f_a_u_l_t _T_a_g _A_u_t_o_-_r_e_g_i_s_t_r_a_t_i_o_n for more information. _T_I_F_F_F_i_e_l_d_S_e_t_G_e_t_S_i_z_e_(_) returns the data size in bytes of the field data type used for lliibbttiiffff internal storage. This is also the data size of the parameter to be provided to _T_I_F_F_S_e_t_F_i_e_l_d_(_) and _T_I_F_F_G_e_t_F_i_e_l_d_(_). Cus- tom TTIIFFFF__RRAATTIIOONNAALL values can be stored internally either as ffllooaatt or ddoouubbllee. _T_I_F_F_F_i_e_l_d_S_e_t_G_e_t_S_i_z_e_(_) would then return 4 or 8, respectively. _T_I_F_F_F_i_e_l_d_S_e_t_G_e_t_C_o_u_n_t_S_i_z_e_(_) returns size of ccoouunntt parameter of _T_I_F_F_S_e_t_F_i_e_l_d_(_) and _T_I_F_F_G_e_t_F_i_e_l_d_(_) and also if it is required: 0=none, 2= uuiinntt1166__tt, 4= uuiinntt3322__tt. See also description of _T_I_F_F_F_i_e_l_d_R_e_a_d_C_o_u_n_t_(_). DDIIAAGGNNOOSSTTIICCSS None. SSEEEE AALLSSOO _T_I_F_F_F_i_e_l_d_D_a_t_a_T_y_p_e (3tiff), _T_I_F_F_F_i_e_l_d_N_a_m_e (3tiff), _T_I_F_F_F_i_e_l_d_P_a_s_s_C_o_u_n_t (3tiff), _T_I_F_F_F_i_e_l_d_R_e_a_d_C_o_u_n_t (3tiff), _T_I_F_F_F_i_e_l_d_T_a_g (3tiff), _T_I_F_F_F_i_e_l_d_W_r_i_t_e_C_o_u_n_t (3tiff), _l_i_b_t_i_f_f (3tiff) AAUUTTHHOORR LibTIFF contributors CCOOPPYYRRIIGGHHTT 1988-2022, LibTIFF contributors 4.6 Sep 08, 2023 TIFFFIELDQUERY(3tiff)