diff options
author | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-14 00:01:15 +0300 |
---|---|---|
committer | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-14 00:41:14 +0300 |
commit | 1c42d4930a24d639b3aa561b9a8b4bbce05977e0 (patch) | |
tree | 68c2aae3fd5ae98b78708bea28c0b55d3f4fb5f0 /source/blender/compositor/operations/COM_CryptomatteOperation.cc | |
parent | a2ee3c3a9f01f5cb2f05f1e84a1b6c1931d9d4a4 (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_CryptomatteOperation.cc')
-rw-r--r-- | source/blender/compositor/operations/COM_CryptomatteOperation.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/compositor/operations/COM_CryptomatteOperation.cc b/source/blender/compositor/operations/COM_CryptomatteOperation.cc index a6b9e2c2ee4..078ec9b6dfe 100644 --- a/source/blender/compositor/operations/COM_CryptomatteOperation.cc +++ b/source/blender/compositor/operations/COM_CryptomatteOperation.cc @@ -24,27 +24,27 @@ CryptomatteOperation::CryptomatteOperation(size_t num_inputs) { inputs.resize(num_inputs); for (size_t i = 0; i < num_inputs; i++) { - this->addInputSocket(DataType::Color); + this->add_input_socket(DataType::Color); } - this->addOutputSocket(DataType::Color); + this->add_output_socket(DataType::Color); this->flags.complex = true; } -void CryptomatteOperation::initExecution() +void CryptomatteOperation::init_execution() { for (size_t i = 0; i < inputs.size(); i++) { - inputs[i] = this->getInputSocketReader(i); + inputs[i] = this->get_input_socket_reader(i); } } -void CryptomatteOperation::addObjectIndex(float objectIndex) +void CryptomatteOperation::add_object_index(float object_index) { - if (objectIndex != 0.0f) { - objectIndex_.append(objectIndex); + if (object_index != 0.0f) { + object_index_.append(object_index); } } -void CryptomatteOperation::executePixel(float output[4], int x, int y, void *data) +void CryptomatteOperation::execute_pixel(float output[4], int x, int y, void *data) { float input[4]; output[0] = output[1] = output[2] = output[3] = 0.0f; @@ -60,7 +60,7 @@ void CryptomatteOperation::executePixel(float output[4], int x, int y, void *dat output[1] = ((float)(m3hash << 8) / (float)UINT32_MAX); output[2] = ((float)(m3hash << 16) / (float)UINT32_MAX); } - for (float hash : objectIndex_) { + for (float hash : object_index_) { if (input[0] == hash) { output[3] += input[1]; } @@ -89,7 +89,7 @@ void CryptomatteOperation::update_memory_buffer_partial(MemoryBuffer *output, it.out[1] = ((float)(m3hash << 8) / (float)UINT32_MAX); it.out[2] = ((float)(m3hash << 16) / (float)UINT32_MAX); } - for (const float hash : objectIndex_) { + for (const float hash : object_index_) { if (input[0] == hash) { it.out[3] += input[1]; } |