TSDuck v3.40-4033
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::SectionProviderInterface Class Referenceabstract

Abstract interface for classes which provide MPEG sections into a Packetizer. More...

#include <tsSectionProviderInterface.h>

Inheritance diagram for ts::SectionProviderInterface:

Public Member Functions

virtual bool doStuffing ()=0
 Shall we perform section stuffing.
 
virtual void provideSection (SectionCounter counter, SectionPtr &section)=0
 This hook is invoked when a new section is required.
 

Detailed Description

Abstract interface for classes which provide MPEG sections into a Packetizer.

This abstract interface must be implemented by classes which provide MPEG sections into a Packetizer.

Member Function Documentation

◆ provideSection()

virtual void ts::SectionProviderInterface::provideSection ( SectionCounter  counter,
SectionPtr section 
)
pure virtual

This hook is invoked when a new section is required.

Parameters
[in]counterThe section counter is an information on the progression (zero the first time the hook is invoked from the packetizer).
[out]sectionA smart pointer to the next section to packetize. If a null pointer is provided, no section is available.

◆ doStuffing()

virtual bool ts::SectionProviderInterface::doStuffing ( )
pure virtual

Shall we perform section stuffing.

Returns
True if stuffing to the next transport packet boundary shall be performed before the next section. Unless explicitly allowed to, a Packetizer never splits a section header between two packets. This is not required by the MPEG standard but some STB are known to have problems with that.

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