Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
platf::nvenc_encode_device_t Struct Referenceabstract

NVENC-backed encode device state. More...

#include <src/platform/common.h>

Inheritance diagram for platf::nvenc_encode_device_t:
Collaboration diagram for platf::nvenc_encode_device_t:

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_encoder * 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.

Detailed Description

NVENC-backed encode device state.

Member Function Documentation

◆ init_encoder()

virtual bool platf::nvenc_encode_device_t::init_encoder ( const video::config_t & client_config,
const video::sunshine_colorspace_t & colorspace )
pure virtual

Initialize the platform encoder for the client stream configuration.

Parameters
client_configClient stream configuration negotiated for this session.
colorspaceColorimetry information used for conversion or encoding.
Returns
True when the backend successfully completes the requested action.

Implemented in platf::dxgi::d3d_nvenc_encode_device_t.


The documentation for this struct was generated from the following file: