![]() |
TSDuck v3.46-4965
MPEG Transport Stream Toolkit
|
#include <tsEITProcessor.h>


Public Member Functions | |
| EITProcessor (DuckContext &duck, PID pid=PID_EIT) | |
| void | addInputPID (PID pid) |
| void | addStartTimeOffet (cn::milliseconds offset, bool date_only=false) |
| void | clearInputPIDs () |
| bool | filterServices () const |
| size_t | getCurrentBufferedSections () const |
| size_t | getMaxBufferedSections () const |
| void | keepService (const Service &service) |
| void | keepService (uint16_t service_id) |
| void | processPacket (TSPacket &pkt) |
| void | removeActual () |
| void | removeOther () |
| void | removePresentFollowing () |
| void | removeSchedule () |
| void | removeService (const Service &service) |
| void | removeService (uint16_t service_id) |
| void | removeTableIds (std::initializer_list< TID > tids) |
| void | removeTS (const TransportStreamId &ts) |
| void | removeTS (uint16_t ts_id) |
| void | renameService (const Service &old_service, const Service &new_service) |
| void | renameTS (const TransportStreamId &old_ts, const TransportStreamId &new_ts) |
| void | renameTS (uint16_t old_ts_id, uint16_t new_ts_id) |
| void | reset () |
| void | setInputPID (PID pid) |
| void | setMaxBufferedSections (size_t count) |
| void | setOutputPID (PID pid) |
| void | setPID (PID pid) |
Static Public Attributes | |
| static constexpr size_t | DEFAULT_BUFFERED_SECTIONS = 1000 |
| static constexpr size_t | MIN_BUFFERED_SECTIONS = 10 |
Perform various transformations on an EIT PID.
The object is continuously invoked for all packets in a TS. Packets from one specific PID, the EIT PID, are replaced. The various required transformations on the EIT's are performed.
More generally, there are several input PID's and one output PID. All EIT sections from any input PID are merged into one single output PID. All input PID's are overwritten by packets for the output PID (or null packets).
By default, there is only one input PID which is also used as output PID. This is PID 0x12, the standard DVB PID for EIT's.
|
explicit |
| void ts::EITProcessor::setPID | ( | PID | pid | ) |
| void ts::EITProcessor::setInputPID | ( | PID | pid | ) |
| void ts::EITProcessor::setOutputPID | ( | PID | pid | ) |
| void ts::EITProcessor::clearInputPIDs | ( | ) |
Clear the set of input PID's.
| void ts::EITProcessor::addInputPID | ( | PID | pid | ) |
| void ts::EITProcessor::reset | ( | ) |
| void ts::EITProcessor::processPacket | ( | TSPacket & | pkt | ) |
| void ts::EITProcessor::removeTS | ( | uint16_t | ts_id | ) |
Remove all EIT's for a given transport stream.
| [in] | ts_id | Id of the transport stream to remove (any original network id). |
| void ts::EITProcessor::removeTS | ( | const TransportStreamId & | ts | ) |
Remove all EIT's for a given transport stream.
| [in] | ts | Transport stream id and original network id to remove. |
| void ts::EITProcessor::renameTS | ( | uint16_t | old_ts_id, |
| uint16_t | new_ts_id ) |
Rename all EIT's for a given transport stream.
| [in] | old_ts_id | Id of the transport stream to rename (any original network id). |
| [in] | new_ts_id | New transport stream id (original network id unchanged). |
| void ts::EITProcessor::renameTS | ( | const TransportStreamId & | old_ts, |
| const TransportStreamId & | new_ts ) |
Rename all EIT's for a given transport stream.
| [in] | old_ts | Transport stream id and original network id to rename. |
| [in] | new_ts | New transport stream id and original network id. |
| void ts::EITProcessor::keepService | ( | uint16_t | service_id | ) |
Keep all EIT's for a given service in the current transport stream (EIT Actual).
| [in] | service_id | Id of the service to keep in EIT Actual. |
Note: Keeping services always prevails over removing them. This means that if keepService() is called once or more, all services are removed except the explicitly kept ones and removeService() is ignored.
| void ts::EITProcessor::keepService | ( | const Service & | service | ) |
Keep all EIT's for a given service.
| [in] | service | Description of the service to keep. |
| void ts::EITProcessor::removeService | ( | uint16_t | service_id | ) |
Remove all EIT's for a given service in the current transport stream (EIT Actual).
| [in] | service_id | Id of the service to remove in EIT Actual. |
| void ts::EITProcessor::removeService | ( | const Service & | service | ) |
Remove all EIT's for a given service.
| [in] | service | Description of the service to remove. |
|
inline |
Check if some service filtering is set (keep or remove specific services).
Rename all EIT's for a given service.
| [in] | old_service | Description of the service to rename. |
| [in] | new_service | New description of the service. |
| void ts::EITProcessor::removeTableIds | ( | std::initializer_list< TID > | tids | ) |
Remove all EIT's with a table id in a given list.
| [in] | tids | List of all table ids to remove. |
| void ts::EITProcessor::removeOther | ( | ) |
Remove all EIT Other.
| void ts::EITProcessor::removeActual | ( | ) |
Remove all EIT Actual.
| void ts::EITProcessor::removeSchedule | ( | ) |
Remove all EIT Schedule.
| void ts::EITProcessor::removePresentFollowing | ( | ) |
Remove all EIT Present/Following.
| void ts::EITProcessor::addStartTimeOffet | ( | cn::milliseconds | offset, |
| bool | date_only = false ) |
Add an offset to all start times of all events in all EIT's.
| [in] | offset | The number of milliseconds to add to each start time. Can be negative. |
| [in] | date_only | If true, update the date field only, do not modify the hour/minute/second. |
| void ts::EITProcessor::setMaxBufferedSections | ( | size_t | count | ) |
Set the maximum number of buffered sections.
A few number of EIT sections may be temporarily buffered.
Each EIT section is completely loaded, modified and reinjected, replacing input packets. If the currently reinjected EIT section is very large and, at the same time, a lot of small EIT sections are received, they must be buffered. This is normally a transient situation. Since the number of reinjected sections is at most identical to the input number and since EIT sections are never enlarged, there is no global overflow.
This method is used to adjust the maximum number of buffered sections.
| [in] | count | New maximum number of buffered sections. |
|
inline |
Get the maximum number of buffered sections.
|
inline |
Get the current number of buffered sections.
|
staticconstexpr |
Minimum number of buffered sections.
|
staticconstexpr |
Default number of buffered sections.