|
Sunshine master
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 WGC capture for the selected display. | |
| capture_e | next_frame (DXGI_OUTDUPL_FRAME_INFO &frame_info, std::chrono::milliseconds timeout, resource_t::pointer *res_p) |
| Acquire the next frame from the Windows capture backend. | |
| capture_e | release_frame () |
| Release resources associated with frame. | |
| capture_e | reset (dup_t::pointer dup_p=dup_t::pointer()) |
| Reset the object to its initial empty state. | |
Public Attributes | |
| dup_t | dup |
| Desktop Duplication capture session. | |
| bool | has_frame {} |
| Whether a frame is currently held by the duplication object. | |
| std::chrono::steady_clock::time_point | last_protected_content_warning_time {} |
| Last protected content warning time. | |
Display duplicator that uses the DirectX Desktop Duplication API.
| int platf::dxgi::duplication_t::init | ( | display_base_t * | display, |
| const ::video::config_t & | config ) |
Initialize WGC capture for the selected display.
| display | Display object or identifier associated with the operation. |
| config | Configuration values to apply. |
DDAPI-specific initialization goes here.
| capture_e platf::dxgi::duplication_t::next_frame | ( | DXGI_OUTDUPL_FRAME_INFO & | frame_info, |
| std::chrono::milliseconds | timeout, | ||
| resource_t::pointer * | res_p ) |
Acquire the next frame from the Windows capture backend.
| frame_info | Frame info. |
| timeout | Maximum time to wait for the operation. |
| res_p | Res p. |
| capture_e platf::dxgi::duplication_t::release_frame | ( | ) |
Release resources associated with frame.
| capture_e platf::dxgi::duplication_t::reset | ( | dup_t::pointer | dup_p = dup_t::pointer() | ) |
Reset the object to its initial empty state.
| dup_p | Dup p. |