tahoma2d/toonz/sources/stdfx/igs_levels.h

70 lines
2 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_levels_h
#define igs_levels_h
#ifndef IGS_LEVELS_EXPORT
#define IGS_LEVELS_EXPORT
#endif
2016-06-15 18:43:10 +12:00
namespace igs {
namespace levels {
2016-03-19 06:57:51 +13:00
IGS_LEVELS_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 *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 double r_in_min, const double r_in_max // 0...1
,
const double g_in_min, const double g_in_max // 0...1
,
const double b_in_min, const double b_in_max // 0...1
,
const double a_in_min, const double a_in_max // 0...1
,
const double r_gamma // 0.1 ... 10.0
,
const double g_gamma // 0.1 ... 10.0
,
const double b_gamma // 0.1 ... 10.0
,
const double a_gamma // 0.1 ... 10.0
,
const double r_out_min, const double r_out_max // 0...1
,
const double g_out_min, const double g_out_max // 0...1
,
const double b_out_min, const double b_out_max // 0...1
,
const double a_out_min, const double a_out_max // 0...1
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
,
const bool clamp_sw,
const bool alpha_sw /* Alphaチャンネルを処理するか否かのSW */
,
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_levels_h */