diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2009-12-23 16:40:18 +0100 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2009-12-23 16:40:18 +0100 |
commit | ee1619957c9ed6cf31c9263e687d45915f3e600b (patch) | |
tree | 31ea9992399316208fafd2a1b431b77be5cc3f2b /colorramp.h | |
parent | Rescale blackbody values above 6500K to be in [0,1]. (diff) | |
download | redshift-ng-ee1619957c9ed6cf31c9263e687d45915f3e600b.tar.gz redshift-ng-ee1619957c9ed6cf31c9263e687d45915f3e600b.tar.bz2 redshift-ng-ee1619957c9ed6cf31c9263e687d45915f3e600b.tar.xz |
Move RandR code to separate file.
Diffstat (limited to 'colorramp.h')
-rw-r--r-- | colorramp.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/colorramp.h b/colorramp.h new file mode 100644 index 0000000..e7f5554 --- /dev/null +++ b/colorramp.h @@ -0,0 +1,28 @@ +/* colorramp.h -- color temperature calculation header + This file is part of Redshift. + + Redshift is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Redshift is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Redshift. If not, see <http://www.gnu.org/licenses/>. + + Copyright (c) 2009 Jon Lund Steffensen <jonlst@gmail.com> +*/ + +#ifndef _REDSHIFT_COLORRAMP_H +#define _REDSHIFT_COLORRAMP_H + +#include <stdint.h> + +void colorramp_fill(uint16_t *gamma_r, uint16_t *gamma_g, uint16_t *gamma_b, + int size, int temp, float gamma[3]); + +#endif /* ! _REDSHIFT_COLORRAMP_H */ |