Sunshine master
Self-hosted game stream host for Moonlight.
platf::img_t Struct Reference

Captured frame buffer shared between capture and encode stages. More...

#include <src/platform/common.h>

Inheritance diagram for platf::img_t:
[legend]
Collaboration diagram for platf::img_t:
[legend]

Public Member Functions

 img_t (const img_t &)=delete
 
 img_t (img_t &&)=delete
 
img_toperator= (const img_t &)=delete
 
img_toperator= (img_t &&)=delete
 
virtual ~img_t ()=default
 Destroy the image.
 

Public Attributes

std::uint8_t * data {}
 Pointer to the captured image buffer.
 
std::optional< std::chrono::steady_clock::time_point > frame_timestamp
 Capture timestamp associated with the frame.
 
std::int32_t height {}
 Image height in pixels.
 
std::int32_t pixel_pitch {}
 Bytes per pixel in the image buffer.
 
std::int32_t row_pitch {}
 Bytes between consecutive image rows.
 
std::int32_t width {}
 Image width in pixels.
 

Detailed Description

Captured frame buffer shared between capture and encode stages.

Constructor & Destructor Documentation

◆ ~img_t()

virtual platf::img_t::~img_t ( )
virtualdefault

Destroy the image.

Reimplemented in platf::dxgi::img_t, and wl::img_t.


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