Welcome to mirror list, hosted at ThFree Co, Russian Federation.

COM_CryptomatteOperation.h « operations « compositor « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d26807bc0b2e07d7831e5d8c9f827f9c200c558e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright 2018 Blender Foundation. */

#pragma once

#include "COM_MultiThreadedOperation.h"

namespace blender::compositor {

class CryptomatteOperation : public MultiThreadedOperation {
 private:
  Vector<float> object_index_;

 public:
  Vector<SocketReader *> inputs;

  CryptomatteOperation(size_t num_inputs = 6);

  void init_execution() override;
  void execute_pixel(float output[4], int x, int y, void *data) override;

  void add_object_index(float object_index);

  void update_memory_buffer_partial(MemoryBuffer *output,
                                    const rcti &area,
                                    Span<MemoryBuffer *> inputs) override;
};

}  // namespace blender::compositor