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