2019-11-28 00:38:10 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include <obs-module.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-03-07 17:27:58 +00:00
|
|
|
EXPORT BOOL winrt_capture_supported();
|
|
|
|
EXPORT BOOL winrt_capture_cursor_toggle_supported();
|
2021-01-26 02:53:35 +00:00
|
|
|
EXPORT struct winrt_capture *winrt_capture_init_window(BOOL cursor, HWND window,
|
2022-09-04 19:16:44 +00:00
|
|
|
BOOL client_area,
|
|
|
|
BOOL force_sdr);
|
2022-12-28 22:22:24 +00:00
|
|
|
EXPORT struct winrt_capture *
|
|
|
|
winrt_capture_init_monitor(BOOL cursor, HMONITOR monitor, BOOL force_sdr);
|
2019-11-28 00:38:10 +00:00
|
|
|
EXPORT void winrt_capture_free(struct winrt_capture *capture);
|
|
|
|
|
2020-11-13 06:28:37 +00:00
|
|
|
EXPORT BOOL winrt_capture_active(const struct winrt_capture *capture);
|
2021-05-08 04:17:22 +00:00
|
|
|
EXPORT BOOL winrt_capture_show_cursor(struct winrt_capture *capture,
|
2020-03-07 17:27:58 +00:00
|
|
|
BOOL visible);
|
2022-03-10 05:42:17 +00:00
|
|
|
EXPORT enum gs_color_space
|
|
|
|
winrt_capture_get_color_space(const struct winrt_capture *capture);
|
2021-07-07 05:10:57 +00:00
|
|
|
EXPORT void winrt_capture_render(struct winrt_capture *capture);
|
2020-02-25 05:21:52 +00:00
|
|
|
EXPORT uint32_t winrt_capture_width(const struct winrt_capture *capture);
|
|
|
|
EXPORT uint32_t winrt_capture_height(const struct winrt_capture *capture);
|
2019-11-28 00:38:10 +00:00
|
|
|
|
2020-05-21 07:23:14 +00:00
|
|
|
EXPORT void winrt_capture_thread_start();
|
|
|
|
EXPORT void winrt_capture_thread_stop();
|
|
|
|
|
2019-11-28 00:38:10 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|