Blame toonz/sources/stdfx/igs_hls_adjust.h
|
Shinya Kitaoka |
810553 |
#pragma once
|
|
Shinya Kitaoka |
810553 |
|
|
Toshihiro Shimizu |
890ddd |
#ifndef igs_hls_adjust_h
|
|
Toshihiro Shimizu |
890ddd |
#define igs_hls_adjust_h
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifndef IGS_HLS_ADJUST_EXPORT
|
|
Toshihiro Shimizu |
890ddd |
#define IGS_HLS_ADJUST_EXPORT
|
|
Toshihiro Shimizu |
890ddd |
#endif
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
namespace igs {
|
|
Shinya Kitaoka |
120a6e |
namespace hls_adjust {
|
|
Toshihiro Shimizu |
890ddd |
IGS_HLS_ADJUST_EXPORT void change(
|
|
shun-iwasawa |
481b59 |
float *image_array, const int height, const int width, const int channels,
|
|
shun-iwasawa |
481b59 |
const float *ref, /* 求める画像と同じ高、幅、channels数 */
|
|
shun-iwasawa |
481b59 |
const double hue_pivot, /* 0.0 ...0...360... */
|
|
shun-iwasawa |
481b59 |
const double hue_scale, /* 1.0 ...1... */
|
|
shun-iwasawa |
481b59 |
const double hue_shift, /* 0.0 ...0...360... */
|
|
shun-iwasawa |
481b59 |
const double lig_pivot, /* 0.0 ...0...1... */
|
|
shun-iwasawa |
481b59 |
const double lig_scale, /* 1.0 ...1... */
|
|
shun-iwasawa |
481b59 |
const double lig_shift, /* 0.0 ...0...1... */
|
|
shun-iwasawa |
481b59 |
const double sat_pivot, /* 0.0 ...0...1... */
|
|
shun-iwasawa |
481b59 |
const double sat_scale, /* 1.0 ...1... */
|
|
shun-iwasawa |
481b59 |
const double sat_shift, /* 0.0 ...0...1... */
|
|
shun-iwasawa |
481b59 |
const bool add_blend_sw,
|
|
Shinya Kitaoka |
120a6e |
/* 効果(変化量)をアルファブレンドするか否かのスイッチ
|
|
Shinya Kitaoka |
120a6e |
add_blend_sw == true
|
|
Shinya Kitaoka |
120a6e |
アルファ値によりRGBの変化量を調整する
|
|
Shinya Kitaoka |
120a6e |
合成方法が
|
|
Shinya Kitaoka |
120a6e |
合成画 = 下絵 * (1 - alpha) + 上絵
|
|
Shinya Kitaoka |
120a6e |
の場合こちらを使う
|
|
Shinya Kitaoka |
120a6e |
add_blend_sw == false
|
|
Shinya Kitaoka |
120a6e |
アルファ値に関係なくRGBが変化する
|
|
Shinya Kitaoka |
120a6e |
合成方法が
|
|
Shinya Kitaoka |
120a6e |
合成画 = 下絵 * (1 - alpha) + 上絵 * alpha
|
|
Shinya Kitaoka |
120a6e |
の場合こちらを使う
|
|
Shinya Kitaoka |
120a6e |
*/
|
|
shun-iwasawa |
481b59 |
const bool cylindrical = true // colorspace shape: cylindrical or bicone
|
|
shun-iwasawa |
481b59 |
);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
shun-iwasawa |
481b59 |
} // namespace igs
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif /* !igs_hls_adjust_h */
|