![]() |
SmartSpectra C++ SDK
Measure human vitals from video with SmartSpectra C++ SDK.
|
#include <file_ipc_configuration.hpp>
Public Member Functions | |
| nlohmann::json | ToJson () const |
Static Public Member Functions | |
| static absl::StatusOr< FileIpcConfiguration > | LoadFromJson (const std::filesystem::path &path) |
| static absl::Status | SaveToJson (const FileIpcConfiguration &config, const std::filesystem::path &path) |
| static absl::StatusOr< FileIpcConfiguration > | FromJson (const nlohmann::json &j) |
Public Attributes | |
| std::filesystem::path | base_directory = "/tmp/physiology_ipc" |
| bool | create_if_missing = true |
| bool | truncate_on_init = false |
| size_t | max_frame_count = 1000 |
| bool | use_file_locking = true |
| bool | compress_frames = false |
| size_t | io_buffer_size = 8192 |
| bool | enable_debug_logging = false |
| int | jpeg_quality = 85 |
Configuration for filesystem-based IPC communication.
This configuration defines how the physiology system should use filesystem operations to communicate between Edge and Core components.
|
static |
Create a configuration from a JSON object.
| j | The JSON object to deserialize |
|
static |
Load configuration from a JSON file.
| path | Path to the JSON configuration file |
|
static |
Save configuration to a JSON file.
| config | The configuration to save |
| path | Path where the JSON file should be written |
|
nodiscard |
Convert this configuration to a JSON object.
| std::filesystem::path presage::smartspectra::file_ipc::FileIpcConfiguration::base_directory = "/tmp/physiology_ipc" |
Base directory for all IPC files. This directory will contain:
| bool presage::smartspectra::file_ipc::FileIpcConfiguration::compress_frames = false |
Whether to compress frame data before writing. Default: false (frames are expected to be already compressed)
| bool presage::smartspectra::file_ipc::FileIpcConfiguration::create_if_missing = true |
Whether to create the base directory if it doesn't exist. Default: true
| bool presage::smartspectra::file_ipc::FileIpcConfiguration::enable_debug_logging = false |
Whether to enable debug logging for IPC operations. Default: false
| size_t presage::smartspectra::file_ipc::FileIpcConfiguration::io_buffer_size = 8192 |
Buffer size for file I/O operations. Default: 8192 bytes
| int presage::smartspectra::file_ipc::FileIpcConfiguration::jpeg_quality = 85 |
JPEG compression quality level for frame files (1-100). Higher values mean better quality but larger file sizes. Default: 85
| size_t presage::smartspectra::file_ipc::FileIpcConfiguration::max_frame_count = 1000 |
Maximum number of frames to keep in the frames directory. Older frames will be deleted when this limit is exceeded. Default: 1000 frames (0 = unlimited)
| bool presage::smartspectra::file_ipc::FileIpcConfiguration::truncate_on_init = false |
Whether to truncate existing files on initialization. Default: false (append to existing files)
| bool presage::smartspectra::file_ipc::FileIpcConfiguration::use_file_locking = true |
Whether to use file locking for concurrent access safety. Default: true