TSDuck v3.40-3963
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::SpliceTime Class Reference

Representation of an SCTE 35 splice_time() structure. More...

#include <tsSCTE35.h>

Inheritance diagram for ts::SpliceTime:
Collaboration diagram for ts::SpliceTime:

Public Member Functions

int deserialize (const uint8_t *data, size_t size)
 Deserialize a SpliceTime structure from binary data.
 
void serialize (ByteBlock &data) const
 Serialize the SpliceTime structure.
 
UString toString () const
 Convert the SpliceTime structure to string.
 

Detailed Description

Representation of an SCTE 35 splice_time() structure.

This is a 33-bit PTS value which can be set or unset.

Member Function Documentation

◆ deserialize()

int ts::SpliceTime::deserialize ( const uint8_t *  data,
size_t  size 
)

Deserialize a SpliceTime structure from binary data.

Parameters
[in]dataAddress of data to deserialize.
[in]sizeSize of data buffer, possibly larger than the SpliceTime structure.
Returns
Deserialized size, -1 on incorrect data.

◆ serialize()

void ts::SpliceTime::serialize ( ByteBlock data) const

Serialize the SpliceTime structure.

Parameters
[in,out]dataThe SpliceTime structure is serialized at the end of this byte block.

◆ toString()

UString ts::SpliceTime::toString ( ) const

Convert the SpliceTime structure to string.

Returns
The representation string.

The documentation for this class was generated from the following file: