|
Sunshine master
Self-hosted game stream host for Moonlight.
|
NVENC-backed encode device state. More...
#include <src/platform/common.h>
Public Member Functions | |
| virtual bool | init_encoder (const video::config_t &client_config, const video::sunshine_colorspace_t &colorspace)=0 |
| Initialize the platform encoder for the client stream configuration. | |
Public Member Functions inherited from platf::encode_device_t | |
| virtual int | convert (platf::img_t &img)=0 |
| Convert a captured image into the encoder input representation. | |
Public Attributes | |
| nvenc::nvenc_base * | nvenc = nullptr |
| NVENC encoder instance owned by the encode device. | |
Public Attributes inherited from platf::encode_device_t | |
| video::sunshine_colorspace_t | colorspace |
| Colorspace metadata expected by the encoder. | |
NVENC-backed encode device state.
|
pure virtual |
Initialize the platform encoder for the client stream configuration.
| client_config | Client stream configuration negotiated for this session. |
| colorspace | Colorimetry information used for conversion or encoding. |