libdcp
|
A transfer function represented by a lookup table. More...
#include <transfer_function.h>
Classes | |
struct | LUTDescriptor |
struct | LUTDescriptorHasher |
Public Member Functions | |
std::vector< double > const & | double_lut (double from, double to, int bit_depth, bool inverse) const |
std::vector< int > const & | int_lut (double from, double to, int bit_depth, bool inverse, int scale) const |
virtual bool | about_equal (std::shared_ptr< const TransferFunction > other, double epsilon) const =0 |
Protected Member Functions | |
virtual std::vector< double > | make_double_lut (double from, double to, int bit_depth, bool inverse) const =0 |
Private Attributes | |
std::unordered_map< LUTDescriptor, std::vector< double >, LUTDescriptorHasher > | _double_luts |
std::unordered_map< LUTDescriptor, std::vector< int >, LUTDescriptorHasher > | _int_luts |
boost::mutex | _mutex |
A transfer function represented by a lookup table.
Definition at line 56 of file transfer_function.h.
vector< double > const & TransferFunction::double_lut | ( | double | from, |
double | to, | ||
int | bit_depth, | ||
bool | inverse | ||
) | const |
Definition at line 53 of file transfer_function.cc.
|
mutableprivate |
mutex to protect _double_luts and _int_luts
Definition at line 93 of file transfer_function.h.