TIFFREADENCODEDSTRIP(3tiff) LibTIFF TIFFREADENCODEDSTRIP(3tiff) NNAAMMEE TIFFReadEncodedStrip - read and decode a strip of data from an open TIFF file SSYYNNOOPPSSIISS #include ttmmssiizzee__tt TTIIFFFFRReeaaddEEnnccooddeeddSSttrriipp((TTIIFFFF **ttiiff,, uuiinntt3322__tt ssttrriipp,, vvooiidd **bbuuff,, ttmmssiizzee__tt ssiizzee)) DDEESSCCRRIIPPTTIIOONN Read the specified strip of data and place up to _s_i_z_e bytes of decom- pressed information in the (user supplied) data buffer. NNOOTTEESS The value of _s_t_r_i_p is a raw strip number. That is, the caller must take into account whether or not the data are organized in separate planes (PPllaannaarrCCoonnffiigguurraattiioonn = 2). To read a full strip of data the data buffer should typically be at least as large as the number returned by _T_I_F_F_S_t_r_i_p_S_i_z_e_(_). If -1 is passed in the _s_i_z_e parameter, the whole strip will be read. You should be sure you have enough space allocated for the buffer. The library attempts to hide bit- and byte-ordering differences between the image and the native machine by converting data to the native machine order. Bit reversal is done if the FFiillllOOrrddeerr tag is opposite to the native machine bit order. 16- and 32-bit samples are automati- cally byte-swapped if the file was written with a byte order opposite to the native machine byte order. RREETTUURRNN VVAALLUUEESS The actual number of bytes of data that were placed in _b_u_f is returned; _T_I_F_F_R_e_a_d_E_n_c_o_d_e_d_S_t_r_i_p_(_) returns -1 if an error was encountered. DDIIAAGGNNOOSSTTIICCSS All error messages are directed to the _T_I_F_F_E_r_r_o_r_E_x_t_R_(_) routine. SSEEEE AALLSSOO _T_I_F_F_O_p_e_n (3tiff), _T_I_F_F_R_e_a_d_R_a_w_S_t_r_i_p (3tiff), _T_I_F_F_R_e_a_d_S_c_a_n_l_i_n_e (3tiff), _T_I_F_F_R_e_a_d_E_n_c_o_d_e_d_T_i_l_e (3tiff), _l_i_b_t_i_f_f (3tiff) AAUUTTHHOORR LibTIFF contributors CCOOPPYYRRIIGGHHTT 1988-2022, LibTIFF contributors 4.6 Sep 08, 2023 TIFFREADENCODEDSTRIP(3tiff)