CaptureMoment
0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
pipeline_context.cpp
Go to the documentation of this file.
1
8
#include "
pipeline/pipeline_context.h
"
9
#include "
pipeline/pipeline_registry.h
"
10
11
#include <spdlog/spdlog.h>
12
13
namespace
CaptureMoment::Core::Pipeline
{
14
15
PipelineContext::PipelineContext
()
16
{
17
spdlog::info(
"PipelineContext::PipelineContext: Initializing Context..."
);
18
19
// Register all available pipeline types
20
PipelineRegistry::registerAll
();
21
22
// Instantiate concrete managers (Halide only for now)
23
m_halide_manager = std::make_unique<Strategies::PipelineHalideOperationManager>();
24
25
if
(!m_halide_manager) {
26
spdlog::error(
"PipelineContext::PipelineContext: Failed to build Halide Manager."
);
27
}
28
29
spdlog::debug(
"PipelineContext::PipelineContext: Context initialized with Builder and Managers."
);
30
spdlog::debug(
"PipelineContext::PipelineContext: Builder and Managers are ready for use."
);
31
32
// Note: The actual initialization of managers with operations is done later by StateImageManager
33
// when it has the list of operations ready. This allows the Context to be flexible and not
34
// tied to a specific set of operations at construction time.
35
36
spdlog::info(
"PipelineContext::PipelineContext: Initialization complete."
);
37
}
38
39
}
// namespace CaptureMoment::Core::Pipeline
CaptureMoment::Core::Pipeline::PipelineContext::PipelineContext
PipelineContext()
Constructor.
Definition
pipeline_context.cpp:15
CaptureMoment::Core::Pipeline::PipelineRegistry::registerAll
static void registerAll()
Register all available pipeline executors.
Definition
pipeline_registry.cpp:17
CaptureMoment::Core::Pipeline
Definition
operation_pipeline_executor.cpp:15
pipeline_context.h
Container for pipeline infrastructure (Builder and Managers).
pipeline_registry.h
Central registry for all pipeline executors.
CaptureMoment — footer