00001 #ifndef __TONEMAP_BUFFER_UTILS_H__ 00002 #define __TONEMAP_BUFFER_UTILS_H__ 00003 00004 #include <stdlib.h> 00005 #include <stdio.h> 00006 #include <stdint.h> 00007 00008 #include "utils.h" 00009 00010 #ifdef __cplusplus 00011 extern "C" { 00012 #endif 00013 00015 void STM_EXPORT buf_xyy_to_xyz(float *, size_t); 00016 00018 void STM_EXPORT buf_xyz_to_xyy(float *, size_t); 00019 00020 00022 void STM_EXPORT buf_xyy_to_linear_srgb(float *, size_t); 00023 00025 void STM_EXPORT buf_linear_srgb_to_xyy(float *, size_t); 00026 00028 void STM_EXPORT buf_scale_xyy_y(float *, size_t, float); 00029 00031 void STM_EXPORT buf_scale(float *, size_t, float); 00032 00034 void STM_EXPORT buf_luminance_to_density(float *, size_t, float); 00035 00037 void STM_EXPORT buf_density_to_luminance(float *, size_t); 00038 00039 #ifdef __cplusplus 00040 } 00041 #endif 00042 00043 #endif