Struct openexr::tiled::tiled_input_part::TiledInputPart[][src]

pub struct TiledInputPart<'a> { /* fields omitted */ }

Implementations

Access to the file path

Access to the file header

Access to the file format version

Set the current frame buffer – copies the FrameBuffer object into the TiledInputPart object.

The current frame buffer is the destination for the pixel data read from the file. The current frame buffer must be set at least once before read_tile() is called. The current frame buffer can be changed after each call to read_tile().

Errors

  • Error::InvalidArgument - if the sampling factors do not match or if the frame buffer does not have a sample count slice.

Access to the current frame buffer

Check if all pixels in the data window are present in the input file

Get the tiles’ x dimension

Get the tiles’ y dimension

Get the level mode

Get the level rounding mode

Get the number of levels in the file

Returns

where rfunc is either floor() or ceil() depending on whether TiledInputPart::level_rounding_mode() is LevelRoundingMode::RoundUp or LevelRoundingMode::RoundDown

Get the number of levels in the file in the x axis

Returns

where rfunc is either floor() or ceil() depending on whether TiledInputPart::level_rounding_mode() is LevelRoundingMode::RoundUp or LevelRoundingMode::RoundDown

Get the number of levels in the file in the x axis

Returns

where rfunc is either floor() or ceil() depending on whether TiledInputPart::level_rounding_mode() is LevelRoundingMode::RoundUp or LevelRoundingMode::RoundDown

Returns true if the file contains a level with level number (lx, ly), false otherwise.

Returns the width of the level with level number (lx, *), where * is any number.

Returns

  • max (1, rfunc (w / pow (2, lx)))

where rfunc is either floor() or ceil() depending on whether TiledInputPart::level_rounding_mode() is LevelRoundingMode::RoundUp or LevelRoundingMode::RoundDown

Errors

*Error::Base - If any error occurs

Returns the height of the level with level number (*, ly), where * is any number.

Returns

  • max (1, rfunc (h / pow (2, ly)))

where rfunc is either floor() or ceil() depending on whether TiledInputPart::level_rounding_mode() is LevelRoundingMode::RoundUp or LevelRoundingMode::RoundDown

Errors

*Error::Base - If any error occurs

Get the number of tiles in the x axis that cover a level with level number (lx, *) where * is any number

Returns

*(level_width(lx) + tile_x_size() - 1) / tile_x_size()

Errors

*Error::InvalidArgument - If lx is not a valid level

Get the number of tiles in the y axis that cover a level with level number (*, ly) where * is any number

Returns

  • (level_height(ly) + tile_y_size() - 1) / tile_y_size()

Errors

*Error::InvalidArgument - If lx is not a valid level

Returns a 2-dimensional region of valid pixel coordinates for a level with level number (lx, ly)

Errors

*Error::Base - if any error occurs

Returns a 2-dimensional region of valid pixel coordinates for a level with tile coordinates (dx, dy) and level number (lx, ly)

Errors

Reads the tile with tile coordinates (dx, dy), and level number (lx, ly), and stores it in the current frame buffer.

Errors

Reads the sample counts in tile range with coordinates (dx1, dy1), to (dx2, dy2) and level number (lx, ly), and stores it in the current frame buffer.

Errors

Trait Implementations

Formats the value using the given formatter. 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.