24 #ifndef PXR_BASE_GF_GAMMA_H 25 #define PXR_BASE_GF_GAMMA_H 28 #include "pxr/base/gf/api.h" 33 PXR_NAMESPACE_OPEN_SCOPE
76 unsigned char GfApplyGamma(
const unsigned char &v,
double gamma);
104 PXR_NAMESPACE_CLOSE_SCOPE
106 #endif // PXR_BASE_GF_GAMMA_H GF_API GfVec3f GfConvertDisplayToLinear(const GfVec3f &v)
Given a vec, v, representing an RGB(A) color in the system's display gamma space, return an energy-li...
GF_API double GfGetDisplayGamma()
Return the system display gamma.
Basic type for a vector of 3 float components.
Basic type for a vector of 4 double components.
GF_API GfVec3f GfApplyGamma(const GfVec3f &v, double gamma)
Return a new vector with each component of v raised to the power gamma.
Basic type for a vector of 4 GfHalf components.
Basic type for a vector of 4 float components.
Basic type for a vector of 3 double components.
GF_API GfVec3f GfConvertLinearToDisplay(const GfVec3f &v)
Given a vec, v, representing an energy-linear RGB(A) color, return a vec of the same type converted t...
Basic type for a vector of 3 GfHalf components.