summaryrefslogtreecommitdiffstats
path: root/digikam/imageplugins/infrared/infrared.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/imageplugins/infrared/infrared.cpp')
-rw-r--r--digikam/imageplugins/infrared/infrared.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/digikam/imageplugins/infrared/infrared.cpp b/digikam/imageplugins/infrared/infrared.cpp
index a335c3bb..4874df94 100644
--- a/digikam/imageplugins/infrared/infrared.cpp
+++ b/digikam/imageplugins/infrared/infrared.cpp
@@ -44,8 +44,8 @@
namespace DigikamInfraredImagesPlugin
{
-Infrared::Infrared(Digikam::DImg *orgImage, TQObject *tqparent, int sensibility, bool grain)
- : Digikam::DImgThreadedFilter(orgImage, tqparent, "Infrared")
+Infrared::Infrared(Digikam::DImg *orgImage, TQObject *parent, int sensibility, bool grain)
+ : Digikam::DImgThreadedFilter(orgImage, parent, "Infrared")
{
m_sensibility = sensibility;
m_grain = grain;
@@ -110,9 +110,9 @@ void Infrared::infraredImage(Digikam::DImg *orgImage, int Sensibility, bool Grai
uchar* pBWBits = 0; // Black and White conversion.
uchar* pBWBlurBits = 0; // Black and White with blur.
uchar* pGrainBits = 0; // Grain blured without curves adjustment.
- uchar* pMaskBits = 0; // Grain tqmask with curves adjustment.
+ uchar* pMaskBits = 0; // Grain mask with curves adjustment.
uchar* pOverlayBits = 0; // Overlay to merge with original converted in gray scale.
- uchar* pOutBits = m_destImage.bits(); // Destination image with merged grain tqmask and original.
+ uchar* pOutBits = m_destImage.bits(); // Destination image with merged grain mask and original.
Digikam::DColor bwData, bwBlurData, grainData, maskData, overData, outData;
@@ -153,14 +153,14 @@ void Infrared::infraredImage(Digikam::DImg *orgImage, int Sensibility, bool Grai
}
//-----------------------------------------------------------------
- // 2 - Create Gaussian blured averlay tqmask with grain if necessary.
+ // 2 - Create Gaussian blured averlay mask with grain if necessary.
//-----------------------------------------------------------------
if (Grain)
{
- // Create gray grain tqmask.
+ // Create gray grain mask.
TQDateTime dt = TQDateTime::tqcurrentDateTime();
TQDateTime Y2000( TQDate(2000, 1, 1), TQTime(0, 0, 0) );
@@ -198,7 +198,7 @@ void Infrared::infraredImage(Digikam::DImg *orgImage, int Sensibility, bool Grai
postProgress( progress );
}
- // Smooth grain tqmask using gaussian blur.
+ // Smooth grain mask using gaussian blur.
Digikam::DImgImageFilters().gaussianBlurImage(pGrainBits, Width, Height, sixteenBit, 1);
@@ -223,7 +223,7 @@ void Infrared::infraredImage(Digikam::DImg *orgImage, int Sensibility, bool Grai
if (Grain)
{
Digikam::ImageCurves *grainCurves = new Digikam::ImageCurves(sixteenBit);
- pMaskBits = new uchar[numBytes]; // Grain tqmask with curves adjustment.
+ pMaskBits = new uchar[numBytes]; // Grain mask with curves adjustment.
// We modify only global luminosity of the grain.
if (sixteenBit)
@@ -268,7 +268,7 @@ void Infrared::infraredImage(Digikam::DImg *orgImage, int Sensibility, bool Grai
Digikam::DColorComposer *composer = Digikam::DColorComposer::getComposer(Digikam::DColorComposer::PorterDuffNone);
int alpha;
- int Shade = 52; // This value control the shading pixel effect between original image and grain tqmask.
+ int Shade = 52; // This value control the shading pixel effect between original image and grain mask.
if (sixteenBit)
Shade = (Shade + 1) * 256 - 1;
@@ -280,7 +280,7 @@ void Infrared::infraredImage(Digikam::DImg *orgImage, int Sensibility, bool Grai
// read color from orig image
bwBlurData.setColor(pBWBlurBits + 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);
@@ -317,7 +317,7 @@ void Infrared::infraredImage(Digikam::DImg *orgImage, int Sensibility, bool Grai
}
//------------------------------------------
- // 3 - Merge Grayscale image & overlay tqmask.
+ // 3 - Merge Grayscale image & overlay mask.
//------------------------------------------
// Merge overlay and gray scale image using 'Overlay' Gimp method for increase the highlight.