|
Sunshine master
Self-hosted game stream host for Moonlight.
|
AVCodec packet wrapper with codec-specific metadata. More...
#include <src/video.h>
Public Member Functions | |
| uint8_t * | data () override |
| Return writable access to the FFmpeg packet payload. | |
| size_t | data_size () override |
| Return the FFmpeg packet payload length. | |
| int64_t | frame_index () override |
| Return the FFmpeg packet PTS used as Sunshine's frame index. | |
| bool | is_idr () override |
| Report whether the FFmpeg packet is marked as a key frame. | |
Public Member Functions inherited from video::packet_raw_t | |
Public Attributes | |
| AVPacket * | av_packet |
| FFmpeg packet that owns encoded data and frame metadata. | |
Public Attributes inherited from video::packet_raw_t | |
| 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. | |
AVCodec packet wrapper with codec-specific metadata.
|
inlineoverridevirtual |
Return writable access to the FFmpeg packet payload.
Implements video::packet_raw_t.
|
inlineoverridevirtual |
Return the FFmpeg packet payload length.
Implements video::packet_raw_t.
|
inlineoverridevirtual |
Return the FFmpeg packet PTS used as Sunshine's frame index.
Implements video::packet_raw_t.
|
inlineoverridevirtual |
Report whether the FFmpeg packet is marked as a key frame.
Implements video::packet_raw_t.