45 using std::shared_ptr;
46 using std::dynamic_pointer_cast;
53 int const bit_length = int(std::pow(2.0f, bit_depth));
54 auto lut =
new double[bit_length];
55 for (
int i = 0; i < bit_length; ++i) {
56 lut[i] = double(i) / (bit_length - 1);
64 IdentityTransferFunction::about_equal (shared_ptr<const TransferFunction> other,
double)
const
66 auto o = dynamic_pointer_cast<const IdentityTransferFunction>(other);
67 return static_cast<bool>(o);
double * make_lut(int bit_depth, bool inverse) const override
double const * lut(int bit_depth, bool inverse) const
IdentityTransferFunction class.
Namespace for everything in libdcp.