Blame toonz/sources/stdfx/igs_hsv_add.h
|
Shinya Kitaoka |
810553 |
#pragma once
|
|
Shinya Kitaoka |
810553 |
|
|
Toshihiro Shimizu |
890ddd |
#ifndef igs_hsv_add_h
|
|
Toshihiro Shimizu |
890ddd |
#define igs_hsv_add_h
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifndef IGS_HSV_ADD_EXPORT
|
|
Toshihiro Shimizu |
890ddd |
#define IGS_HSV_ADD_EXPORT
|
|
Toshihiro Shimizu |
890ddd |
#endif
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
namespace igs {
|
|
Shinya Kitaoka |
120a6e |
namespace hsv_add {
|
|
Toshihiro Shimizu |
890ddd |
IGS_HSV_ADD_EXPORT void change(
|
|
Shinya Kitaoka |
120a6e |
unsigned char *image_array, const int height, const int width,
|
|
Shinya Kitaoka |
120a6e |
const int channels, const int bits
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
const unsigned char *noi_image_array, const int noi_height,
|
|
Shinya Kitaoka |
120a6e |
const int noi_width, const int noi_channels, const int noi_bits
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
const unsigned char *ref
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
const int ref_bits
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
const int ref_mode
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
const int xoffset
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
const int yoffset
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
const int from_rgba
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
const double offset
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
const double hue_scale
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
const double sat_scale
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
const double val_scale
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
const double alp_scale
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
,
|
|
Shinya Kitaoka |
120a6e |
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 |
*/
|
|
Shinya Kitaoka |
120a6e |
);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
#endif
|