winrt-capture.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #define WIN32_LEAN_AND_MEAN
  3. #include <windows.h>
  4. #include <obs-module.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. EXPORT BOOL winrt_capture_supported();
  9. EXPORT BOOL winrt_capture_cursor_toggle_supported();
  10. EXPORT struct winrt_capture *winrt_capture_init_window(BOOL cursor, HWND window,
  11. BOOL client_area,
  12. BOOL force_sdr);
  13. EXPORT struct winrt_capture *
  14. winrt_capture_init_monitor(BOOL cursor, HMONITOR monitor, BOOL force_sdr);
  15. EXPORT void winrt_capture_free(struct winrt_capture *capture);
  16. EXPORT BOOL winrt_capture_active(const struct winrt_capture *capture);
  17. EXPORT BOOL winrt_capture_show_cursor(struct winrt_capture *capture,
  18. BOOL visible);
  19. EXPORT enum gs_color_space
  20. winrt_capture_get_color_space(const struct winrt_capture *capture);
  21. EXPORT void winrt_capture_render(struct winrt_capture *capture);
  22. EXPORT uint32_t winrt_capture_width(const struct winrt_capture *capture);
  23. EXPORT uint32_t winrt_capture_height(const struct winrt_capture *capture);
  24. EXPORT void winrt_capture_thread_start();
  25. EXPORT void winrt_capture_thread_stop();
  26. #ifdef __cplusplus
  27. }
  28. #endif