TSDuck v3.43-4509
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::FECTransmissionInformation Class Reference

Representation of the FEC Transmission Information in FLUTE headers. More...

#include <tsFECTransmissionInformation.h>

Inheritance diagram for ts::FECTransmissionInformation:
Collaboration diagram for ts::FECTransmissionInformation:

Public Member Functions

 FECTransmissionInformation ()=default
 Default constructor.
 
void clear ()
 Clear the content of a structure.
 
bool deserialize (const LCTHeader &lct)
 Deserialize the structure from a HET_FTI LCT header extension.
 
bool deserialize (uint8_t fec_encoding_id, const uint8_t *addr, size_t size)
 Deserialize the structure from a binary area.
 
virtual UString toString () const override
 Convert to a string object.
 

Public Attributes

uint16_t encoding_symbol_length = 0
 Length of Encoding Symbol in bytes (FEC Encoding ID 0, 128, 129, 130).
 
uint8_t fec_encoding_id = 0
 FEC Encoding ID which was used to parse the structure (not part of the structore).
 
uint16_t fec_instance_id = 0
 FEC Instance ID (FEC Encoding ID 128-255).
 
uint16_t max_encoding_symbols = 0
 Max number of encoding symbols (FEC Encoding ID 129).
 
uint32_t max_source_block_length = 0
 Max number of source symbols per source block (FEC Encoding ID 0, 128, 129, 130).
 
uint64_t transfer_length = 0
 The length of the transport object that carries the file in bytes.
 
bool valid = false
 The information was successfully parsed.
 

Detailed Description

Representation of the FEC Transmission Information in FLUTE headers.

See also
IETF RFC 3926, section 5.1.1

If a file is not content-encoded, the transfer length is the same as the file length.

Member Function Documentation

◆ deserialize() [1/2]

bool ts::FECTransmissionInformation::deserialize ( uint8_t  fec_encoding_id,
const uint8_t *  addr,
size_t  size 
)

Deserialize the structure from a binary area.

Parameters
[in]fec_encoding_idFEC Encoding ID, required to interpret the format of the binary area.
[in]addrAddress of binary area.
[in]sizeSize of binary area.
Returns
True on success, false on error. Same as valid field.

◆ deserialize() [2/2]

bool ts::FECTransmissionInformation::deserialize ( const LCTHeader lct)

Deserialize the structure from a HET_FTI LCT header extension.

Parameters
[in]lctLCT header.
Returns
True on success, false on error or not present in LCT header. Same as valid field.

◆ toString()

virtual UString ts::FECTransmissionInformation::toString ( ) const
overridevirtual

Convert to a string object.

Returns
This object, converted as a string.

Implements ts::StringifyInterface.


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