tahoma2d/toonz/sources/stdfx/igs_hsv_add.h

62 lines
1.8 KiB
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef igs_hsv_add_h
#define igs_hsv_add_h
#ifndef IGS_HSV_ADD_EXPORT
#define IGS_HSV_ADD_EXPORT
#endif
2016-06-15 18:43:10 +12:00
namespace igs {
namespace hsv_add {
2016-03-19 06:57:51 +13:00
IGS_HSV_ADD_EXPORT void change(
2016-06-15 18:43:10 +12:00
unsigned char *image_array, const int height, const int width,
const int channels, const int bits
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
,
const unsigned char *noi_image_array, const int noi_height,
const int noi_width, const int noi_channels, const int noi_bits
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
,
const unsigned char *ref /* 求める画像と同じ高、幅、channels数 */
,
const int ref_bits /* refがゼロのときはここもゼロ */
,
const int ref_mode /* 0=R,1=G,2=B,3=A,4=Luminance,5=Nothing */
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
,
const int xoffset /* 0 INT_MIN ... INT_MAX */
,
const int yoffset /* 0 INT_MIN ... INT_MAX */
,
const int from_rgba /* 0 0(R),1(G),2(B),3(A) */
,
const double offset /* 0.5 -1.0 ... 1.0 */
,
const double hue_scale /* 0.0 -1.0 ... 1.0 */
,
const double sat_scale /* 0.0 -1.0 ... 1.0 */
,
const double val_scale /* 1.0 -1.0 ... 1.0 */
,
const double alp_scale /* 0.0 -1.0 ... 1.0 */
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
,
const bool add_blend_sw
/* 効果(変化量)をアルファブレンドするか否かのスイッチ
add_blend_sw == true
RGBの変化量を調整する
= * (1 - alpha) +
使
add_blend_sw == false
RGBが変化する
= * (1 - alpha) + * alpha
使
*/
);
2016-03-19 06:57:51 +13:00
}
}
#endif /* !igs_hsv_add_h */