|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Encoded packet wrapper used by the streaming pipeline. More...
#include <src/video.h>
Classes | |
| struct | replace_t |
| Packet byte-range replacement descriptor. More... | |
Public Member Functions | |
| virtual uint8_t * | data ()=0 |
| Return writable access to the encoded packet bytes. | |
| virtual size_t | data_size ()=0 |
| Return the encoded payload length. | |
| virtual int64_t | frame_index ()=0 |
| Return the frame index associated with this encoded packet. | |
| virtual bool | is_idr ()=0 |
| Report whether this packet starts an IDR frame. | |
Public Attributes | |
| bool | after_ref_frame_invalidation = false |
| Whether the frame follows reference-frame invalidation. | |
| void * | channel_data = nullptr |
| Platform or protocol state carried with this packet. | |
| std::optional< std::chrono::steady_clock::time_point > | frame_timestamp |
| Capture timestamp associated with the frame. | |
| std::vector< replace_t > * | replacements = nullptr |
| Optional encoded-byte substitutions applied before packetization. | |
Encoded packet wrapper used by the streaming pipeline.
|
pure virtual |
Return writable access to the encoded packet bytes.
Implemented in video::packet_raw_avcodec, and video::packet_raw_generic.
|
pure virtual |
Return the encoded payload length.
Implemented in video::packet_raw_avcodec, and video::packet_raw_generic.
|
pure virtual |
Return the frame index associated with this encoded packet.
Implemented in video::packet_raw_avcodec, and video::packet_raw_generic.
|
pure virtual |
Report whether this packet starts an IDR frame.
Implemented in video::packet_raw_avcodec, and video::packet_raw_generic.