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:
Diffstat (limited to 'source/blender/compositor/operations/COM_ReadBufferOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_ReadBufferOperation.cc64
1 files changed, 32 insertions, 32 deletions
diff --git a/source/blender/compositor/operations/COM_ReadBufferOperation.cc b/source/blender/compositor/operations/COM_ReadBufferOperation.cc
index 9fe800021e7..75b4c61a376 100644
--- a/source/blender/compositor/operations/COM_ReadBufferOperation.cc
+++ b/source/blender/compositor/operations/COM_ReadBufferOperation.cc
@@ -25,39 +25,39 @@ namespace blender::compositor {
ReadBufferOperation::ReadBufferOperation(DataType datatype)
{
- this->addOutputSocket(datatype);
+ this->add_output_socket(datatype);
single_value_ = false;
offset_ = 0;
buffer_ = nullptr;
flags.is_read_buffer_operation = true;
}
-void *ReadBufferOperation::initializeTileData(rcti * /*rect*/)
+void *ReadBufferOperation::initialize_tile_data(rcti * /*rect*/)
{
return buffer_;
}
void ReadBufferOperation::determine_canvas(const rcti &preferred_area, rcti &r_area)
{
- if (memoryProxy_ != nullptr) {
- WriteBufferOperation *operation = memoryProxy_->getWriteBufferOperation();
+ if (memory_proxy_ != nullptr) {
+ WriteBufferOperation *operation = memory_proxy_->get_write_buffer_operation();
operation->determine_canvas(preferred_area, r_area);
operation->set_canvas(r_area);
/** \todo may not occur! But does with blur node. */
- if (memoryProxy_->getExecutor()) {
+ if (memory_proxy_->get_executor()) {
uint resolution[2] = {static_cast<uint>(BLI_rcti_size_x(&r_area)),
static_cast<uint>(BLI_rcti_size_y(&r_area))};
- memoryProxy_->getExecutor()->setResolution(resolution);
+ memory_proxy_->get_executor()->set_resolution(resolution);
}
- single_value_ = operation->isSingleValue();
+ single_value_ = operation->is_single_value();
}
}
-void ReadBufferOperation::executePixelSampled(float output[4],
- float x,
- float y,
- PixelSampler sampler)
+void ReadBufferOperation::execute_pixel_sampled(float output[4],
+ float x,
+ float y,
+ PixelSampler sampler)
{
if (single_value_) {
/* write buffer has a single value stored at (0,0) */
@@ -70,21 +70,21 @@ void ReadBufferOperation::executePixelSampled(float output[4],
break;
case PixelSampler::Bilinear:
default:
- buffer_->readBilinear(output, x, y);
+ buffer_->read_bilinear(output, x, y);
break;
case PixelSampler::Bicubic:
- buffer_->readBilinear(output, x, y);
+ buffer_->read_bilinear(output, x, y);
break;
}
}
}
-void ReadBufferOperation::executePixelExtend(float output[4],
- float x,
- float y,
- PixelSampler sampler,
- MemoryBufferExtend extend_x,
- MemoryBufferExtend extend_y)
+void ReadBufferOperation::execute_pixel_extend(float output[4],
+ float x,
+ float y,
+ PixelSampler sampler,
+ MemoryBufferExtend extend_x,
+ MemoryBufferExtend extend_y)
{
if (single_value_) {
/* write buffer has a single value stored at (0,0) */
@@ -94,11 +94,11 @@ void ReadBufferOperation::executePixelExtend(float output[4],
buffer_->read(output, x, y, extend_x, extend_y);
}
else {
- buffer_->readBilinear(output, x, y, extend_x, extend_y);
+ buffer_->read_bilinear(output, x, y, extend_x, extend_y);
}
}
-void ReadBufferOperation::executePixelFiltered(
+void ReadBufferOperation::execute_pixel_filtered(
float output[4], float x, float y, float dx[2], float dy[2])
{
if (single_value_) {
@@ -112,29 +112,29 @@ void ReadBufferOperation::executePixelFiltered(
}
}
-bool ReadBufferOperation::determineDependingAreaOfInterest(rcti *input,
- ReadBufferOperation *readOperation,
- rcti *output)
+bool ReadBufferOperation::determine_depending_area_of_interest(rcti *input,
+ ReadBufferOperation *read_operation,
+ rcti *output)
{
- if (this == readOperation) {
+ if (this == read_operation) {
BLI_rcti_init(output, input->xmin, input->xmax, input->ymin, input->ymax);
return true;
}
return false;
}
-void ReadBufferOperation::readResolutionFromWriteBuffer()
+void ReadBufferOperation::read_resolution_from_write_buffer()
{
- if (memoryProxy_ != nullptr) {
- WriteBufferOperation *operation = memoryProxy_->getWriteBufferOperation();
- this->setWidth(operation->getWidth());
- this->setHeight(operation->getHeight());
+ if (memory_proxy_ != nullptr) {
+ WriteBufferOperation *operation = memory_proxy_->get_write_buffer_operation();
+ this->set_width(operation->get_width());
+ this->set_height(operation->get_height());
}
}
-void ReadBufferOperation::updateMemoryBuffer()
+void ReadBufferOperation::update_memory_buffer()
{
- buffer_ = this->getMemoryProxy()->getBuffer();
+ buffer_ = this->get_memory_proxy()->get_buffer();
}
} // namespace blender::compositor