Struct image::hdr::RGBE8Pixel [] [src]

#[repr(C)]
pub struct RGBE8Pixel { pub c: [u8; 3], pub e: u8, }

Refer to wikipedia

Fields

Color components

Exponent

Methods

impl RGBE8Pixel
[src]

[src]

Converts RGBE8Pixel into Rgb<f32> linearly

[src]

Converts RGBE8Pixel into Rgb<T> with scale=1 and gamma=2.2

color_ldr = (color_hdr*scale)gamma

Panic

Panics when T::max_value() cannot be represented as f32.

[src]

Converts RGBE8Pixel into Rgb using provided scale and gamma

color_ldr = (color_hdr*scale)gamma

Panic

Panics when T::max_value() cannot be represented as f32. Panics when scale or gamma is NaN

Trait Implementations

impl Clone for RGBE8Pixel
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for RGBE8Pixel
[src]

impl Debug for RGBE8Pixel
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for RGBE8Pixel
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for RGBE8Pixel
[src]