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]

Converts RGBE8Pixel into Rgb<f32> linearly

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.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for RGBE8Pixel
[src]

impl Debug for RGBE8Pixel
[src]

Formats the value using the given formatter. Read more

impl PartialEq for RGBE8Pixel
[src]

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

This method tests for !=.

impl Eq for RGBE8Pixel
[src]

Auto Trait Implementations

impl Send for RGBE8Pixel

impl Sync for RGBE8Pixel