Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/intern/COM_FullFrameOperation.h
- This file was added.
| /* | |||||
| * This program is free software; you can redistribute it and/or | |||||
| * modify it under the terms of the GNU General Public License | |||||
| * as published by the Free Software Foundation; either version 2 | |||||
| * of the License, or (at your option) any later version. | |||||
| * | |||||
| * This program is distributed in the hope that it will be useful, | |||||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
| * GNU General Public License for more details. | |||||
| * | |||||
| * You should have received a copy of the GNU General Public License | |||||
| * along with this program; if not, write to the Free Software Foundation, | |||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||||
| * | |||||
| * Copyright 2011, Blender Foundation. | |||||
| */ | |||||
| #pragma once | |||||
| #include "COM_WriteBufferOperation.h" | |||||
| namespace blender::compositor { | |||||
| class FullFrameOperation { | |||||
| protected: | |||||
| /** | |||||
| * Executes a write buffer operation region. | |||||
| */ | |||||
| void execute_write_buffer_region(WriteBufferOperation *write_buffer_op, rcti *rect); | |||||
| /** | |||||
| * Executes an output operation region. | |||||
| */ | |||||
| void execute_output_region(NodeOperation *output_op, rcti *rect); | |||||
| /** | |||||
| * Updates output memory buffer area by executing operation algorithm. | |||||
| * output_buffer will be null when operation has no output socket (output operations). | |||||
| */ | |||||
| virtual void update_memory_buffer(MemoryBuffer *output_buffer, | |||||
| rcti *output_rect, | |||||
| blender::Span<MemoryBuffer *> inputs) = 0; | |||||
| /** | |||||
| * Get input area used by this operation. Only this area will be rendered. | |||||
| */ | |||||
| virtual void get_input_area_of_interest(int input_socket_index, | |||||
| const rcti *output_rect, | |||||
| rcti *r_input_area); | |||||
| private: | |||||
| blender::Vector<MemoryBuffer *> get_input_buffers(NodeOperation *operation, | |||||
| const rcti *output_rect); | |||||
| }; | |||||
| } // namespace blender::compositor | |||||