MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ time_point()

static Region MayaFlux::Kakshya::Region::time_point ( uint64_t  frame,
const std::string &  label = "",
const std::any &  extra_data = {} 
)
inlinestatic

Create a Region representing a single time point (e.g., a frame or sample).

Parameters
frameThe frame index (time coordinate).
labelOptional label for this point.
extra_dataOptional extra metadata (e.g., analysis result).
Returns
Region at the specified frame.

Definition at line 114 of file Region.hpp.

116 {})
117 {
118 std::unordered_map<std::string, std::any> attrs;
119 if (!label.empty())
120 attrs["label"] = label;
121 if (extra_data.has_value())
122 attrs["data"] = extra_data;
123 attrs["type"] = "time_point";
124 return Region({ frame }, attrs);
125 }

Referenced by MayaFlux::IO::FileRegion::to_region().

+ Here is the caller graph for this function: