Struct openexr::deep::deep_scan_line_input_file::DeepScanLineInputFile [−][src]
#[repr(transparent)]pub struct DeepScanLineInputFile(_);
Implementations
Open the file at path filename
and read the header.
Errors
Error::Base
- if the file cannot be opened
Set the current frame buffer – copies the FrameBuffer object into the DeepScanLineInputFile 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.