Wasabi ExpressPlay SDK for Embedded Systems  1.10
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_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

#define TS2_CAT_PID   1
#define TS2_CAT_TABLE_ID   0x01
#define TS2_PAT_PID   0
#define TS2_PAT_TABLE_ID   0x00
#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)
Value:
(h)->section_syntax_indicator? \

Typedef Documentation

typedef struct TS2_Table TS2_Table

Enumeration Type Documentation

Enumerator
TS2_CRC_NONE 
TS2_CRC_OK 
TS2_CRC_FAILED 

Function Documentation

TS2_EXPORT ATX_Result TS2_CAT_Construct ( TS2_CAT 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_PMT_Construct ( TS2_PMT self)
ATX_Result TS2_PMT_RemoveCADescriptors ( TS2_PMT self)
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

TS2_EXPORT void TS2_Table_Destruct ( TS2_Table self)
ATX_Boolean TS2_Table_IsEqual ( TS2_Table self,
TS2_Table other 
)
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)