Function spdl::core::to_rational

Function Documentation

Rational spdl::core::to_rational(int64_t val, const Rational time_base)

Convert an integer value to rational using a time base.

Parameters:
  • val – Integer value (typically a timestamp).

  • time_base – Time base for conversion.

Returns:

Rational representation.