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

◆ make_scalar()

InputValue MayaFlux::Core::InputValue::make_scalar ( double  v,
uint32_t  dev_id,
InputType  src 
)
static

Definition at line 141 of file InputBinding.cpp.

142{
143 return {
144 .type = Type::SCALAR,
145 .data = v,
146 .timestamp_ns = static_cast<uint64_t>(
147 std::chrono::steady_clock::now().time_since_epoch().count()),
148 .device_id = dev_id,
149 .source_type = src
150 };
151}
uint32_t device_id
Source device identifier.
@ SCALAR
Single normalized float [-1.0, 1.0] or [0.0, 1.0].
InputType source_type
Backend that generated this value.

References device_id, SCALAR, source_type, and type.