![]() |
TSDuck v3.46-4965
MPEG Transport Stream Toolkit
|
Classes | |
| class | ts::null_mutex |
| struct | ts::ThreadSafetyMutex< THS > |
Namespaces | |
| namespace | ts |
| TSDuck namespace, containing all TSDuck classes and functions. | |
Concepts | |
| concept | ts::is_duration |
| concept | ts::is_optional |
Typedefs | |
| using | ts::char_ptr = char* |
Pointer to char. | |
| using | ts::const_char_ptr = const char* |
Pointer to const char. | |
| using | ts::const_int16_ptr = const int16_t* |
Pointer to const int16_t. | |
| using | ts::const_int32_ptr = const int32_t* |
Pointer to const int32_t. | |
| using | ts::const_int64_ptr = const int64_t* |
Pointer to const int64_t. | |
| using | ts::const_int8_ptr = const int8_t* |
Pointer to const int8_t. | |
| using | ts::const_uint16_ptr = const uint16_t* |
Pointer to const uint16_t. | |
| using | ts::const_uint32_ptr = const uint32_t* |
Pointer to const uint32_t. | |
| using | ts::const_uint64_ptr = const uint64_t* |
Pointer to const uint64_t. | |
| using | ts::const_uint8_ptr = const uint8_t* |
Pointer to const uint8_t. | |
| using | ts::const_unaligned_int16_ptr = const unaligned_int16_t* |
Pointer to const unaligned int16_t. | |
| using | ts::const_unaligned_int32_ptr = const unaligned_int32_t* |
Pointer to const unaligned int32_t. | |
| using | ts::const_unaligned_int64_ptr = const unaligned_int64_t* |
Pointer to const unaligned int64_t. | |
| using | ts::const_unaligned_uint16_ptr = const unaligned_uint16_t* |
Pointer to const unaligned uint16_t. | |
| using | ts::const_unaligned_uint32_ptr = const unaligned_uint32_t* |
Pointer to const unaligned uint32_t. | |
| using | ts::const_unaligned_uint64_ptr = const unaligned_uint64_t* |
Pointer to const unaligned uint64_t. | |
| using | ts::deciseconds = cn::duration<cn::milliseconds::rep, std::deci> |
| using | ts::int16_ptr = int16_t* |
Pointer to int16_t. | |
| using | ts::int32_ptr = int32_t* |
Pointer to int32_t. | |
| using | ts::int64_ptr = int64_t* |
Pointer to int64_t. | |
| using | ts::int8_ptr = int8_t* |
Pointer to int8_t. | |
| using | ts::monotonic_time = cn::time_point<cn::steady_clock> |
| using | ts::timespec_nsec_t = decltype(::timespec::tv_nsec) |
| using | ts::timespec_sec_t = decltype(::timespec::tv_sec) |
| using | ts::timeval_sec_t = decltype(::timeval::tv_sec) |
| using | ts::timeval_usec_t = decltype(::timeval::tv_usec) |
| using | ts::uint16_ptr = uint16_t* |
Pointer to uint16_t. | |
| using | ts::uint32_ptr = uint32_t* |
Pointer to uint32_t. | |
| using | ts::uint64_ptr = uint64_t* |
Pointer to uint64_t. | |
| using | ts::uint8_ptr = uint8_t* |
Pointer to uint8_t. | |
| using | ts::unaligned_int16_ptr = unaligned_int16_t* |
Pointer to unaligned int16_t. | |
| using | ts::unaligned_int16_t = int16_t |
Unaligned int16_t. | |
| using | ts::unaligned_int32_ptr = unaligned_int32_t* |
Pointer to unaligned int32_t. | |
| using | ts::unaligned_int32_t = int32_t |
Unaligned int32_t. | |
| using | ts::unaligned_int64_ptr = unaligned_int64_t* |
Pointer to unaligned int64_t. | |
| using | ts::unaligned_int64_t = int64_t |
Unaligned int64_t. | |
| using | ts::unaligned_uint16_ptr = unaligned_uint16_t* |
Pointer to unaligned uint16_t. | |
| using | ts::unaligned_uint16_t = uint16_t |
Unaligned uint16_t. | |
| using | ts::unaligned_uint32_ptr = unaligned_uint32_t* |
Pointer to unaligned uint32_t. | |
| using | ts::unaligned_uint32_t = uint32_t |
Unaligned uint32_t. | |
| using | ts::unaligned_uint64_ptr = unaligned_uint64_t* |
Pointer to unaligned uint64_t. | |
| using | ts::unaligned_uint64_t = uint64_t |
Unaligned uint64_t. | |
Enumerations | |
| enum class | ts::ShareMode { ts::ShareMode::COPY , ts::ShareMode::SHARE } |
| enum class | ts::ThreadSafety { ts::ThreadSafety::Full , ts::ThreadSafety::None } |
| enum class | ts::Tristate { ts::Tristate::Maybe = -1 , ts::Tristate::False = 0 , ts::Tristate::True = 1 } |
Functions | |
| template<class T, class U> | |
| void | ts::set_default (std::optional< T > &opt, const U &value) |
| template<typename INT> requires std::integral<INT> | |
| Tristate | ts::ToTristate (INT i) |
Variables | |
| template<typename T> | |
| constexpr bool | ts::dependent_false = std::false_type::value |
| constexpr std::uintmax_t | ts::FS_ERROR = static_cast<std::uintmax_t>(-1) |
| constexpr size_t | ts::NPOS = size_t(-1) |
Cross-platforms portable base definitions for the TSDuck project.
This header file shall be included by all C++ compilation units in the TSDuck project. It provides common portable definitions. This file shall always be included first, before system headers and other TSDuck headers.
Important: This file shall be updated each time a new platform is used (processor, compiler, operating system). When recompiling this header on a new platform, many errors are generated (explicit #error directives). These errors will guide you on the required additions for the new platform.
This header file conditionally defines several symbols (macros) which describe the platform (processor, compiler, operating system). These symbols can be used for conditional compilation.
The following environments are described:
| #define TS_LLVM |
Defined when the compiler is LLVM (clang). In that case, TS_GCC is also defined since LLVM is reasonably compatible with GCC.