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:
authorManuel Castilla <manzanillawork@gmail.com>2021-10-14 00:01:04 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-10-14 00:41:14 +0300
commita2ee3c3a9f01f5cb2f05f1e84a1b6c1931d9d4a4 (patch)
treed409678b16280311ed228929a45c9470f67a6dcd /source/blender/compositor/operations/COM_MaskOperation.h
parentea79efef70da14100b591b50dcada819808f20b6 (diff)
Cleanup: replace members `m_` prefix by `_` suffix in Compositor
To convert old code to the current convention and use a single code style.
Diffstat (limited to 'source/blender/compositor/operations/COM_MaskOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_MaskOperation.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/source/blender/compositor/operations/COM_MaskOperation.h b/source/blender/compositor/operations/COM_MaskOperation.h
index 8ad3044b6cd..e8f386242b4 100644
--- a/source/blender/compositor/operations/COM_MaskOperation.h
+++ b/source/blender/compositor/operations/COM_MaskOperation.h
@@ -33,23 +33,23 @@ namespace blender::compositor {
*/
class MaskOperation : public MultiThreadedOperation {
protected:
- Mask *m_mask;
+ Mask *mask_;
/* NOTE: these are used more like aspect,
* but they _do_ impact on mask detail */
- int m_maskWidth;
- int m_maskHeight;
- float m_maskWidthInv; /* `1 / m_maskWidth` */
- float m_maskHeightInv; /* `1 / m_maskHeight` */
- float m_mask_px_ofs[2];
+ int maskWidth_;
+ int maskHeight_;
+ float maskWidthInv_; /* `1 / maskWidth_` */
+ float maskHeightInv_; /* `1 / maskHeight_` */
+ float mask_px_ofs_[2];
- float m_frame_shutter;
- int m_frame_number;
+ float frame_shutter_;
+ int frame_number_;
- bool m_do_feather;
+ bool do_feather_;
- struct MaskRasterHandle *m_rasterMaskHandles[CMP_NODE_MASK_MBLUR_SAMPLES_MAX];
- unsigned int m_rasterMaskHandleTot;
+ struct MaskRasterHandle *rasterMaskHandles_[CMP_NODE_MASK_MBLUR_SAMPLES_MAX];
+ unsigned int rasterMaskHandleTot_;
/**
* Determine the output resolution. The resolution is retrieved from the Renderer
@@ -64,36 +64,36 @@ class MaskOperation : public MultiThreadedOperation {
void setMask(Mask *mask)
{
- m_mask = mask;
+ mask_ = mask;
}
void setMaskWidth(int width)
{
- m_maskWidth = width;
- m_maskWidthInv = 1.0f / (float)width;
- m_mask_px_ofs[0] = m_maskWidthInv * 0.5f;
+ maskWidth_ = width;
+ maskWidthInv_ = 1.0f / (float)width;
+ mask_px_ofs_[0] = maskWidthInv_ * 0.5f;
}
void setMaskHeight(int height)
{
- m_maskHeight = height;
- m_maskHeightInv = 1.0f / (float)height;
- m_mask_px_ofs[1] = m_maskHeightInv * 0.5f;
+ maskHeight_ = height;
+ maskHeightInv_ = 1.0f / (float)height;
+ mask_px_ofs_[1] = maskHeightInv_ * 0.5f;
}
void setFramenumber(int frame_number)
{
- m_frame_number = frame_number;
+ frame_number_ = frame_number;
}
void setFeather(bool feather)
{
- m_do_feather = feather;
+ do_feather_ = feather;
}
void setMotionBlurSamples(int samples)
{
- m_rasterMaskHandleTot = MIN2(MAX2(1, samples), CMP_NODE_MASK_MBLUR_SAMPLES_MAX);
+ rasterMaskHandleTot_ = MIN2(MAX2(1, samples), CMP_NODE_MASK_MBLUR_SAMPLES_MAX);
}
void setMotionBlurShutter(float shutter)
{
- m_frame_shutter = shutter;
+ frame_shutter_ = shutter;
}
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;