Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-08-19 11:32:47 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-08-19 11:32:47 +0400
commit1dc19975c076dccba6054a3961f92c8baf9f1e65 (patch)
treee07dc8b5425bfe151596f0f49fc87217b66f97b9 /source/blender/compositor/operations
parentf008a4c55142225c9ab7a2fe363c06080128fe51 (diff)
Fix warnings reported by cavity checker
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r--source/blender/compositor/operations/COM_PlaneTrackMaskOperation.cpp7
-rw-r--r--source/blender/compositor/operations/COM_PlaneTrackWarpImageOperation.cpp7
2 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/compositor/operations/COM_PlaneTrackMaskOperation.cpp b/source/blender/compositor/operations/COM_PlaneTrackMaskOperation.cpp
index fe794cb769f..8aa1324d8e2 100644
--- a/source/blender/compositor/operations/COM_PlaneTrackMaskOperation.cpp
+++ b/source/blender/compositor/operations/COM_PlaneTrackMaskOperation.cpp
@@ -38,15 +38,16 @@ extern "C" {
PlaneTrackMaskOperation::PlaneTrackMaskOperation() : PlaneTrackCommonOperation()
{
this->addOutputSocket(COM_DT_VALUE);
+
+ /* Currently hardcoded to 8 samples. */
+ this->m_osa = 8;
}
void PlaneTrackMaskOperation::initExecution()
{
PlaneTrackCommonOperation::initExecution();
- const int osa = 8;
- this->m_osa = osa;
- BLI_jitter_init(this->m_jitter[0], osa);
+ BLI_jitter_init(this->m_jitter[0], this->m_osa);
}
void PlaneTrackMaskOperation::executePixel(float output[4], float x, float y, PixelSampler sampler)
diff --git a/source/blender/compositor/operations/COM_PlaneTrackWarpImageOperation.cpp b/source/blender/compositor/operations/COM_PlaneTrackWarpImageOperation.cpp
index c90e915fcd5..2385219c656 100644
--- a/source/blender/compositor/operations/COM_PlaneTrackWarpImageOperation.cpp
+++ b/source/blender/compositor/operations/COM_PlaneTrackWarpImageOperation.cpp
@@ -106,6 +106,9 @@ PlaneTrackWarpImageOperation::PlaneTrackWarpImageOperation() : PlaneTrackCommonO
this->addOutputSocket(COM_DT_COLOR);
this->m_pixelReader = NULL;
this->setComplex(true);
+
+ /* Currently hardcoded to 8 samples. */
+ this->m_osa = 8;
}
void PlaneTrackWarpImageOperation::initExecution()
@@ -114,9 +117,7 @@ void PlaneTrackWarpImageOperation::initExecution()
this->m_pixelReader = this->getInputSocketReader(0);
- const int osa = 8;
- this->m_osa = osa;
- BLI_jitter_init(this->m_jitter[0], osa);
+ BLI_jitter_init(this->m_jitter[0], this->m_osa);
}
void PlaneTrackWarpImageOperation::deinitExecution()