MayaFlux 0.4.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 201 of file InputBinding.cpp.

202{
203 return {
204 .type = Type::SCALAR,
205 .data = v,
206 .timestamp_ns = static_cast<uint64_t>(
207 std::chrono::steady_clock::now().time_since_epoch().count()),
208 .device_id = dev_id,
209 .source_type = src
210 };
211}
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.