pub fn read_strip(&mut self) -> TiffResult<DecodingResult> {
        self.initialize_strip_decoder()?;
        let index = self.strip_decoder.as_ref().unwrap().strip_index;

        let rows_per_strip = usize::try_from(self
            .get_tag_u32(Tag::RowsPerStrip)
            .unwrap_or(self.height))?;

        let strip_height = cmp::min(
            rows_per_strip,
            usize::try_from(self.height)? - index * rows_per_strip,
        );

        let mut result = self.result_buffer(strip_height)?;

        self.read_strip_to_buffer(result.as_buffer(0))?;

        Ok(result)
    }
/// Read a single strip from the image and return it as a Vector
Read a single strip from the image and return it as a Vector
Read a single strip from the image and return it as a Vector
pub fn read_strip(&mut self) -> TiffResult<DecodingResult> {
        self.initialize_strip_decoder()?;
        let index = self.strip_decoder.as_ref().unwrap().strip_index;
        let rows_per_strip = usize::try_from(self
            .get_tag_u32(Tag::RowsPerStrip)
            .unwrap_or(self.height))?;
        let strip_height = cmp::min(
            rows_per_strip,
            usize::try_from(self.height)? - index * rows_per_strip,
        );
        let mut result = self.result_buffer(strip_height)?;
        self.read_strip_to_buffer(result.as_buffer(0))?;
        Ok(result)
    }
pub fn read_strip ( & mut self ) -> TiffResult < DecodingResult > { self . initialize_strip_decoder ( ) ? ; let index = self . strip_decoder . as_ref ( ) . unwrap ( ) . strip_index ; let rows_per_strip = usize :: try_from ( self . get_tag_u32 ( Tag :: RowsPerStrip ) . unwrap_or ( self . height ) ) ? ; let strip_height = cmp :: min ( rows_per_strip , usize :: try_from ( self . height ) ? - index * rows_per_strip , ) ; let mut result = self . result_buffer ( strip_height ) ? ; self . read_strip_to_buffer ( result . as_buffer ( 0 ) ) ? ; Ok ( result ) }
Read a single strip from the image and return it as a Vector
Read a single strip from the image and return it as a Vector
&mut self
&mut self