TSDuck v3.45-4787
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::TimeSourceSuperTraits< T, typename std::enable_if< T==TimeSource::PTS||T==TimeSource::DTS >::type > Class Template Reference

TimeSourceSuperTraits specialization for PTS and DTS. More...

#include <tsTS.h>

Static Public Attributes

static constexpr uint64_t BIT_MASK = SCALE - 1
 Bit mask for PTS and DTS values (wrap up at 2^33).
 
static constexpr size_t BIT_SIZE = 33
 Size in bits of PTS and DTS.
 
static constexpr uint64_t SCALE = 1LL << BIT_SIZE
 Scale factor for PTS and DTS (modular time source).
 
static constexpr uint64_t TICKS = 90'000
 Clock frequency in Hz for PTS and DTS.
 

Detailed Description

template<TimeSource T>
class ts::TimeSourceSuperTraits< T, typename std::enable_if< T==TimeSource::PTS||T==TimeSource::DTS >::type >

TimeSourceSuperTraits specialization for PTS and DTS.

Member Data Documentation

◆ BIT_MASK

template<TimeSource T>
constexpr uint64_t ts::TimeSourceSuperTraits< T, typename std::enable_if< T==TimeSource::PTS||T==TimeSource::DTS >::type >::BIT_MASK = SCALE - 1
staticconstexpr

Bit mask for PTS and DTS values (wrap up at 2^33).

The BIT_MASK value exists only for strictly binary time source which wrap up at 2^N.


The documentation for this class was generated from the following file: