Struct Preview
pub struct Preview { pub size: Vec2<usize>, pub pixel_data: Vec<i8> }
A small rgba image of i8 values that approximates the real exr image.
Fields
size: Vec2<usize>The dimensions of the preview image.
pixel_data: Vec<i8>An array with a length of 4 × width × height. The pixels are stored in
LineOrder::Increasing. Each pixel consists of the fouru8values red, green, blue, alpha.
Implementations
impl Preview
fn byte_size(&self) -> usizeNumber of bytes this would consume in an exr file.
fn write<W: Write>(&self, write: &mut W) -> UnitResultWithout validation, write this instance to the byte stream.
fn read<R: Read>(read: &mut R) -> Result<Self>Read the value without validating.
fn validate(&self, strict: bool) -> UnitResultValidate this instance.
Trait Implementations
impl Clone for Preview
fn clone(&self) -> Self
impl Debug for Preview
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Preview
impl PartialEq for Preview
fn eq(&self, other: &Self) -> bool