26 #ifndef DIGIKAM_RAIN_DROP_FILTER_H
27 #define DIGIKAM_RAIN_DROP_FILTER_H
47 struct Q_DECL_HIDDEN Args
77 QObject*
const parent =
nullptr,
81 const QRect& selection=QRect(0, 0, 0, 0));
86 return QLatin1String(
"digikam:RainDropFilter");
89 static QString DisplayableName();
103 return FilterIdentifier();
108 void readParameters(
const FilterAction& action)
override;
112 void filterImage()
override;
114 void rainDropsImage(
DImg*
const orgImage,
DImg*
const destImage,
int MinDropSize,
int MaxDropSize,
115 int Amount,
int Coeff,
bool bLimitRange,
int progressMin,
int progressMax);
117 void rainDropsImageMultithreaded(
const Args& prm);
119 bool CreateRainDrop(uchar*
const pBits,
int Width,
int Height,
bool sixteenBit,
int bytesDepth,
120 uchar*
const pResBits, uchar*
const pStatusBits,
121 int X,
int Y,
int DropSize,
double Coeff,
bool bLimitRange);
123 bool CanBeDropped(
int Width,
int Height, uchar*
const pStatusBits,
int X,
int Y,
int DropSize,
bool bLimitRange);
125 bool SetDropStatusBits(
int Width,
int Height, uchar*
const pStatusBits,
int X,
int Y,
int DropSize);
132 inline int limitValues8(
int ColorValue);
134 inline int limitValues16(
int ColorValue);
136 inline bool isInside (
int Width,
int Height,
int X,
int Y);
138 inline int pixelOffset(
int Width,
int X,
int Y,
int bytesDepth);
Definition: dimgthreadedfilter.h:41
Definition: filteraction.h:43
Definition: raindropfilter.h:42
static int CurrentVersion()
Definition: raindropfilter.h:96
QString filterIdentifier() const override
Definition: raindropfilter.h:101
static QList< int > SupportedVersions()
Definition: raindropfilter.h:91
static QString FilterIdentifier()
Definition: raindropfilter.h:84
@ Width
Definition: coredbfields.h:87
@ Height
Definition: coredbfields.h:88
Definition: datefolderview.cpp:43