CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
i_worker_request.h File Reference

Abstract interface for asynchronous image processing workers. More...

#include <future>
#include <memory>
+ Include dependency graph for i_worker_request.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

interface  CaptureMoment::Core::Workers::IWorkerRequest
 Base interface for all asynchronous processing workers. More...
 

Namespaces

namespace  CaptureMoment
 
namespace  CaptureMoment::Core
 Manages the lifecycle of a single IWorkingImage instance.
 
namespace  CaptureMoment::Core::Pipeline
 
namespace  CaptureMoment::Core::ImageProcessing
 
namespace  CaptureMoment::Core::Workers
 

Detailed Description

Abstract interface for asynchronous image processing workers.

This interface defines the contract for any specific image processing task (Worker). It follows the Intent pattern: the caller (StateImageManager) invokes the worker, and the worker handles the specific execution logic and data.

Architecture:

  • Async Execution: The primary method execute returns a std::future<bool>, allowing the implementation to handle threading (e.g., via std::async or a thread pool) internally.
  • Context Injection: Receives a PipelineContext to access compiled managers and infrastructure.
  • Data Ownership: Derived classes (e.g., HalideOperationWorker) are responsible for storing and managing their specific data (e.g., operation vectors, AI parameters).
Author
CaptureMoment Team
Date
2026

Definition in file i_worker_request.h.

CaptureMoment — footer