diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_MaskOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_MaskOperation.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/source/blender/compositor/operations/COM_MaskOperation.h b/source/blender/compositor/operations/COM_MaskOperation.h index e8f386242b4..5fc0ed96c22 100644 --- a/source/blender/compositor/operations/COM_MaskOperation.h +++ b/source/blender/compositor/operations/COM_MaskOperation.h @@ -37,10 +37,10 @@ class MaskOperation : public MultiThreadedOperation { /* NOTE: these are used more like aspect, * but they _do_ impact on mask detail */ - int maskWidth_; - int maskHeight_; - float maskWidthInv_; /* `1 / maskWidth_` */ - float maskHeightInv_; /* `1 / maskHeight_` */ + int mask_width_; + int mask_height_; + float mask_width_inv_; /* `1 / mask_width_` */ + float mask_height_inv_; /* `1 / mask_height_` */ float mask_px_ofs_[2]; float frame_shutter_; @@ -48,8 +48,8 @@ class MaskOperation : public MultiThreadedOperation { bool do_feather_; - struct MaskRasterHandle *rasterMaskHandles_[CMP_NODE_MASK_MBLUR_SAMPLES_MAX]; - unsigned int rasterMaskHandleTot_; + struct MaskRasterHandle *raster_mask_handles_[CMP_NODE_MASK_MBLUR_SAMPLES_MAX]; + unsigned int raster_mask_handle_tot_; /** * Determine the output resolution. The resolution is retrieved from the Renderer @@ -59,44 +59,44 @@ class MaskOperation : public MultiThreadedOperation { public: MaskOperation(); - void initExecution() override; - void deinitExecution() override; + void init_execution() override; + void deinit_execution() override; - void setMask(Mask *mask) + void set_mask(Mask *mask) { mask_ = mask; } - void setMaskWidth(int width) + void set_mask_width(int width) { - maskWidth_ = width; - maskWidthInv_ = 1.0f / (float)width; - mask_px_ofs_[0] = maskWidthInv_ * 0.5f; + mask_width_ = width; + mask_width_inv_ = 1.0f / (float)width; + mask_px_ofs_[0] = mask_width_inv_ * 0.5f; } - void setMaskHeight(int height) + void set_mask_height(int height) { - maskHeight_ = height; - maskHeightInv_ = 1.0f / (float)height; - mask_px_ofs_[1] = maskHeightInv_ * 0.5f; + mask_height_ = height; + mask_height_inv_ = 1.0f / (float)height; + mask_px_ofs_[1] = mask_height_inv_ * 0.5f; } - void setFramenumber(int frame_number) + void set_framenumber(int frame_number) { frame_number_ = frame_number; } - void setFeather(bool feather) + void set_feather(bool feather) { do_feather_ = feather; } - void setMotionBlurSamples(int samples) + void set_motion_blur_samples(int samples) { - rasterMaskHandleTot_ = MIN2(MAX2(1, samples), CMP_NODE_MASK_MBLUR_SAMPLES_MAX); + raster_mask_handle_tot_ = MIN2(MAX2(1, samples), CMP_NODE_MASK_MBLUR_SAMPLES_MAX); } - void setMotionBlurShutter(float shutter) + void set_motion_blur_shutter(float shutter) { frame_shutter_ = shutter; } - void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override; + void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override; void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, |