![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|

Go to the source code of this file.
Macros | |
| #define | HRESULT_GET_ERROR_COMMON(res, errptr) |
Enumerations | |
| enum | { BUILD_WINDOWS_11_OR_LATER = 22000 } |
Functions | |
| bool | com_initialize (bool *com_initialized, const char *err_prefix) |
| void | com_uninitialize (bool *com_initialized) |
Definition in file windows.h.
| #define HRESULT_GET_ERROR_COMMON | ( | res, | |
| errptr ) |
this macro is shared between both utils/windows.cpp, where the error codes defines system and bmd_hresult_to_string where only the subset below is defined by LinuxCOM.h compat, so use only values defined in that header.
Definition at line 60 of file windows.h.
Referenced by bmd_hresult_to_string().
| anonymous enum |
| Enumerator | |
|---|---|
| BUILD_WINDOWS_11_OR_LATER | |
| bool com_initialize | ( | bool * | com_initialized, |
| const char * | err_prefix ) |
| com_initialized | - pointer passed to com_initialize (or create_com_iterator) | |
| [out] | com_initialize | a pointer to a bool that will be passed to com_uninintialize(). The value should be initialized to false - the current logic can guard only one init/uninit so true is assumed bo be a repeated call. |
| [in] | err_prefix | optional error prefix to be used for eventual error messges (may be NULL) |
| true | if either COM already initalized for this thread or this call initializes COM succesfully |
| false | COM could not have been initialized |
Definition at line 65 of file windows.c.
References LOG_LEVEL_ERROR, LOG_LEVEL_WARNING, log_msg(), and MSG.
Referenced by vidcap_decklink_state::vidcap_decklink_state(), audio_cap_wasapi_init(), audio_cap_wasapi_probe(), audio_play_wasapi_help(), audio_play_wasapi_init(), audio_play_wasapi_probe(), blackmagic_api_version_check(), common_init(), common_preinit(), create_decklink_iterator(), print_decklink_version(), and show_help().

| void com_uninitialize | ( | bool * | com_initialized | ) |
Definition at line 94 of file windows.c.
Referenced by vidcap_decklink_state::~vidcap_decklink_state(), audio_cap_wasapi_probe(), audio_play_wasapi_help(), audio_play_wasapi_init(), audio_play_wasapi_probe(), cleanup(), common_cleanup(), decklink_uninitialize(), print_decklink_version(), and show_help().