Abstract interface to be notified of PES packets using a PESDemux.
More...
#include <tsPESHandlerInterface.h>
|
virtual void | handleAccessUnit (PESDemux &demux, const PESPacket &packet, uint8_t nal_unit_type, size_t offset, size_t size) |
| This hook is invoked when an AVC, HEVC or VVC access unit (aka "NALunit") is found.
|
|
virtual void | handleIntraImage (PESDemux &demux, const PESPacket &packet, size_t offset) |
| This hook is invoked when an intra-code image is found.
|
|
virtual void | handleInvalidPESPacket (PESDemux &demux, const DemuxedData &data) |
| This hook is invoked when an invalid PES packet is encountered.
|
|
virtual void | handleNewAC3Attributes (PESDemux &demux, const PESPacket &packet, const AC3Attributes &attr) |
| This hook is invoked when new AC-3 attributes are found in an audio PID.
|
|
virtual void | handleNewAVCAttributes (PESDemux &demux, const PESPacket &packet, const AVCAttributes &attr) |
| This hook is invoked when new AVC attributes are found in a video PID.
|
|
virtual void | handleNewHEVCAttributes (PESDemux &demux, const PESPacket &packet, const HEVCAttributes &attr) |
| This hook is invoked when new HEVC attributes are found in a video PID.
|
|
virtual void | handleNewMPEG2AudioAttributes (PESDemux &demux, const PESPacket &packet, const MPEG2AudioAttributes &attr) |
| This hook is invoked when new audio attributes are found in an audio PID.
|
|
virtual void | handleNewMPEG2VideoAttributes (PESDemux &demux, const PESPacket &packet, const MPEG2VideoAttributes &attr) |
| This hook is invoked when new video attributes are found in a video PID.
|
|
virtual void | handlePESPacket (PESDemux &demux, const PESPacket &packet) |
| This hook is invoked when a complete PES packet is available.
|
|
virtual void | handleSEI (PESDemux &demux, const PESPacket &packet, uint32_t sei_type, size_t offset, size_t size) |
| This hook is invoked when an AVC, HEVC or VVC SEI (Supplemental Enhancement Information) is found.
|
|
virtual void | handleVideoStartCode (PESDemux &demux, const PESPacket &packet, uint8_t start_code, size_t offset, size_t size) |
| This hook is invoked when a video start code is encountered.
|
|
Abstract interface to be notified of PES packets using a PESDemux.
All hooks are optional, ie. they have an empty default implementation.
◆ handlePESPacket()
virtual void ts::PESHandlerInterface::handlePESPacket |
( |
PESDemux & |
demux, |
|
|
const PESPacket & |
packet |
|
) |
| |
|
virtual |
This hook is invoked when a complete PES packet is available.
- Parameters
-
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
◆ handleInvalidPESPacket()
virtual void ts::PESHandlerInterface::handleInvalidPESPacket |
( |
PESDemux & |
demux, |
|
|
const DemuxedData & |
data |
|
) |
| |
|
virtual |
This hook is invoked when an invalid PES packet is encountered.
- Parameters
-
[in,out] | demux | A reference to the PES demux. |
[in] | data | Raw elementary stream data between two PUSI, not recognized as a valid PES packet. |
◆ handleVideoStartCode()
virtual void ts::PESHandlerInterface::handleVideoStartCode |
( |
PESDemux & |
demux, |
|
|
const PESPacket & |
packet, |
|
|
uint8_t |
start_code, |
|
|
size_t |
offset, |
|
|
size_t |
size |
|
) |
| |
|
virtual |
This hook is invoked when a video start code is encountered.
- Parameters
-
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | start_code | The XX in start code (00 00 01 xx). |
[in] | offset | Offset of the start code (00 00 01 xx) in the PES packet payload |
[in] | size | Size of the video payload (up to next start code). |
◆ handleNewMPEG2VideoAttributes()
This hook is invoked when new video attributes are found in a video PID.
- Parameters
-
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | attr | Video attributes. |
◆ handleAccessUnit()
virtual void ts::PESHandlerInterface::handleAccessUnit |
( |
PESDemux & |
demux, |
|
|
const PESPacket & |
packet, |
|
|
uint8_t |
nal_unit_type, |
|
|
size_t |
offset, |
|
|
size_t |
size |
|
) |
| |
|
virtual |
This hook is invoked when an AVC, HEVC or VVC access unit (aka "NALunit") is found.
- Parameters
-
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | nal_unit_type | NALunit type. |
[in] | offset | Offset of the start code (00 00 01 xx) in the PES packet payload. |
[in] | size | Size of the video payload (up to next start code). |
◆ handleSEI()
virtual void ts::PESHandlerInterface::handleSEI |
( |
PESDemux & |
demux, |
|
|
const PESPacket & |
packet, |
|
|
uint32_t |
sei_type, |
|
|
size_t |
offset, |
|
|
size_t |
size |
|
) |
| |
|
virtual |
This hook is invoked when an AVC, HEVC or VVC SEI (Supplemental Enhancement Information) is found.
- Parameters
-
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | sei_type | SEI type. |
[in] | offset | Offset of the SEI payload in the PES packet payload. |
[in] | size | Size of the SEI payload. |
◆ handleNewAVCAttributes()
This hook is invoked when new AVC attributes are found in a video PID.
- Parameters
-
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | attr | Video attributes. |
◆ handleNewHEVCAttributes()
This hook is invoked when new HEVC attributes are found in a video PID.
- Parameters
-
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | attr | Video attributes. |
◆ handleIntraImage()
virtual void ts::PESHandlerInterface::handleIntraImage |
( |
PESDemux & |
demux, |
|
|
const PESPacket & |
packet, |
|
|
size_t |
offset |
|
) |
| |
|
virtual |
This hook is invoked when an intra-code image is found.
- Parameters
-
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | offset | Offset in the PES packet payload where the image is found. This is informational only, the exact semantics depends on the video codec. |
◆ handleNewMPEG2AudioAttributes()
This hook is invoked when new audio attributes are found in an audio PID.
- Parameters
-
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | attr | Audio attributes. |
◆ handleNewAC3Attributes()
This hook is invoked when new AC-3 attributes are found in an audio PID.
- Parameters
-
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | attr | Audio attributes. |
The documentation for this class was generated from the following file: