#[repr(u32)]
pub enum CEXR_LineOrder {
    INCREASING_Y,
    DECREASING_Y,
    RANDOM_Y,
}
Expand description

Defines the line order of a scanline image.

For scanline images, only INCREASING_Y and DECREASING_Y are valid values:

  • INCREASING_Y: scanline 0 is the first scanline in the file, and scanlines are written and read in that order.

  • DECREASING_Y: scanline 0 is the last scanline in the file, and scanlines are written and read in that order.

In both cases, scanlines are written to and read from files in the order they are stored on disk, and any FrameBuffer you pass is interpretted that way as well.

For tiled images, all values are valid, but they have different meanings:

  • INCREASING_Y: the tiles are stored in a particular order. See OpenEXR’s [ImfTiledOutputFile.h] (https://github.com/openexr/openexr/blob/develop/OpenEXR/IlmImf/ImfTiledOutputFile.h) header for specifics.

  • DECREASING_Y: the tiles are stored in a different particular order. See OpenEXR’s [ImfTiledOutputFile.h] (https://github.com/openexr/openexr/blob/develop/OpenEXR/IlmImf/ImfTiledOutputFile.h) header for specifics.

  • RANDOM_Y: the tiles are stored in the order written.

For tiled files, RANDOM_Y is probably a good choice, as it gives you control over the tile layout and doesn’t require the OpenEXR library to do any buffering.

Variants

INCREASING_Y

DECREASING_Y

RANDOM_Y

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.