![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <blackmagic_common.hpp>

Public Member Functions | |
| bmd_option ()=default | |
| bmd_option (bool val, bool user_spec=true) | |
| bmd_option (int64_t val, bool user_spec=true) | |
| bool | device_write (IDeckLinkConfiguration *deckLinkConfiguration, BMDDeckLinkConfigurationID opt, std::string const &log_prefix="[DeckLink] ") const |
| bool | get_flag () const |
| int64_t | get_int () const |
| const char * | get_string () const |
| bool | is_default () const |
| bool | is_help () const |
| bool | is_user_set () const |
| bool | keep () const |
| void | parse (const char *) |
| void | set_flag (bool val_) |
| void | set_float (double val_) |
| void | set_int (int64_t val_) |
| void | set_keep () |
| void | set_string (const char *val_) |
Private Types | |
| enum class | type_tag : int { t_default , t_keep , t_flag , t_int , t_float , t_string } |
Private Attributes | ||
| enum bmd_option::type_tag | m_type = type_tag::t_default | |
| bool | m_user_specified = true | |
| ignore errors if set to false | ||
| union { | ||
| bool b | ||
| double f | ||
| int64_t i | ||
| char s [128] | ||
| } | m_val | |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const bmd_option &b) |
Definition at line 90 of file blackmagic_common.hpp.
|
strongprivate |
| Enumerator | |
|---|---|
| t_default | |
| t_keep | |
| t_flag | |
| t_int | |
| t_float | |
| t_string | |
Definition at line 92 of file blackmagic_common.hpp.
|
default |
|
explicit |
Definition at line 616 of file blackmagic_common.cpp.
|
explicit |
Definition at line 612 of file blackmagic_common.cpp.
| bool bmd_option::device_write | ( | IDeckLinkConfiguration * | deckLinkConfiguration, |
| BMDDeckLinkConfigurationID | opt, | ||
| std::string const & | log_prefix = "[DeckLink] " ) const |
Definition at line 794 of file blackmagic_common.cpp.
References bmd_hresult_to_string(), BMD_STR, fcc_to_string(), get_bmd_api_str_from_cstr(), get_connection_string_map(), get_flag(), get_int(), LOG, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_WARNING, m_type, m_user_specified, m_val, release_bmd_api_str(), s, t_default, t_flag, t_float, t_int, t_keep, and t_string.
Referenced by display_decklink_reconfigure().

| bool bmd_option::get_flag | ( | ) | const |
Definition at line 681 of file blackmagic_common.cpp.
References LOG_LEVEL_WARNING, log_msg(), m_type, m_val, MOD_NAME, and t_flag.
Referenced by device_write().

| int64_t bmd_option::get_int | ( | ) | const |
Definition at line 688 of file blackmagic_common.cpp.
References LOG_LEVEL_WARNING, log_msg(), m_type, m_val, MOD_NAME, and t_int.
Referenced by decklink_set_profile(), and device_write().

|
nodiscard |
| bool bmd_option::is_default | ( | ) | const |
Definition at line 705 of file blackmagic_common.cpp.
References m_type, and t_default.
Referenced by decklink_set_profile().
|
nodiscard |
Definition at line 708 of file blackmagic_common.cpp.
References get_string(), m_type, and t_string.
Referenced by decklink_set_profile().

| bool bmd_option::is_user_set | ( | ) | const |
Definition at line 712 of file blackmagic_common.cpp.
References m_user_specified.
| bool bmd_option::keep | ( | ) | const |
Definition at line 678 of file blackmagic_common.cpp.
References m_type, and t_keep.
Referenced by display_decklink_init(), and device_state::init().
| void bmd_option::parse | ( | const char * | val | ) |
Definition at line 719 of file blackmagic_common.cpp.
References bmd_read_fourcc(), i, set_flag(), set_float(), set_int(), set_keep(), set_string(), and val.
Referenced by parse_option(), and settings_init().

| void bmd_option::set_flag | ( | bool | val_ | ) |
Definition at line 656 of file blackmagic_common.cpp.
References m_type, m_val, and t_flag.
Referenced by parse(), and settings_init().
| void bmd_option::set_float | ( | double | val_ | ) |
Definition at line 665 of file blackmagic_common.cpp.
References m_type, m_user_specified, m_val, and t_float.
Referenced by parse().
| void bmd_option::set_int | ( | int64_t | val_ | ) |
Definition at line 660 of file blackmagic_common.cpp.
References m_type, m_user_specified, m_val, and t_int.
Referenced by parse(), parse_option(), and settings_init().
| void bmd_option::set_keep | ( | ) |
Definition at line 675 of file blackmagic_common.cpp.
References m_type, and t_keep.
Referenced by parse().
| void bmd_option::set_string | ( | const char * | val_ | ) |
Definition at line 670 of file blackmagic_common.cpp.
References m_type, m_user_specified, m_val, and t_string.
Referenced by parse().
|
friend |
Definition at line 620 of file blackmagic_common.cpp.
| bool bmd_option::b |
Definition at line 94 of file blackmagic_common.hpp.
| double bmd_option::f |
Definition at line 96 of file blackmagic_common.hpp.
| int64_t bmd_option::i |
Definition at line 95 of file blackmagic_common.hpp.
Referenced by parse().
|
private |
Referenced by device_write(), get_flag(), get_int(), get_string(), is_default(), is_help(), keep(), set_flag(), set_float(), set_int(), set_keep(), and set_string().
|
private |
ignore errors if set to false
Definition at line 99 of file blackmagic_common.hpp.
Referenced by device_write(), is_user_set(), set_float(), set_int(), and set_string().
| union { ... } bmd_option::m_val |
Referenced by bmd_option(), bmd_option(), device_write(), get_flag(), get_int(), get_string(), set_flag(), set_float(), set_int(), and set_string().
| char bmd_option::s[128] |
Definition at line 97 of file blackmagic_common.hpp.
Referenced by device_write().