![]() |
Sunshine latest
Self-hosted game stream host for Moonlight.
|
#include <src/platform/windows/display.h>
Public Member Functions | |
int | init (display_base_t *display, const ::video::config_t &config) |
Initialize the Windows.Graphics.Capture backend. | |
capture_e | next_frame (std::chrono::milliseconds timeout, ID3D11Texture2D **out, uint64_t &out_time) |
Get the next frame from the producer thread. If not available, the capture thread blocks until one is, or the wait times out. | |
capture_e | release_frame () |
int | set_cursor_visible (bool) |
Display duplicator that uses the Windows.Graphics.Capture API.
int platf::dxgi::wgc_capture_t::init | ( | display_base_t * | display, |
const ::video::config_t & | config ) |
Initialize the Windows.Graphics.Capture backend.
capture_e platf::dxgi::wgc_capture_t::next_frame | ( | std::chrono::milliseconds | timeout, |
ID3D11Texture2D ** | out, | ||
uint64_t & | out_time ) |
Get the next frame from the producer thread. If not available, the capture thread blocks until one is, or the wait times out.
timeout | how long to wait for the next frame |
out | a texture containing the frame just captured |
out_time | the timestamp of the frame just captured |