|
Sunshine master
Self-hosted game stream host for Moonlight.
|
D3D11 encode device that exposes captured textures to NVENC. More...
Public Member Functions | |
| int | convert (platf::img_t &img_base) override |
| Convert a captured D3D texture for NVENC encoding. | |
| bool | init_device (std::shared_ptr< platf::display_t > display, adapter_t::pointer adapter_p, pix_fmt_e pix_fmt) |
| Create D3D11 and NVENC resources for texture-based encoding. | |
| bool | init_encoder (const ::video::config_t &client_config, const ::video::sunshine_colorspace_t &colorspace) override |
| Initialize the platform encoder for the client stream configuration. | |
Public Member Functions inherited from platf::nvenc_encode_device_t | |
| 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 | |
Additional Inherited Members | |
Public Attributes inherited from platf::nvenc_encode_device_t | |
| 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. | |
D3D11 encode device that exposes captured textures to NVENC.
|
inlineoverridevirtual |
Convert a captured D3D texture for NVENC encoding.
| img_base | D3D image supplied by the capture backend. |
Implements platf::encode_device_t.
|
inline |
Create D3D11 and NVENC resources for texture-based encoding.
| display | Display object or identifier associated with the operation. |
| adapter_p | Adapter p. |
| pix_fmt | Sunshine pixel format to convert or allocate for. |
|
inlineoverride |
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. |