dng_color_space Class Reference

An abstract color space. More...

#include <dng_color_space.h>

Inheritance diagram for dng_color_space:

dng_space_AdobeRGB dng_space_ColorMatch dng_space_GrayGamma18 dng_space_GrayGamma22 dng_space_ProPhoto dng_space_sRGB

List of all members.


Public Member Functions

const dng_matrix & MatrixToPCS () const
 Return a matrix which transforms source data in this color space into the Profile Connection Space.
const dng_matrix & MatrixFromPCS () const
 Return a matrix which transforms Profile Connection Space data into this color space.
bool IsMonochrome () const
 Predicate which is true if this color space is monochrome (has only a single column).
virtual const dng_1d_functionGammaFunction () const
 Getter for the gamma function for this color space.
bool IsLinear () const
 Returns true if this color space is linear. (I.e. has gamma 1.0.).
real64 GammaEncode (real64 x) const
 Map an input value through this color space's encoding gamma.
real64 GammaDecode (real64 y) const
 Map an input value through this color space's decoding gamma (inverse of the encoding gamma).
virtual bool ICCProfile (uint32 &size, const uint8 *&data) const

Protected Member Functions

void SetMonochrome ()
void SetMatrixToPCS (const dng_matrix_3by3 &M)

Protected Attributes

dng_matrix fMatrixToPCS
dng_matrix fMatrixFromPCS

Detailed Description

An abstract color space.

Member Function Documentation

bool dng_color_space::ICCProfile ( uint32 &  size,
const uint8 *&  data 
) const [virtual]

Getter for ICC profile, if this color space has one.

Parameters:
size Out parameter which receives size on return.
data Receives bytes of profile.
Return values:
Returns true if this color space has an ICC profile, false otherwise.

Reimplemented in dng_space_sRGB, dng_space_AdobeRGB, dng_space_ColorMatch, dng_space_ProPhoto, dng_space_GrayGamma18, and dng_space_GrayGamma22.

Referenced by dng_image_writer::WriteTIFF().


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