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

◆ time_span()

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

Create a Region representing a time span (e.g., a segment of frames).

Parameters
start_frameStart frame index (inclusive).
end_frameEnd frame index (inclusive).
labelOptional label for this span.
extra_dataOptional extra metadata.
Returns
Region covering the specified time span.

Definition at line 135 of file Region.hpp.

138 {})
139 {
140 std::unordered_map<std::string, std::any> attrs;
141 if (!label.empty())
142 attrs["label"] = label;
143 if (extra_data.has_value())
144 attrs["data"] = extra_data;
145 attrs["type"] = "time_span";
146 return Region({ start_frame }, { end_frame }, attrs);
147 }

Referenced by MayaFlux::Kakshya::SoundStreamContainer::set_looping(), and MayaFlux::IO::FileRegion::to_region().

+ Here is the caller graph for this function: