/src/skia/third_party/externals/dng_sdk/source/dng_temperature.h
Line | Count | Source (jump to first uncovered line) |
1 | | /*****************************************************************************/ |
2 | | // Copyright 2006 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 | | /* $Id: //mondo/dng_sdk_1_4/dng_sdk/source/dng_temperature.h#2 $ */ |
10 | | /* $DateTime: 2012/07/31 22:04:34 $ */ |
11 | | /* $Change: 840853 $ */ |
12 | | /* $Author: tknoll $ */ |
13 | | |
14 | | /** \file |
15 | | * Representation of color temperature and offset (tint) using black body |
16 | | * radiator definition. |
17 | | */ |
18 | | |
19 | | #ifndef __dng_temperature__ |
20 | | #define __dng_temperature__ |
21 | | |
22 | | /*****************************************************************************/ |
23 | | |
24 | | #include "dng_classes.h" |
25 | | #include "dng_types.h" |
26 | | |
27 | | /*****************************************************************************/ |
28 | | |
29 | | class dng_temperature |
30 | | { |
31 | | |
32 | | private: |
33 | | |
34 | | real64 fTemperature; |
35 | | |
36 | | real64 fTint; |
37 | | |
38 | | public: |
39 | | |
40 | | dng_temperature () |
41 | | |
42 | | : fTemperature (0.0) |
43 | | , fTint (0.0) |
44 | | |
45 | 0 | { |
46 | 0 | } |
47 | | |
48 | | dng_temperature (real64 temperature, |
49 | | real64 tint) |
50 | | |
51 | | : fTemperature (temperature) |
52 | | , fTint (tint ) |
53 | | |
54 | 0 | { |
55 | 0 | |
56 | 0 | } |
57 | | |
58 | | dng_temperature (const dng_xy_coord &xy) |
59 | | |
60 | | : fTemperature (0.0) |
61 | | , fTint (0.0) |
62 | | |
63 | 0 | { |
64 | 0 | Set_xy_coord (xy); |
65 | 0 | } |
66 | | |
67 | | void SetTemperature (real64 temperature) |
68 | 0 | { |
69 | 0 | fTemperature = temperature; |
70 | 0 | } |
71 | | |
72 | | real64 Temperature () const |
73 | 0 | { |
74 | 0 | return fTemperature; |
75 | 0 | } |
76 | | |
77 | | void SetTint (real64 tint) |
78 | 0 | { |
79 | 0 | fTint = tint; |
80 | 0 | } |
81 | | |
82 | | real64 Tint () const |
83 | 0 | { |
84 | 0 | return fTint; |
85 | 0 | } |
86 | | |
87 | | void Set_xy_coord (const dng_xy_coord &xy); |
88 | | |
89 | | dng_xy_coord Get_xy_coord () const; |
90 | | |
91 | | }; |
92 | | |
93 | | /*****************************************************************************/ |
94 | | |
95 | | #endif |
96 | | |
97 | | /*****************************************************************************/ |