Blame toonz/sources/toonzlib/sandor_fxs/blend.h
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifndef BLEND_INCLUDE
|
|
Toshihiro Shimizu |
890ddd |
#define BLEND_INCLUDE
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include "traster.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "trastercm.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include "ttoonzimage.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//------------------------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
struct BlendParam {
|
|
Toshihiro Shimizu |
890ddd |
std::vector<int> colorsIndexes; // List of color indexes to be blended together</int>
|
|
Toshihiro Shimizu |
890ddd |
double intensity; // Blur radius
|
|
Toshihiro Shimizu |
890ddd |
int smoothness; // Number of neighbouring Blur Samples per pixel
|
|
Toshihiro Shimizu |
890ddd |
bool stopAtCountour; // Blur is obstacled by not chosen color indexes
|
|
Toshihiro Shimizu |
890ddd |
int superSampling;
|
|
Toshihiro Shimizu |
890ddd |
};
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//------------------------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
template <typename pixel=""></typename>
|
|
Toshihiro Shimizu |
890ddd |
void blend(TToonzImageP ti, TRasterPT<pixel> rasOut, const std::vector<blendparam> ¶ms);</blendparam></pixel>
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif //BLEND_INCLUDE
|