Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_denoise.cc
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | static void cmp_node_denoise_declare(NodeDeclarationBuilder &b) | ||||
| b.add_input<decl::Color>(N_("Albedo")).default_value({1.0f, 1.0f, 1.0f, 1.0f}).hide_value(); | b.add_input<decl::Color>(N_("Albedo")).default_value({1.0f, 1.0f, 1.0f, 1.0f}).hide_value(); | ||||
| b.add_output<decl::Color>(N_("Image")); | b.add_output<decl::Color>(N_("Image")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void node_composit_init_denonise(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_denonise(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeDenoise *ndg = MEM_cnew<NodeDenoise>(__func__); | NodeDenoise *ndg = MEM_cnew<NodeDenoise>(MEM_AT); | ||||
| ndg->hdr = true; | ndg->hdr = true; | ||||
| ndg->prefilter = CMP_NODE_DENOISE_PREFILTER_ACCURATE; | ndg->prefilter = CMP_NODE_DENOISE_PREFILTER_ACCURATE; | ||||
| node->storage = ndg; | node->storage = ndg; | ||||
| } | } | ||||
| static void node_composit_buts_denoise(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_denoise(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| #ifndef WITH_OPENIMAGEDENOISE | #ifndef WITH_OPENIMAGEDENOISE | ||||
| Show All 27 Lines | |||||