Abstract interface to be notified of PES packets using a PESDemux. More...
Public Member Functions | |
virtual | ~PESHandlerInterface ()=default |
Virtual destructor. | |
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. More... | |
virtual void | handleIntraImage (PESDemux &demux, const PESPacket &packet, size_t offset) |
This hook is invoked when an intra-code image is found. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
virtual void | handlePESPacket (PESDemux &demux, const PESPacket &packet) |
This hook is invoked when a complete PES packet is available. More... | |
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. More... | |
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. More... | |
Abstract interface to be notified of PES packets using a PESDemux.
All hooks are optional, ie. they have an empty default implementation.
|
virtual |
This hook is invoked when a complete PES packet is available.
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
|
virtual |
This hook is invoked when a video start code is encountered.
[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). |
|
virtual |
This hook is invoked when new video attributes are found in a video PID.
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | attr | Video attributes. |
|
virtual |
This hook is invoked when an AVC, HEVC or VVC access unit (aka "NALunit") is found.
[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). |
|
virtual |
This hook is invoked when an AVC, HEVC or VVC SEI (Supplemental Enhancement Information) is found.
[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. |
|
virtual |
This hook is invoked when new AVC attributes are found in a video PID.
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | attr | Video attributes. |
|
virtual |
This hook is invoked when new HEVC attributes are found in a video PID.
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | attr | Video attributes. |
|
virtual |
This hook is invoked when an intra-code image is found.
[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. |
|
virtual |
This hook is invoked when new audio attributes are found in an audio PID.
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | attr | Audio attributes. |
|
virtual |
This hook is invoked when new AC-3 attributes are found in an audio PID.
[in,out] | demux | A reference to the PES demux. |
[in] | packet | The demultiplexed PES packet. |
[in] | attr | Audio attributes. |