libdcp
|
A transfer function represented by a lookup table. More...
#include <transfer_function.h>
Public Member Functions | |
TransferFunction (TransferFunction const &)=delete | |
TransferFunction & | operator= (TransferFunction const &)=delete |
double const * | lut (int bit_depth, bool inverse) const |
virtual bool | about_equal (std::shared_ptr< const TransferFunction > other, double epsilon) const =0 |
Protected Member Functions | |
virtual double * | make_lut (int bit_depth, bool inverse) const =0 |
Private Attributes | |
std::map< std::pair< int, bool >, double * > | _luts |
boost::mutex | _mutex |
A transfer function represented by a lookup table.
Definition at line 55 of file transfer_function.h.
double const * TransferFunction::lut | ( | int | bit_depth, |
bool | inverse | ||
) | const |
Definition at line 65 of file transfer_function.cc.
|
protectedpure virtual |
Make a LUT and return an array allocated by new
Implemented in dcp::SGamut3TransferFunction, dcp::ModifiedGammaTransferFunction, dcp::IdentityTransferFunction, and dcp::GammaTransferFunction.
|
mutableprivate |
mutex to protect _luts
Definition at line 77 of file transfer_function.h.