dng_function_GammaEncode_sRGB Class Reference

A dng_1d_function for gamma encoding in sRGB color space. More...

#include <dng_color_space.h>

Inheritance diagram for dng_function_GammaEncode_sRGB:

dng_1d_function

List of all members.


Public Member Functions

virtual real64 Evaluate (real64 x) const
virtual real64 EvaluateInverse (real64 y) const

Static Public Member Functions

static const dng_1d_functionGet ()

Detailed Description

A dng_1d_function for gamma encoding in sRGB color space.

Member Function Documentation

real64 dng_function_GammaEncode_sRGB::Evaluate ( real64  x  )  const [virtual]

Return the mapping for value x. This method must be implemented by a derived class of dng_1d_function and the derived class determines the lookup method and function used.

Parameters:
x A value between 0.0 and 1.0 (inclusive).
Return values:
Mapped value for x

Implements dng_1d_function.

real64 dng_function_GammaEncode_sRGB::EvaluateInverse ( real64  y  )  const [virtual]

Return the reverse mapped value for y. This method can be implemented by derived classes. The default implementation uses Newton's method to solve for x such that Evaluate(x) == y.

Parameters:
y A value to reverse map. Should be within the range of the function implemented by this dng_1d_function .
Return values:
A value x such that Evaluate(x) == y (to very close approximation).

Reimplemented from dng_1d_function.


The documentation for this class was generated from the following files:

Copyright © 2006-2009 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google