Debian Codegraph @

core/libs/dngwriter/extra/dng_sdk/dng_tone_curve.h

raw
1 /*****************************************************************************/
2 // Copyright 2007-2019 Adobe Systems Incorporated
3 // All Rights Reserved.
4 //
5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
6 // accordance with the terms of the Adobe license agreement accompanying it.
7 /*****************************************************************************/
8
9 /** \file
10 * Representation of 1-dimensional tone curve.
11 */
12
13 /*****************************************************************************/
14
15 #ifndef __dng_tone_curve__
16 #define __dng_tone_curve__
17
18 /*****************************************************************************/
19
20 #include "dng_classes.h"
21 #include "dng_memory.h"
22 #include "dng_point.h"
23
24 /*****************************************************************************/
25
26 class dng_tone_curve
27 {
28
29 public:
30
31 dng_std_vector<dng_point_real64> fCoord;
32
33 public:
34
35 dng_tone_curve ();
36
37 bool operator== (const dng_tone_curve &curve) const;
38
39 bool operator!= (const dng_tone_curve &curve) const
40 {
41 return !(*this == curve);
42 }
43
44 void SetNull ();
45
46 bool IsNull () const;
47
48 void SetInvalid ();
49
50 bool IsValid () const;
51
52 void Solve (dng_spline_solver &solver) const;
53
54 };
55
56 /*****************************************************************************/
57
58 #endif
59
60 /*****************************************************************************/