tahoma2d/toonz/sources/stdfx/igs_maxmin.h

75 lines
2.3 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_maxmin_h
#define igs_maxmin_h
#ifndef IGS_MAXMIN_EXPORT
#define IGS_MAXMIN_EXPORT
#endif
2016-06-15 18:43:10 +12:00
namespace igs {
namespace maxmin {
2016-03-19 06:57:51 +13:00
IGS_MAXMIN_EXPORT void convert(
2016-06-15 18:43:10 +12:00
/* 入出力画像 */
const unsigned char *inn, unsigned char *out
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
/* inn,out,ref(bits以外)の形状(geometry) */
,
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
/* Pixel毎に効果の強弱(pixel reference) */
,
const unsigned char *ref /* 求める画像(out)と同じ高、幅、ch数 */
,
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
/* 処理のための形状値(action geometry) */
,
const double radius /* =1.0 0...100...DOUBLE_MAX */
,
const double smooth_outer_range /* =2.0 0...100...DOUBLE_MAX */
/* smooth_outer_rangeは
0
1
1
*/
,
const int polygon_number /* =2 2...16...INT_MAX */
/* polygon_numberで3以上の値で
radiusの円に内接する多角形となる
*/
,
const double roll_degree /* =0.0 0...360...DOUBLE_MAX */
/* roll_degreeがプラスで時計回り方向に回転する
*/
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
/* 処理の方法、動作スイッチ(action type/sw) */
,
const bool min_sw /* =false */
/* min_sw==trueだと、小さい値のピクセルを拡大する
falseなら
*/
,
const bool alpha_rendering_sw /* =true */
/* alpha_rendering_sw==trueなら、
alphaチャンネルにも処理を行う
*/
,
const bool add_blend_sw /* =false */
/* add_blend_sw==trueだと、黒が入り込むべきところに、
alphaのマスクによってエッジが残ってしまう
false固定 --> 2013-12-21
*/
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
/* 高速化のためのスレッド指定(thread count for speed up) */
,
const int number_of_thread /* =1 1...24...INT_MAX */
);
2016-03-19 06:57:51 +13:00
}
}
#endif /* !igs_maxmin_h */