pub struct HableFilmic;Expand description
John Hable’s filmic curve from GDC 2010 (“Uncharted 2”). Identical math to libultrahdr’s reference implementation and the original GDC 2010 paper.
Parameter-free, monotonic on [0, ∞), gentle shoulder, no luminance
calibration required. A reasonable zero-config default for HDR encoding
when no scene metadata (PQ peak, HLG peak) is available to pick a more
principled curve like Bt2408Yrgb or Bt2446C.
Output is clamped to [0, 1].
Implementations§
Source§impl HableFilmic
impl HableFilmic
Sourcepub const fn new() -> HableFilmic
pub const fn new() -> HableFilmic
Construct a new instance. Equivalent to HableFilmic::default().
Trait Implementations§
Source§impl Clone for HableFilmic
impl Clone for HableFilmic
Source§fn clone(&self) -> HableFilmic
fn clone(&self) -> HableFilmic
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HableFilmic
impl Debug for HableFilmic
Source§impl Default for HableFilmic
impl Default for HableFilmic
Source§fn default() -> HableFilmic
fn default() -> HableFilmic
Returns the “default value” for a type. Read more
Source§impl LumaToneMap for HableFilmic
impl LumaToneMap for HableFilmic
impl Copy for HableFilmic
Auto Trait Implementations§
impl Freeze for HableFilmic
impl RefUnwindSafe for HableFilmic
impl Send for HableFilmic
impl Sync for HableFilmic
impl Unpin for HableFilmic
impl UnsafeUnpin for HableFilmic
impl UnwindSafe for HableFilmic
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more