summaryrefslogtreecommitdiffstats
path: root/digikam/imageplugins/filmgrain/filmgrain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/imageplugins/filmgrain/filmgrain.cpp')
-rw-r--r--digikam/imageplugins/filmgrain/filmgrain.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/digikam/imageplugins/filmgrain/filmgrain.cpp b/digikam/imageplugins/filmgrain/filmgrain.cpp
index 9ca2df0f..02bbca8c 100644
--- a/digikam/imageplugins/filmgrain/filmgrain.cpp
+++ b/digikam/imageplugins/filmgrain/filmgrain.cpp
@@ -44,8 +44,8 @@
namespace DigikamFilmGrainImagesPlugin
{
-FilmGrain::FilmGrain(Digikam::DImg *orgImage, TQObject *tqparent, int sensibility)
- : Digikam::DImgThreadedFilter(orgImage, tqparent, "FilmGrain")
+FilmGrain::FilmGrain(Digikam::DImg *orgImage, TQObject *parent, int sensibility)
+ : Digikam::DImgThreadedFilter(orgImage, parent, "FilmGrain")
{
m_sensibility = sensibility;
initFilter();
@@ -72,10 +72,10 @@ void FilmGrain::filmgrainImage(Digikam::DImg *orgImage, int Sensibility)
uchar* data = orgImage->bits();
Digikam::DImg grain(Width, Height, sixteenBit); // Grain blured without curves adjustment.
- Digikam::DImg tqmask(Width, Height, sixteenBit); // Grain tqmask with curves adjustment.
+ Digikam::DImg mask(Width, Height, sixteenBit); // Grain mask with curves adjustment.
uchar* pGrainBits = grain.bits();
- uchar* pMaskBits = tqmask.bits();
- uchar* pOutBits = m_destImage.bits(); // Destination image with merged grain tqmask and original.
+ uchar* pMaskBits = mask.bits();
+ uchar* pOutBits = m_destImage.bits(); // Destination image with merged grain mask and original.
int Noise, Shade, nRand, component, progress;
uchar *ptr;
@@ -86,7 +86,7 @@ void FilmGrain::filmgrainImage(Digikam::DImg *orgImage, int Sensibility)
else
Noise = Sensibility / 10;
- // This value controls the shading pixel effect between original image and grain tqmask.
+ // This value controls the shading pixel effect between original image and grain mask.
if (sixteenBit)
Shade = (52 + 1) * 256 - 1;
else
@@ -96,7 +96,7 @@ void FilmGrain::filmgrainImage(Digikam::DImg *orgImage, int Sensibility)
TQDateTime Y2000( TQDate(2000, 1, 1), TQTime(0, 0, 0) );
uint seed = (uint) dt.secsTo(Y2000);
- // Make gray grain tqmask.
+ // Make gray grain mask.
grainData.setSixteenBit(sixteenBit);
@@ -127,7 +127,7 @@ void FilmGrain::filmgrainImage(Digikam::DImg *orgImage, int Sensibility)
postProgress( progress );
}
- // Smooth grain tqmask using gaussian blur with radius 1.
+ // Smooth grain mask using gaussian blur with radius 1.
Digikam::DImgGaussianBlur(this, grain, grain, 25, 30, 1);
// Normally, film grain tends to be most noticeable in the midtones, and much less
@@ -174,7 +174,7 @@ void FilmGrain::filmgrainImage(Digikam::DImg *orgImage, int Sensibility)
// read color from orig image
blendData.setColor(data + offset, sixteenBit);
- // read color from tqmask
+ // read color from mask
maskData.setColor(pMaskBits + offset, sixteenBit);
// set shade as alpha value - it will be used as source alpha when blending
maskData.setAlpha(Shade);