47 std::unique_ptr<Managers::StateImageManager> m_state_manager;
71 [[nodiscard]] std::expected<void, ErrorHandling::CoreError>
loadImage(std::string_view path);
127 [[nodiscard]] std::future<bool>
applyOperations(std::vector<Operations::OperationDescriptor>&& ops);
Core engine orchestrating image loading and cumulative operation management.
Common::ImageDim width() const noexcept
Gets the width of the loaded image.
std::expected< void, ErrorHandling::CoreError > loadImage(std::string_view path)
Loads an image file and initializes the processing pipeline.
Common::ImageDim height() const noexcept
Gets the height of the loaded image.
void resetWorkingImage()
Resets the working image to the original state.
Common::ImageChan channels() const noexcept
Gets the number of color channels.
std::expected< std::unique_ptr< Common::ImageRegion >, ErrorHandling::CoreError > getDownsampledDisplayImage(Common::ImageDim width, Common::ImageDim height)
std::expected< void, ErrorHandling::CoreError > commitWorkingImageToSource()
Commits the processed working image back to the source manager.
std::expected< std::unique_ptr< Common::ImageRegion >, ErrorHandling::CoreError > getWorkingImageAsRegion() const
Gets the working image as a CPU-based copy.
PhotoEngine()
Constructs a PhotoEngine instance.
std::future< bool > applyOperations(std::vector< Operations::OperationDescriptor > &&ops)
Applies a cumulative list of operations.
Central error handling system for CaptureMoment Core library.
Defines the ImageRegion structure for representing pixel buffers in the CaptureMoment Core library.
Common type definitions for all image types in CaptureMoment.
std::uint8_t ImageChan
Type for channel count.
std::size_t ImageDim
Type for image dimensions (width, height).
CoreError
Enumeration of all error codes for CaptureMoment Core.
Manages the lifecycle of a single IWorkingImage instance.
Descriptor of an operation with its parameters and unique identifier.
Image source management class using OpenImageIO (OIIO).
Declaration of StateImageManager class.