TSDuck v3.40-4025
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsCAS.h File Reference

Conditional Access Systems general definitions. More...

Namespaces

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

Typedefs

using ts::CASID = uint16_t
 Conditional Access System Id.
 

Enumerations

enum  : CASID {
  ts::CASID_NULL = 0x0000 ,
  ts::CASID_MEDIAGUARD_MIN = 0x0100 ,
  ts::CASID_MEDIAGUARD_MAX = 0x01FF ,
  ts::CASID_VIACCESS_MIN = 0x0500 ,
  ts::CASID_VIACCESS_MAX = 0x05FF ,
  ts::CASID_IRDETO_MIN = 0x0600 ,
  ts::CASID_IRDETO_MAX = 0x06FF ,
  ts::CASID_NDS_MIN = 0x0900 ,
  ts::CASID_NDS_MAX = 0x09FF ,
  ts::CASID_CONAX_MIN = 0x0B00 ,
  ts::CASID_CONAX_MAX = 0x0BFF ,
  ts::CASID_CRYPTOWORKS_MIN = 0x0D00 ,
  ts::CASID_CRYPTOWORKS_MAX = 0x0DFF ,
  ts::CASID_NAGRA_MIN = 0x1800 ,
  ts::CASID_NAGRA_MAX = 0x18FF ,
  ts::CASID_THALESCRYPT_MIN = 0x4A80 ,
  ts::CASID_THALESCRYPT_MAX = 0x4A8F ,
  ts::CASID_WIDEVINE_MIN = 0x4AD4 ,
  ts::CASID_WIDEVINE_MAX = 0x4AD5 ,
  ts::CASID_SAFEACCESS = 0x4ADC
}
 Selected DVB-assigned CA System Identifier values. More...
 
enum  ts::CASFamily : uint8_t {
  ts::CAS_OTHER = 0 ,
  ts::CAS_MEDIAGUARD = 1 ,
  ts::CAS_NAGRA = 2 ,
  ts::CAS_VIACCESS = 3 ,
  ts::CAS_THALESCRYPT = 4 ,
  ts::CAS_SAFEACCESS = 5 ,
  ts::CAS_WIDEVINE = 6 ,
  ts::CAS_NDS = 7 ,
  ts::CAS_IRDETO = 8 ,
  ts::CAS_CONAX = 9
}
 Known Conditional Access Systems families. More...
 

Functions

UString ts::CASFamilyName (CASFamily cas)
 Name of Conditional Access Families.
 
CASFamily ts::CASFamilyOf (CASID ca_system_id)
 Return a CAS family from a CA system id.
 
UString ts::CASIdName (const DuckContext &duck, CASID casid, NamesFlags flags=NamesFlags::NAME)
 Name of a Conditional Access System Id (as in CA Descriptor).
 
CASID ts::FirstCASId (CASFamily cas)
 Get the lowest CA system id in a CAS family.
 
void ts::GetAllCASFamilies (std::set< CASFamily > &cas)
 Get the set of all defined Conditional Access Families.
 
bool ts::GetCASIdRange (CASFamily cas, CASID &min, CASID &max)
 Get the minimum and maximum CA system id in a CAS family.
 
CASID ts::LastCASId (CASFamily cas)
 Get the highest CA system id in a CAS family.
 

Variables

constexpr size_t ts::CASID_MAX = 0x10000
 Maximum number of CASID values.
 

Detailed Description

Conditional Access Systems general definitions.