#include "Atomix.h"
#include "Ts2Config.h"
Go to the source code of this file.
|
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...
|
|
◆ 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.
◆ TS2_Map_Clear()
void TS2_Map_Clear |
( |
TS2_Map * |
self | ) |
|
◆ TS2_Map_Construct()
◆ 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()
Adds a specified rotation point to the end of the list of rotation points.
- Parameters
-
self | The TS2_RotationPoints object. |
point | The point to be added. |
◆ TS2_RotationPoints_Create()
Creates a TS2_RotationPoints object with a specified capacity.
- Parameters
-
capacity | The maximum number of rotation points. |
points | Address of a TS2_RotationPoints pointer that will be set to refer to the newly-created TS2_RotationPoints. |
◆ TS2_RotationPoints_CreateFromFile()
Creates a TS2_RotationPoints object containing the rotation points indicated in a specified file.
- Parameters
-
filename | Text file containing the rotation points, one per line. |
points | Address of a TS2_RotationPoints pointer that will be set to refer to the newly-created TS2_RotationPoints. |
◆ TS2_RotationPoints_Destroy()
Destroys the specified TS2_RotationPoints object.
- Parameters
-
self | The TS2_RotationPoints object. |
◆ TS2_RotationPoints_GetPoint()
Gets the value of the rotation point at a specified index position.
- Parameters
-
self | The TS2_RotationPoints object. |
idx | Index position in the rotation points list. |
point | Pointer to an ATX_Uint32 which the method sets to the rotation point value. |
◆ TS2_RotationPoints_GetPointCount()
Gets the number of rotation points in the rotation points list.
- Parameters
-
self | The TS2_RotationPoints object. |
- Returns
- The number of rotation points in the rotation points list.
◆ TS2_RotationPoints_SetPoint()
Modifies the rotation point at a particular index position in the rotation points list.
- Parameters
-
self | The TS2_RotationPoints object. |
idx | Index into the rotation points list indicating which value should be replaced. Indexes are 0-based. |
point | The new rotation point value. |
◆ TS2_RotationPoints_ToFile()
Outputs the rotation points list to a file.
- Parameters
-
self | The TS2_RotationPoints object whose list will be output. |
filename | The file to which the rotation points list should be output. |