diff options
author | Manuel Castilla <manzanillawork@gmail.com> | 2021-08-23 16:28:08 +0300 |
---|---|---|
committer | Manuel Castilla <manzanillawork@gmail.com> | 2021-08-23 17:36:08 +0300 |
commit | 8f4730e66f45c300bb64fb185118f7d66355bf95 (patch) | |
tree | c85c867ae21bde89f8e24ba39470af798a47c791 /source/blender/compositor/operations/COM_ColorRampOperation.cc | |
parent | 21d4a888b80235470cf95ad775fb4a6308bc5de0 (diff) |
Compositor: Full frame convert nodes
Adds full frame implementation to all nodes in "Converter" sub-menu
except "ID Mask" which is implemented separately.
No functional changes.
Part of T88150.
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D12095
Diffstat (limited to 'source/blender/compositor/operations/COM_ColorRampOperation.cc')
-rw-r--r-- | source/blender/compositor/operations/COM_ColorRampOperation.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_ColorRampOperation.cc b/source/blender/compositor/operations/COM_ColorRampOperation.cc index 0ee65a6529e..6c1b23ea731 100644 --- a/source/blender/compositor/operations/COM_ColorRampOperation.cc +++ b/source/blender/compositor/operations/COM_ColorRampOperation.cc @@ -29,6 +29,7 @@ ColorRampOperation::ColorRampOperation() this->m_inputProgram = nullptr; this->m_colorBand = nullptr; + this->flags.can_be_constant = true; } void ColorRampOperation::initExecution() { @@ -51,4 +52,13 @@ void ColorRampOperation::deinitExecution() this->m_inputProgram = nullptr; } +void ColorRampOperation::update_memory_buffer_partial(MemoryBuffer *output, + const rcti &area, + Span<MemoryBuffer *> inputs) +{ + for (BuffersIterator<float> it = output->iterate_with(inputs, area); !it.is_end(); ++it) { + BKE_colorband_evaluate(m_colorBand, *it.in(0), it.out); + } +} + } // namespace blender::compositor |