Sunshine master
Self-hosted game stream host for Moonlight.
video::encoder_t::option_t Struct Reference

Runtime encoder option exposed to configuration parsing. More...

#include <src/video.h>

Public Member Functions

option_toperator= (option_t &&) noexcept=default
 Defaulted move assignment for the generated type. * *.
 
 option_t (const option_t &)=default
 Copy an encoder option descriptor.
 
 option_t (option_t &&) noexcept=default
 Defaulted move constructor for the generated type.

 
 option_t (std::string &&name, decltype(value) &&value)
 Store a named encoder option and its value source.
 

Public Attributes

std::string name
 Encoder command-line option name.
 
std::variant< int, int *, std::optional< int > *, std::function< int()>, std::string, std::string *, std::function< const std::string(const config_t &)> > value
 Literal, pointer, or callback that supplies the option value.
 

Detailed Description

Runtime encoder option exposed to configuration parsing.

Constructor & Destructor Documentation

◆ option_t() [1/2]

video::encoder_t::option_t::option_t ( option_t && )
defaultnoexcept

Defaulted move constructor for the generated type.

◆ option_t() [2/2]

video::encoder_t::option_t::option_t ( std::string && name,
decltype(value) && value )
inline

Store a named encoder option and its value source.

Parameters
nameHuman-readable name to assign.
valueLiteral value, pointer, or callback used to resolve the option.

Member Function Documentation

◆ operator=()

option_t & video::encoder_t::option_t::operator= ( option_t && )
defaultnoexcept

Defaulted move assignment for the generated type. * *.

  • Returns
    This instance.

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