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

D3D-backed captured image and duplication metadata. More...

Inheritance diagram for platf::dxgi::img_d3d_t:
[legend]
Collaboration diagram for platf::dxgi::img_d3d_t:
[legend]

Public Attributes

bool blank = true
 Whether the texture currently contains a blank frame.
 
keyed_mutex_t capture_mutex
 Capture mutex.
 
render_target_t capture_rt
 Capture rt.
 
texture2d_t capture_texture
 Capture texture.
 
bool dummy = false
 Whether this image is a dummy placeholder.
 
HANDLE encoder_texture_handle = {}
 Encoder texture handle.
 
DXGI_FORMAT format
 DXGI format of the captured texture.
 
uint32_t id = 0
 Unique identifier used to cache encoder resources for this image.
 
- Public Attributes inherited from platf::img_t
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.
 

Additional Inherited Members

- Public Member Functions inherited from platf::img_t
 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.
 

Detailed Description

D3D-backed captured image and duplication metadata.


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