Blender V4.3
COM_ColorBalanceLGGOperation.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9namespace blender::compositor {
10
16 protected:
17 float gain_[3];
18 float lift_[3];
19 float gamma_inv_[3];
20
21 public:
23
24 void set_gain(const float gain[3])
25 {
26 copy_v3_v3(gain_, gain);
27 }
28 void set_lift(const float lift[3])
29 {
30 copy_v3_v3(lift_, lift);
31 }
32 void set_gamma_inv(const float gamma_inv[3])
33 {
34 copy_v3_v3(gamma_inv_, gamma_inv);
35 }
36
37 void update_memory_buffer_row(PixelCursor &p) override;
38};
39
40} // namespace blender::compositor
MINLINE void copy_v3_v3(float r[3], const float a[3])