Wasabi ExpressPlay SDK for Embedded Systems  1.23.0
Data Structures | Macros | Typedefs | Enumerations | Functions
Ts2Tables.h File Reference
#include "Atomix.h"
#include "Ts2Packet.h"
#include "Ts2Utils.h"

Go to the source code of this file.

Data Structures

struct  TS2_SectionHeader
 
struct  TS2_Section
 
struct  TS2_Table
 
struct  TS2_PAT_Entry
 
struct  TS2_PAT
 
struct  TS2_PMT
 
struct  TS2_CAT
 
struct  TS2_PrivateTable
 

Macros

#define TS2_PAT_PID   0
 
#define TS2_CAT_PID   1
 
#define TS2_PAT_TABLE_ID   0x00
 
#define TS2_CAT_TABLE_ID   0x01
 
#define TS2_PMT_TABLE_ID   0x02
 
#define TS2_SECTION_CRC_SIZE   4
 
#define TS2_SECTION_LONG_HEADER_SIZE   8
 
#define TS2_SECTION_SHORT_HEADER_SIZE   3
 
#define TS2_SectionHeader_GetSize(h)
 

Typedefs

typedef struct TS2_Table TS2_Table
 

Enumerations

enum  TS2_Crc_Status {
  TS2_CRC_NONE = 0,
  TS2_CRC_OK,
  TS2_CRC_FAILED
}
 

Functions

ATX_Size TS2_Section_GetPayloadSize (TS2_Section *section)
 
ATX_Result TS2_SectionHeader_Serialize (TS2_SectionHeader *header, ATX_Byte *buffer)
 
ATX_Result TS2_Table_AddData (TS2_Table *self, const ATX_Byte *data, ATX_Size data_size, ATX_Boolean payload_unit_start)
 
TS2_EXPORT ATX_Result TS2_Table_AddPacket (TS2_Table *self, const TS2_Packet *packet)
 same as TS2_Table_AddData where the packet payload is added More...
 
ATX_Result TS2_Table_SerializeToPackets (TS2_Table *self, ATX_UInt16 pid, ATX_DataBuffer *packets, ATX_UInt32 *continuity_counter)
 
ATX_Result TS2_Table_UpdateSectionBuffer (TS2_Table *self)
 
ATX_Boolean TS2_Table_IsEqual (TS2_Table *self, TS2_Table *other)
 
TS2_EXPORT void TS2_Table_Destruct (TS2_Table *self)
 
TS2_EXPORT ATX_Result TS2_PAT_Construct (TS2_PAT *self)
 
TS2_EXPORT ATX_Result TS2_PAT_GetFirstPMTPid (const TS2_PAT *self, ATX_UInt16 *pmt_pid)
 
TS2_EXPORT ATX_Result TS2_PAT_GetPMTPid (const TS2_PAT *self, ATX_UInt16 program_num, ATX_UInt16 *pmt_pid)
 
TS2_EXPORT ATX_Result TS2_PMT_Construct (TS2_PMT *self)
 
ATX_Result TS2_PMT_RemoveCADescriptors (TS2_PMT *self)
 
TS2_EXPORT ATX_Result TS2_CAT_Construct (TS2_CAT *self)
 

Macro Definition Documentation

◆ TS2_CAT_PID

#define TS2_CAT_PID   1

◆ TS2_CAT_TABLE_ID

#define TS2_CAT_TABLE_ID   0x01

◆ TS2_PAT_PID

#define TS2_PAT_PID   0

◆ TS2_PAT_TABLE_ID

#define TS2_PAT_TABLE_ID   0x00

◆ TS2_PMT_TABLE_ID

#define TS2_PMT_TABLE_ID   0x02

◆ TS2_SECTION_CRC_SIZE

#define TS2_SECTION_CRC_SIZE   4

◆ TS2_SECTION_LONG_HEADER_SIZE

#define TS2_SECTION_LONG_HEADER_SIZE   8

◆ TS2_SECTION_SHORT_HEADER_SIZE

#define TS2_SECTION_SHORT_HEADER_SIZE   3

◆ TS2_SectionHeader_GetSize

#define TS2_SectionHeader_GetSize (   h)
Value:
(h)->section_syntax_indicator? \
#define TS2_SECTION_LONG_HEADER_SIZE
Definition: Ts2Tables.h:38
#define TS2_SECTION_SHORT_HEADER_SIZE
Definition: Ts2Tables.h:39

Typedef Documentation

◆ TS2_Table

typedef struct TS2_Table TS2_Table

Enumeration Type Documentation

◆ TS2_Crc_Status

Enumerator
TS2_CRC_NONE 
TS2_CRC_OK 
TS2_CRC_FAILED 

Function Documentation

◆ TS2_CAT_Construct()

TS2_EXPORT ATX_Result TS2_CAT_Construct ( TS2_CAT self)

◆ TS2_PAT_Construct()

TS2_EXPORT ATX_Result TS2_PAT_Construct ( TS2_PAT self)

◆ TS2_PAT_GetFirstPMTPid()

TS2_EXPORT ATX_Result TS2_PAT_GetFirstPMTPid ( const TS2_PAT self,
ATX_UInt16 *  pmt_pid 
)

◆ TS2_PAT_GetPMTPid()

TS2_EXPORT ATX_Result TS2_PAT_GetPMTPid ( const TS2_PAT self,
ATX_UInt16  program_num,
ATX_UInt16 *  pmt_pid 
)

◆ TS2_PMT_Construct()

TS2_EXPORT ATX_Result TS2_PMT_Construct ( TS2_PMT self)

◆ TS2_PMT_RemoveCADescriptors()

ATX_Result TS2_PMT_RemoveCADescriptors ( TS2_PMT self)

◆ TS2_Section_GetPayloadSize()

ATX_Size TS2_Section_GetPayloadSize ( TS2_Section section)

◆ TS2_SectionHeader_Serialize()

ATX_Result TS2_SectionHeader_Serialize ( TS2_SectionHeader header,
ATX_Byte *  buffer 
)

◆ TS2_Table_AddData()

ATX_Result TS2_Table_AddData ( TS2_Table self,
const ATX_Byte *  data,
ATX_Size  data_size,
ATX_Boolean  payload_unit_start 
)

◆ TS2_Table_AddPacket()

TS2_EXPORT ATX_Result TS2_Table_AddPacket ( TS2_Table self,
const TS2_Packet packet 
)

same as TS2_Table_AddData where the packet payload is added

◆ TS2_Table_Destruct()

TS2_EXPORT void TS2_Table_Destruct ( TS2_Table self)

◆ TS2_Table_IsEqual()

ATX_Boolean TS2_Table_IsEqual ( TS2_Table self,
TS2_Table other 
)

◆ TS2_Table_SerializeToPackets()

ATX_Result TS2_Table_SerializeToPackets ( TS2_Table self,
ATX_UInt16  pid,
ATX_DataBuffer *  packets,
ATX_UInt32 *  continuity_counter 
)

◆ TS2_Table_UpdateSectionBuffer()

ATX_Result TS2_Table_UpdateSectionBuffer ( TS2_Table self)