Regulate execution speed based on PCR's in one reference PID.
More...
#include <tsPCRRegulator.h>
|
static constexpr cn::milliseconds | DEFAULT_MIN_WAIT = cn::milliseconds(50) |
| Default minimum wait interval.
|
|
Regulate execution speed based on PCR's in one reference PID.
- See also
- BitRateRegulator
◆ PCRRegulator()
Constructor.
- Parameters
-
[in,out] | report | Where to report errors. |
[in] | log_level | Severity level for information messages. |
◆ setReport()
Set a new report.
- Parameters
-
[in,out] | report | Where to report errors. |
[in] | log_level | Severity level for information messages. |
◆ setBurstPacketCount()
void ts::PCRRegulator::setBurstPacketCount |
( |
PacketCounter |
count | ) |
|
|
inline |
Set the number of packets to burst at a time.
- Parameters
-
[in] | count | Number of packets to burst at a time. |
◆ setReferencePID()
void ts::PCRRegulator::setReferencePID |
( |
PID |
pid | ) |
|
Set the PCR reference PID.
- Parameters
-
[in] | pid | Reference PID. If PID_NULL, use the first PID containing PCR's. |
◆ getReferencePID()
PID ts::PCRRegulator::getReferencePID |
( |
| ) |
const |
|
inline |
Get the current PCR reference PID.
- Returns
- Current reference PID or PID_NULL if none was set or found.
◆ setMinimimWait()
template<class Rep , class Period >
void ts::PCRRegulator::setMinimimWait |
( |
const cn::duration< Rep, Period > & |
d | ) |
|
Set the minimum wait interval.
- Parameters
-
[in] | d | Minimum duration interval. |
◆ regulate()
bool ts::PCRRegulator::regulate |
( |
const TSPacket & |
pkt | ) |
|
Regulate the flow, to be called at each packet.
Suspend the process when necessary.
- Parameters
-
[in] | pkt | TS packet from the stream. |
- Returns
- True if all previously processed and buffered packets should be flushed.
The documentation for this class was generated from the following file: