This patch adds a new Compositor modifier that applies a compositing node group on a sequencer strip. This patch also introduces the concept of a compositor node tree space subtype, where we now have a Scene and a Sequencer subtypes. Practically, this just means that node like the Render Layers node will not be available in the node editor in the Sequencer subtype. Future improvements includes: - The compositor context is recreated on every modifier application, while it should ideally be persistent somehow to make use of the compositor static cache. This might require work from the compositor side by moving the static cache outside of the context and make it thread safe if needed. See `Render.compositor` for an example on persistent context. - GPU execution is not supported. This just needs a GPU context to be bound before execution, but the tricky part is getting a GPU context. See `render::Compositor::execute` for an example on bounding a GPU context and why it is less straight forward. - Node inputs are not exposed on the sequencer modifier interface. An approach similar to Geometry Nodes modifier could be used, look at `update_input_properties_from_node_tree` for reference, but notice that Geometry Nodes naturally exempt the main Geometry socket because Geometry inputs can't be exposed, but for the compositor, we will have to exempt the main Color and Mask sockets manually. !145971 Co-authored-by: Aras Pranckevicius <aras@nesnausk.org> Co-authored-by: Falk David <falk@blender.org> Pull Request: https://projects.blender.org/blender/blender/pulls/139634
155 lines
3.5 KiB
CMake
155 lines
3.5 KiB
CMake
# SPDX-FileCopyrightText: 2011-2024 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(INC
|
|
PUBLIC .
|
|
intern
|
|
../compositor
|
|
../compositor/cached_resources
|
|
../compositor/derived_resources
|
|
../editors/include
|
|
../animrig
|
|
../makesrna
|
|
|
|
# RNA_prototypes.hh
|
|
${CMAKE_BINARY_DIR}/source/blender/makesrna
|
|
)
|
|
|
|
set(INC_SYS
|
|
|
|
)
|
|
|
|
set(SRC
|
|
SEQ_add.hh
|
|
SEQ_animation.hh
|
|
SEQ_channels.hh
|
|
SEQ_connect.hh
|
|
SEQ_edit.hh
|
|
SEQ_effects.hh
|
|
SEQ_iterator.hh
|
|
SEQ_modifier.hh
|
|
SEQ_modifiertypes.hh
|
|
SEQ_offscreen.hh
|
|
SEQ_prefetch.hh
|
|
SEQ_preview_cache.hh
|
|
SEQ_proxy.hh
|
|
SEQ_relations.hh
|
|
SEQ_render.hh
|
|
SEQ_retiming.hh
|
|
SEQ_select.hh
|
|
SEQ_sequencer.hh
|
|
SEQ_sound.hh
|
|
SEQ_thumbnail_cache.hh
|
|
SEQ_time.hh
|
|
SEQ_transform.hh
|
|
SEQ_utils.hh
|
|
|
|
intern/animation.cc
|
|
intern/cache/final_image_cache.cc
|
|
intern/cache/final_image_cache.hh
|
|
intern/cache/intra_frame_cache.cc
|
|
intern/cache/intra_frame_cache.hh
|
|
intern/cache/preview_cache.cc
|
|
intern/cache/source_image_cache.cc
|
|
intern/cache/source_image_cache.hh
|
|
intern/cache/thumbnail_cache.cc
|
|
intern/channels.cc
|
|
intern/effects/effects.cc
|
|
intern/effects/effects.hh
|
|
intern/effects/vse_effect_add_sub_mul.cc
|
|
intern/effects/vse_effect_adjustment.cc
|
|
intern/effects/vse_effect_blend.cc
|
|
intern/effects/vse_effect_cross.cc
|
|
intern/effects/vse_effect_gaussian_blur.cc
|
|
intern/effects/vse_effect_glow.cc
|
|
intern/effects/vse_effect_multi_camera.cc
|
|
intern/effects/vse_effect_solid_color.cc
|
|
intern/effects/vse_effect_speed.cc
|
|
intern/effects/vse_effect_text.cc
|
|
intern/effects/vse_effect_transform.cc
|
|
intern/effects/vse_effect_wipe.cc
|
|
intern/modifiers/MOD_brightness_contrast.cc
|
|
intern/modifiers/MOD_color_balance.cc
|
|
intern/modifiers/MOD_compositor.cc
|
|
intern/modifiers/MOD_curves.cc
|
|
intern/modifiers/MOD_hue_correct.cc
|
|
intern/modifiers/MOD_mask.cc
|
|
intern/modifiers/MOD_none.cc
|
|
intern/modifiers/MOD_sound_equalizer.cc
|
|
intern/modifiers/MOD_tonemap.cc
|
|
intern/modifiers/MOD_white_balance.cc
|
|
intern/modifiers/modifier.cc
|
|
intern/modifiers/modifier.hh
|
|
intern/iterator.cc
|
|
intern/media_presence.cc
|
|
intern/multiview.cc
|
|
intern/multiview.hh
|
|
intern/prefetch.cc
|
|
intern/prefetch.hh
|
|
intern/proxy.cc
|
|
intern/proxy.hh
|
|
intern/proxy_job.cc
|
|
intern/render.cc
|
|
intern/render.hh
|
|
intern/sequencer.cc
|
|
intern/sequencer.hh
|
|
intern/sound.cc
|
|
intern/strip_add.cc
|
|
intern/strip_connect.cc
|
|
intern/strip_edit.cc
|
|
intern/strip_lookup.cc
|
|
intern/strip_relations.cc
|
|
intern/strip_retiming.cc
|
|
intern/strip_select.cc
|
|
intern/strip_time.cc
|
|
intern/strip_time.hh
|
|
intern/strip_transform.cc
|
|
intern/utils.cc
|
|
intern/utils.hh
|
|
)
|
|
|
|
set(LIB
|
|
PRIVATE bf::blenfont
|
|
PRIVATE bf::blenkernel
|
|
PRIVATE bf::blenlib
|
|
PRIVATE bf::blenloader
|
|
PRIVATE bf::blentranslation
|
|
PRIVATE bf::depsgraph
|
|
PRIVATE bf::dna
|
|
PRIVATE bf::extern::fmtlib
|
|
PRIVATE bf::gpu
|
|
PRIVATE bf::imbuf
|
|
PRIVATE bf::imbuf::movie
|
|
PRIVATE bf::intern::atomic
|
|
PRIVATE bf::intern::clog
|
|
PRIVATE bf::intern::guardedalloc
|
|
PRIVATE bf::nodes
|
|
PRIVATE bf::render
|
|
PRIVATE bf::windowmanager
|
|
bf_compositor
|
|
)
|
|
|
|
if(WITH_AUDASPACE)
|
|
list(APPEND INC_SYS
|
|
${AUDASPACE_C_INCLUDE_DIRS}
|
|
)
|
|
if(WITH_SYSTEM_AUDASPACE)
|
|
list(APPEND LIB
|
|
${AUDASPACE_C_LIBRARIES}
|
|
${AUDASPACE_PY_LIBRARIES}
|
|
)
|
|
endif()
|
|
add_definitions(-DWITH_AUDASPACE)
|
|
|
|
if(WITH_FFTW3)
|
|
add_definitions(-DWITH_CONVOLUTION)
|
|
endif()
|
|
endif()
|
|
|
|
blender_add_lib(bf_sequencer "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
|
add_library(bf::sequencer ALIAS bf_sequencer)
|
|
|
|
# RNA_prototypes.hh
|
|
add_dependencies(bf_sequencer bf_rna)
|