| #pragma once |
| |
| #ifndef igs_levels_h |
| #define igs_levels_h |
| |
| #ifndef IGS_LEVELS_EXPORT |
| #define IGS_LEVELS_EXPORT |
| #endif |
| |
| namespace igs { |
| namespace levels { |
| IGS_LEVELS_EXPORT void change( |
| unsigned char *image_array, const int height, const int width, |
| const int channels, const int bits |
| |
| , |
| const unsigned char *ref |
| , |
| const int ref_bits |
| , |
| const int ref_mode |
| |
| , |
| const double r_in_min, const double r_in_max |
| , |
| const double g_in_min, const double g_in_max |
| , |
| const double b_in_min, const double b_in_max |
| , |
| const double a_in_min, const double a_in_max |
| , |
| const double r_gamma |
| , |
| const double g_gamma |
| , |
| const double b_gamma |
| , |
| const double a_gamma |
| , |
| const double r_out_min, const double r_out_max |
| , |
| const double g_out_min, const double g_out_max |
| , |
| const double b_out_min, const double b_out_max |
| , |
| const double a_out_min, const double a_out_max |
| |
| , |
| const bool clamp_sw, |
| const bool alpha_sw |
| , |
| const bool add_blend_sw |
| |
| add_blend_sw == true |
| アルファ値によりRGBの変化量を調整する |
| 合成方法が |
| 合成画 = 下絵 * (1 - alpha) + 上絵 |
| の場合こちらを使う |
| add_blend_sw == false |
| アルファ値に関係なくRGBが変化する |
| 合成方法が |
| 合成画 = 下絵 * (1 - alpha) + 上絵 * alpha |
| の場合こちらを使う |
| */ |
| ); |
| } |
| } |
| |
| #endif |