TSDuck v3.38-3675
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsByteSwap.h File Reference

Low-level platform-dependent byte swapping functions. More...

Namespaces

namespace  ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Functions

uint16_t ts::ByteSwap16 (uint16_t x)
 Inlined function performing byte swap on 16-bit integer data.
 
uint32_t ts::ByteSwap24 (uint32_t x)
 Inlined function performing byte swap on 24-bit integer data.
 
uint32_t ts::ByteSwap32 (uint32_t x)
 Inlined function performing byte swap on 32-bit integer data.
 
uint64_t ts::ByteSwap64 (uint64_t x)
 Inlined function performing byte swap on 64-bit integer data.
 
template<typename INT , typename std::enable_if< std::is_integral< INT >::value >::type * = nullptr>
INT ts::CondByteSwap (INT x)
 Template function performing conditional byte swap on integer data to obtain the data in big endian representation.
 
uint16_t ts::CondByteSwap16 (uint16_t x)
 Inlined function performing conditional byte swap on 16-bit integer data to obtain the data in big endian representation.
 
uint16_t ts::CondByteSwap16BE (uint16_t x)
 Inlined function performing conditional byte swap on 16-bit integer data to obtain the data in big endian representation.
 
uint16_t ts::CondByteSwap16LE (uint16_t x)
 Inlined function performing conditional byte swap on 16-bit integer data to obtain the data in little endian representation.
 
uint32_t ts::CondByteSwap24 (uint32_t x)
 Inlined function performing conditional byte swap on 24-bit integer data to obtain the data in big endian representation.
 
uint32_t ts::CondByteSwap24BE (uint32_t x)
 Inlined function performing conditional byte swap on 24-bit integer data to obtain the data in big endian representation.
 
uint32_t ts::CondByteSwap24LE (uint32_t x)
 Inlined function performing conditional byte swap on 24-bit integer data to obtain the data in little endian representation.
 
uint32_t ts::CondByteSwap32 (uint32_t x)
 Inlined function performing conditional byte swap on 32-bit integer data to obtain the data in big endian representation.
 
uint32_t ts::CondByteSwap32BE (uint32_t x)
 Inlined function performing conditional byte swap on 32-bit integer data to obtain the data in big endian representation.
 
uint32_t ts::CondByteSwap32LE (uint32_t x)
 Inlined function performing conditional byte swap on 32-bit integer data to obtain the data in little endian representation.
 
uint64_t ts::CondByteSwap64 (uint64_t x)
 Inlined function performing conditional byte swap on 64-bit integer data to obtain the data in big endian representation.
 
uint64_t ts::CondByteSwap64BE (uint64_t x)
 Inlined function performing conditional byte swap on 64-bit integer data to obtain the data in big endian representation.
 
uint64_t ts::CondByteSwap64LE (uint64_t x)
 Inlined function performing conditional byte swap on 64-bit integer data to obtain the data in little endian representation.
 
template<typename INT , typename std::enable_if< std::is_integral< INT >::value >::type * = nullptr>
INT ts::CondByteSwapBE (INT x)
 Template function performing conditional byte swap on integer data to obtain the data in big endian representation.
 
template<typename INT , typename std::enable_if< std::is_integral< INT >::value >::type * = nullptr>
INT ts::CondByteSwapLE (INT x)
 Template function performing conditional byte swap on integer data to obtain the data in little endian representation.
 
int32_t ts::SignExtend24 (int32_t x)
 Perform a sign extension on 24 bit integers.
 
int64_t ts::SignExtend40 (int64_t x)
 Perform a sign extension on 40 bit integers.
 
int64_t ts::SignExtend48 (int64_t x)
 Perform a sign extension on 48 bit integers.
 

Detailed Description

Low-level platform-dependent byte swapping functions.