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


Public Member Functions | |
| PESOneShotPacketizer (const DuckContext &duck, PID pid=PID_NULL) | |
| virtual | ~PESOneShotPacketizer () override |
| bool | addPES (const PESPacket &pes, ShareMode mode) |
| bool | addPES (const PESPacketPtr &pes) |
| bool | atPESBoundary () const |
| virtual std::ostream & | display (std::ostream &strm) const override |
| const DuckContext & | duck () const |
| bool | empty () const |
| void | getPackets (TSPacketVector &packets) |
| PID | getPID () const |
| uint8_t | nextContinuityCounter () const |
| PacketCounter | packetCount () const |
| PacketCounter | pesCount () const |
| PESProviderInterface * | pesProvider () const |
| Report & | report () const |
| virtual void | reset () override |
| void | setMaxQueuedPackets (size_t count) |
| void | setNextContinuityCounter (uint8_t cc) |
| void | setPID (PID pid) |
Protected Member Functions | |
| void | configurePacket (TSPacket &pkt, bool nullify) |
Packetization of PES data into Transport Stream packets in one shot.
| ts::PESOneShotPacketizer::PESOneShotPacketizer | ( | const DuckContext & | duck, |
| PID | pid = PID_NULL ) |
Constructor.
| [in] | duck | TSDuck execution context. The reference is kept inside the packetizer. |
| [in] | pid | PID for generated TS packets. |
|
overridevirtual |
Destructor
| void ts::PESOneShotPacketizer::getPackets | ( | TSPacketVector & | packets | ) |
Get all enqueued PES packets as one list of TS packets.
| [out] | packets | Returned list of TS packets containing all TS packets. |
|
inlineinherited |
Set a limit to the number of internally queued PES packets. This is a way to limit the internal memory which is used by this instance.
| [in] | count | Maximum number of internally queued PES packets. If the number of already queued packets is already higher, none is dropped. If count is zero, there is no limit (this is the initial default). |
|
inherited |
Add a PES packet to packetize.
| [in] | pes | A safe pointer to the PES packet. |
Add a PES packet to packetize.
| [in] | pes | The PES packet. |
| [in] | mode | The enqueue PES packet's data are either shared (ShareMode::SHARE) between the provided pes or duplicated (ShareMode::COPY). |
|
inlineinherited |
Check if the packetizer is empty (no more TS packet to produce).
|
overridevirtualinherited |
Reset the packetizer. All unfinished items (sections or PES packets) are dropped.
Reimplemented from ts::PESPacketizer.
|
overridevirtualinherited |
Display the internal state of the packetizer, mainly for debug.
| [in,out] | strm | Output text stream. |
Reimplemented from ts::PESPacketizer.
|
inlineinherited |
Get the object which provides PES packets when the packetizer needs more data.
|
inlineinherited |
Check if the TS packet stream is exactly at a PES packet boundary.
|
inlineinherited |
Get the number of completely packetized PES packets so far.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set the continuity counter value for next MPEG packet. This counter is automatically incremented at each packet. It is usually never a good idea to change this, except maybe before generating the first packet if the continuity must be preserved with the previous content of the PID.
| [in] | cc | Next continuity counter. |
|
inlineinherited |
Get the continuity counter value for next MPEG packet.
|
inlineinherited |
Get the number of generated TS packets so far.
|
inlineinherited |
Get a reference to the debugging report.
|
inlineinherited |
Get a reference to the TSDuck execution context.
|
protectedinherited |
Configure a TS packet with continuity and PID. Also increment the number of generated packet. So this method must be called exactly once per packet.
| [in,out] | pkt | TS packet to configure |
| [in] | nullify | Return a null packet instead (no data to return for now). |