Struct openexr::rgba::rgba_file::RgbaInputFile[][src]

#[repr(transparent)]
pub struct RgbaInputFile(_);
Expand description

Simplified interface for reading RGBA files.

Implementations

Open the file at path filename, using num_threads threads to do the reading.

Errors

Set a frame buffer as the destination for the decoded pixels

Pixel (x, y) is at offset x * x_stride + y * y_stride

Errors

Sets the layer that subsequent RgbaInputFile::read_pixels calls will read from.

e.g. calling this with "layername" will read channels "layername.R", "layername.G" etc.

Each call to RgbaInputFile::set_layer_name must be followed by a call to RgbaInputFile::set_frame_buffer before reading.

Read pixel data.

read_pixels(s1,s2) reads all scan lines with y coordinates in the interval [min(s1, s2), max(s1, s2)] from the file, and stores them in the current frame buffer.

Both s1 and s2 must be within the interval [header().data_window().min.y, header().data_window().max.y]

The scan lines can be read from the file in random order, and individual scan lines may be skipped or read multiple times. For maximum efficiency, the scan lines should be read in the order in which they were written to the file.

Errors

Access to the file Header

Check if the file is complete.

Returns true if all pixels in the data window are present in the input file, or false if any pixels are missing. (Another program may still be busy writing the file, or file writing may have been aborted prematurely.)

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.