TSDuck v3.46-4965
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

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

Macros

#define TS_ANDROID
#define TS_ARM32
#define TS_ARM64
#define TS_ASAN
#define TS_ASM_ARM64
#define TS_BSD
#define TS_CPLUSPLUS
#define TS_CXX20
#define TS_CXX23
#define TS_CYGWIN
#define TS_DEFAULT_ASSIGMENTS(classname)
#define TS_DEFAULT_COPY_MOVE(classname)
#define TS_DEFINE_SINGLETON(fullclassname)
#define TS_DRAGONFLYBSD
#define TS_FREEBSD
#define TS_FUNCTION
#define TS_GCC
#define TS_GCC_NOWARNING(name)
#define TS_GCC_ONLY
#define TS_GCC_VERSION
#define TS_I386
#define TS_INTERFACE(classname)
#define TS_LINUX
#define TS_LLVM
#define TS_LLVM_NOWARNING(name)
#define TS_LOONGARCH32
#define TS_LOONGARCH64
#define TS_MAC
#define TS_MIPS
#define TS_MIPS64
#define TS_MSC
#define TS_MSC_NOWARNING(num)
#define TS_NETBSD
#define TS_NO_ARM_CRC32_INSTRUCTIONS
#define TS_NO_DEFAULT_CONSTRUCTORS(classname)
#define TS_NO_OPTIMIZE
#define TS_NO_SANITIZE_SIGNED_OVERFLOW
#define TS_NOBUILD_NOCOPY(classname)
#define TS_NOCOPY(classname)
#define TS_NOCOPY_INTERFACE(classname)
#define TS_NOCOPY_SUBINTERFACE(classname)
#define TS_NOMOVE(classname)
#define TS_OPENBSD
#define TS_PARTIAL_SWITCH_BEGIN()
#define TS_PARTIAL_SWITCH_END()
#define TS_POP_WARNING()
#define TS_POWERPC
#define TS_POWERPC64
#define TS_PRAGMA(directive)
#define TS_PUSH_WARNING()
#define TS_RISCV64
#define TS_RULE_OF_FIVE(classname, dtor_attributes)
#define TS_S390X
#define TS_SINGLETON(classname)
#define TS_SLINE   TS_STRINGIFY(__LINE__)
#define TS_SPARC
#define TS_STATIC_REFERENCE(suffix, addr)
#define TS_STATIC_VARIABLE(class_name, function_name)
#define TS_STRICT_MEMORY_ALIGN   1
#define TS_STRINGIFY(x)
#define TS_SUBINTERFACE(classname)
#define TS_TSAN
#define TS_UBSAN
#define TS_UNALIGNED
#define TS_UNIQUE_NAME(prefix)
#define TS_UNIX
#define TS_USTRINGIFY(x)
#define TS_WINDOWS
#define TS_X86_64
#define TSCOREDLL
#define TSDEKTECDLL
#define TSDUCK_STATIC
#define TSDUCK_STATIC_LIBRARY
#define TSDUCK_STATIC_PLUGINS
#define TSDUCKDLL

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)

Detailed Description

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.

Platform definitions

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:

Macro Definition Documentation

◆ TS_LLVM

#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.