Sunshine master
Self-hosted game stream host for Moonlight.
portal::pipewire_streaminfo_t Struct Reference

PipeWire stream node and negotiated capture size. More...

Public Member Functions

bool match_display_name (const std::string_view &display_name)
 Check whether a portal stream matches a requested display name.
 
std::string to_display_name ()
 Convert to display name.
 

Public Attributes

int height = 0
 Stream height in pixels.
 
std::string monitor_name
 Monitor name.
 
uint32_t pipewire_node = PW_ID_ANY
 PipeWire node ID selected by the portal.
 
uint64_t pipewire_object_serial = SPA_ID_INVALID
 PipeWire object serial selected by the portal.
 
int pos_x = 0
 Output X position reported by the portal.
 
int pos_y = 0
 Output Y position reported by the portal.
 
int width = 0
 Stream width in pixels.
 

Detailed Description

PipeWire stream node and negotiated capture size.

Member Function Documentation

◆ match_display_name()

bool portal::pipewire_streaminfo_t::match_display_name ( const std::string_view & display_name)
inline

Check whether a portal stream matches a requested display name.

Parameters
display_nameDisplay name.
Returns
True when the portal display id matches the requested display name.

◆ to_display_name()

std::string portal::pipewire_streaminfo_t::to_display_name ( )
inline

Convert to display name.

Returns
Value converted to display name.

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