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:15 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-10-14 00:41:14 +0300
commit1c42d4930a24d639b3aa561b9a8b4bbce05977e0 (patch)
tree68c2aae3fd5ae98b78708bea28c0b55d3f4fb5f0 /source/blender/compositor/operations/COM_ReadBufferOperation.h
parenta2ee3c3a9f01f5cb2f05f1e84a1b6c1931d9d4a4 (diff)
Cleanup: convert camelCase naming to snake_case in Compositor
To convert old code to the current convention and use a single code style.
Diffstat (limited to 'source/blender/compositor/operations/COM_ReadBufferOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_ReadBufferOperation.h47
1 files changed, 24 insertions, 23 deletions
diff --git a/source/blender/compositor/operations/COM_ReadBufferOperation.h b/source/blender/compositor/operations/COM_ReadBufferOperation.h
index f4504e11f48..7f461d1c925 100644
--- a/source/blender/compositor/operations/COM_ReadBufferOperation.h
+++ b/source/blender/compositor/operations/COM_ReadBufferOperation.h
@@ -26,51 +26,52 @@ namespace blender::compositor {
class ReadBufferOperation : public NodeOperation {
private:
- MemoryProxy *memoryProxy_;
+ MemoryProxy *memory_proxy_;
bool single_value_; /* single value stored in buffer, copied from associated write operation */
unsigned int offset_;
MemoryBuffer *buffer_;
public:
ReadBufferOperation(DataType datatype);
- void setMemoryProxy(MemoryProxy *memoryProxy)
+ void set_memory_proxy(MemoryProxy *memory_proxy)
{
- memoryProxy_ = memoryProxy;
+ memory_proxy_ = memory_proxy;
}
- MemoryProxy *getMemoryProxy() const
+ MemoryProxy *get_memory_proxy() const
{
- return memoryProxy_;
+ return memory_proxy_;
}
void determine_canvas(const rcti &preferred_area, rcti &r_area) override;
- void *initializeTileData(rcti *rect) override;
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
- void executePixelExtend(float output[4],
- float x,
- float y,
- PixelSampler sampler,
- MemoryBufferExtend extend_x,
- MemoryBufferExtend extend_y);
- void executePixelFiltered(float output[4], float x, float y, float dx[2], float dy[2]) override;
- void setOffset(unsigned int offset)
+ void *initialize_tile_data(rcti *rect) override;
+ void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
+ void execute_pixel_extend(float output[4],
+ float x,
+ float y,
+ PixelSampler sampler,
+ MemoryBufferExtend extend_x,
+ MemoryBufferExtend extend_y);
+ void execute_pixel_filtered(
+ float output[4], float x, float y, float dx[2], float dy[2]) override;
+ void set_offset(unsigned int offset)
{
offset_ = offset;
}
- unsigned int getOffset() const
+ unsigned int get_offset() const
{
return offset_;
}
- bool determineDependingAreaOfInterest(rcti *input,
- ReadBufferOperation *readOperation,
- rcti *output) override;
- MemoryBuffer *getInputMemoryBuffer(MemoryBuffer **memoryBuffers) override
+ bool determine_depending_area_of_interest(rcti *input,
+ ReadBufferOperation *read_operation,
+ rcti *output) override;
+ MemoryBuffer *get_input_memory_buffer(MemoryBuffer **memory_buffers) override
{
- return memoryBuffers[offset_];
+ return memory_buffers[offset_];
}
- void readResolutionFromWriteBuffer();
- void updateMemoryBuffer();
+ void read_resolution_from_write_buffer();
+ void update_memory_buffer();
};
} // namespace blender::compositor