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 OutputFiles

Certain attributes are shared between all parts:

  • displayWindow
  • pixelAspectRatio
  • timeCode
  • chromaticities

Implementations

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 - if override_shared_attributes is false 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.

The number of parts in the file

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

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.