Enum openexr_sys::CEXR_LineOrder
source · #[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
sourceimpl Clone for CEXR_LineOrder
impl Clone for CEXR_LineOrder
sourcefn clone(&self) -> CEXR_LineOrder
fn clone(&self) -> CEXR_LineOrder
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more