Sunshine master
Self-hosted game stream host for Moonlight.
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:
[legend]
Collaboration diagram for platf::nvenc_encode_device_t:
[legend]

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_basenvenc = 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.

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