Struct openexr::deep::deep_scan_line_input_part::DeepScanLineInputPart [−][src]
#[repr(transparent)]pub struct DeepScanLineInputPart<'a> { /* fields omitted */ }
Implementations
pub fn new(
multi_part_file: &MultiPartInputFile,
part_number: i32
) -> Result<DeepScanLineInputPart<'_>, Error>
pub fn new(
multi_part_file: &MultiPartInputFile,
part_number: i32
) -> Result<DeepScanLineInputPart<'_>, Error>
Get an interface to the part part_number
of the MultiPartInputFile
multi_part_file
.
Set the current frame buffer – copies the FrameBuffer object into the DeepScanLineInputPart object.
The current frame buffer is the destination for the pixel
data read from the file. The current frame buffer must be
set at least once before read_pixels()
is called.
The current frame buffer can be changed after each call
to read_pixels()
.
Errors
Error::InvalidArgument
- if the sampling factors do not match or if the frame buffer does not have a sample count slice.
Access to the current frame buffer
Check if all pixels in the data window are present in the input file
Read all scanlines in the range [s1, s2] and put them in the current frame buffer.
read_pixel_sample_counts()
must be called before calling this method.
Errors
Error::InvalidArgument
- if no frame buffer has been set, ifs1
ors2
are outside the data window, or if the sample counts have not been read yetError::Base
- if any other error occurs
Read the sample counts for each pixel and place them in the sample count slice in the frame buffer.
Errors
Error::InvalidArgument
- ifs1
ors2
are outside the data window.