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

Go to the source code of this file.

Data Structures

struct  TS2_Map
 

Typedefs

typedef struct TS2_RotationPoints TS2_RotationPoints
 A TS2_RotationPoints object can be used to specify "rotation points" indicating where in the Transport Stream Packets the ECMs (KSMs) are to be inserted during encryption. More...
 
typedef void(* TS2_MapValueDestructor) (void *value)
 

Functions

ATX_Result TS2_Map_Construct (TS2_Map *self, TS2_MapValueDestructor destructor)
 
void TS2_Map_Destruct (TS2_Map *self)
 
ATX_Result TS2_Map_Put (TS2_Map *self, ATX_UInt16 key, void *value)
 
void * TS2_Map_Get (TS2_Map *self, ATX_UInt16 key)
 
ATX_Result TS2_Map_Remove (TS2_Map *self, ATX_UInt16 key)
 
void TS2_Map_Clear (TS2_Map *self)
 
TS2_EXPORT ATX_Result TS2_RotationPoints_Create (ATX_Size capacity, TS2_RotationPoints **points)
 Creates a TS2_RotationPoints object with a specified capacity. More...
 
TS2_EXPORT ATX_Result TS2_RotationPoints_CreateFromFile (const char *filename, TS2_RotationPoints **points)
 Creates a TS2_RotationPoints object containing the rotation points indicated in a specified file. More...
 
TS2_EXPORT ATX_Result TS2_RotationPoints_AddPoint (TS2_RotationPoints *self, ATX_UInt32 point)
 Adds a specified rotation point to the end of the list of rotation points. More...
 
TS2_EXPORT ATX_Result TS2_RotationPoints_GetPoint (const TS2_RotationPoints *self, ATX_Ordinal idx, ATX_UInt32 *point)
 Gets the value of the rotation point at a specified index position. More...
 
TS2_EXPORT ATX_Result TS2_RotationPoints_SetPoint (TS2_RotationPoints *self, ATX_Ordinal idx, ATX_UInt32 point)
 Modifies the rotation point at a particular index position in the rotation points list. More...
 
TS2_EXPORT ATX_Size TS2_RotationPoints_GetPointCount (const TS2_RotationPoints *self)
 Gets the number of rotation points in the rotation points list. More...
 
TS2_EXPORT ATX_Result TS2_RotationPoints_ToFile (const TS2_RotationPoints *self, const char *filename)
 Outputs the rotation points list to a file. More...
 
TS2_EXPORT void TS2_RotationPoints_Destroy (TS2_RotationPoints *self)
 Destroys the specified TS2_RotationPoints object. More...
 

Typedef Documentation

◆ TS2_MapValueDestructor

typedef void(* TS2_MapValueDestructor) (void *value)

◆ TS2_RotationPoints

A TS2_RotationPoints object can be used to specify "rotation points" indicating where in the Transport Stream Packets the ECMs (KSMs) are to be inserted during encryption.

Function Documentation

◆ TS2_Map_Clear()

void TS2_Map_Clear ( TS2_Map self)

◆ TS2_Map_Construct()

ATX_Result TS2_Map_Construct ( TS2_Map self,
TS2_MapValueDestructor  destructor 
)

◆ TS2_Map_Destruct()

void TS2_Map_Destruct ( TS2_Map self)

◆ TS2_Map_Get()

void* TS2_Map_Get ( TS2_Map self,
ATX_UInt16  key 
)

◆ TS2_Map_Put()

ATX_Result TS2_Map_Put ( TS2_Map self,
ATX_UInt16  key,
void *  value 
)

◆ TS2_Map_Remove()

ATX_Result TS2_Map_Remove ( TS2_Map self,
ATX_UInt16  key 
)

◆ TS2_RotationPoints_AddPoint()

TS2_EXPORT ATX_Result TS2_RotationPoints_AddPoint ( TS2_RotationPoints self,
ATX_UInt32  point 
)

Adds a specified rotation point to the end of the list of rotation points.

Parameters
selfThe TS2_RotationPoints object.
pointThe point to be added.

◆ TS2_RotationPoints_Create()

TS2_EXPORT ATX_Result TS2_RotationPoints_Create ( ATX_Size  capacity,
TS2_RotationPoints **  points 
)

Creates a TS2_RotationPoints object with a specified capacity.

Parameters
capacityThe maximum number of rotation points.
pointsAddress of a TS2_RotationPoints pointer that will be set to refer to the newly-created TS2_RotationPoints.

◆ TS2_RotationPoints_CreateFromFile()

TS2_EXPORT ATX_Result TS2_RotationPoints_CreateFromFile ( const char *  filename,
TS2_RotationPoints **  points 
)

Creates a TS2_RotationPoints object containing the rotation points indicated in a specified file.

Parameters
filenameText file containing the rotation points, one per line.
pointsAddress of a TS2_RotationPoints pointer that will be set to refer to the newly-created TS2_RotationPoints.

◆ TS2_RotationPoints_Destroy()

TS2_EXPORT void TS2_RotationPoints_Destroy ( TS2_RotationPoints self)

Destroys the specified TS2_RotationPoints object.

Parameters
selfThe TS2_RotationPoints object.

◆ TS2_RotationPoints_GetPoint()

TS2_EXPORT ATX_Result TS2_RotationPoints_GetPoint ( const TS2_RotationPoints self,
ATX_Ordinal  idx,
ATX_UInt32 *  point 
)

Gets the value of the rotation point at a specified index position.

Parameters
selfThe TS2_RotationPoints object.
idxIndex position in the rotation points list.
pointPointer to an ATX_Uint32 which the method sets to the rotation point value.

◆ TS2_RotationPoints_GetPointCount()

TS2_EXPORT ATX_Size TS2_RotationPoints_GetPointCount ( const TS2_RotationPoints self)

Gets the number of rotation points in the rotation points list.

Parameters
selfThe TS2_RotationPoints object.
Returns
The number of rotation points in the rotation points list.

◆ TS2_RotationPoints_SetPoint()

TS2_EXPORT ATX_Result TS2_RotationPoints_SetPoint ( TS2_RotationPoints self,
ATX_Ordinal  idx,
ATX_UInt32  point 
)

Modifies the rotation point at a particular index position in the rotation points list.

Parameters
selfThe TS2_RotationPoints object.
idxIndex into the rotation points list indicating which value should be replaced. Indexes are 0-based.
pointThe new rotation point value.

◆ TS2_RotationPoints_ToFile()

TS2_EXPORT ATX_Result TS2_RotationPoints_ToFile ( const TS2_RotationPoints self,
const char *  filename 
)

Outputs the rotation points list to a file.

Parameters
selfThe TS2_RotationPoints object whose list will be output.
filenameThe file to which the rotation points list should be output.