Struct openexr::multi_part::multi_part_output_file::MultiPartOutputFile [−][src]
#[repr(transparent)]pub struct MultiPartOutputFile(_);
Expand description
Manages writing multi-part images.
Multi-part files are essentially just containers around multiple
OutputFile
s
Certain attributes are shared between all parts:
displayWindow
pixelAspectRatio
timeCode
chromaticities
Implementations
pub fn new<P: AsRef<Path>>(
filename: P,
headers: &HeaderSlice,
override_shared_attributes: bool,
num_threads: i32
) -> Result<MultiPartOutputFile, Error>
pub fn new<P: AsRef<Path>>(
filename: P,
headers: &HeaderSlice,
override_shared_attributes: bool,
num_threads: i32
) -> Result<MultiPartOutputFile, Error>
Creates a new multi-part output file from a slice of slice of headers
with the given filename. If override_shared_attributes
is true
, then
mismatching attributes between headers will be overriden with the value
from the first header. If false
then Error::InvalidArgument
is
returned instead.
Errors
Error::InvalidArgument
- ifoverride_shared_attributes
isfalse
and there is a mismatch between headers’ common attributes, or if each header does not have a unique name.Error::Base
- if the file cannot be opened.
Return a Header
for part n
.
Due to enforcing attribute sharing, the attributes of the returned
Header
may be different from the matching one passed in to the
constructor.
Errors
Error::InvalidArgument
- ifn
does not correspond to a part in the file.