![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <cctype>
Go to the source code of this file.
Macros | |
| #define | __NL__ |
| #define | ARR_COUNT(arr) |
| #define | CLAMP(x, low, high) |
| #define | DIV_ROUNDED_UP(value, div) |
| #define | EXTERN_C extern "C" |
| #define | IF_NOT_NULL_ELSE(val, default_val) |
| #define | IF_NOT_UNDEF_ELSE(val, default_val) |
| #define | IS_FCC(val) |
| #define | IS_KEY_PREFIX(tok, key) |
| expands to true value if <k> from tok in format <k>=<v> is prefix of key | |
| #define | IS_PREFIX(tok, key) |
| similar as above, but also key without a value is accepted (value optional) | |
| #define | MAX(a, b) |
| #define | MERGE(a, b) |
| #define | MIN(a, b) |
| #define | OPTIMIZED_FOR for |
| #define | snprintf_ch(str, ...) |
shortcut for snprintf(var, sizeof var...), var must be a char array | |
| #define | STARTS_WITH(str, token) |
| #define | STRINGIFY(A) |
| #define | SWAP(a, b) |
| #define | SWAP_PTR(a, b) |
| #define | to_fourcc(a, b, c, d) |
| Creates FourCC word. | |
| #define | TOSTRING(A) |
| #define | UG_ASSERT(cond) |
| unconditional alternative to assert that is not affected by NDEBUG macro | |
| #define | UG_ASSERT_NO_FATAL(cond) |
| #define | UNDEF -1 |
Enumerations | |
| enum | { MAX_CPU_CORES = 256 , SHORT_STR = 128 , STR_LEN = 2048 } |
| the following limits are used mostly for static array allocations More... | |
Definition in file macros.h.
| #define ARR_COUNT | ( | arr | ) |
Definition at line 60 of file macros.h.
Referenced by image_pattern_strips::fill().
| #define CLAMP | ( | x, | |
| low, | |||
| high ) |
Definition at line 67 of file macros.h.
Referenced by filter(), get_sine_signal(), vc_copylineRGBtoGrayscale_SSE(), vc_copylineUYVYtoRGBA(), vidcap_file_parse_fmt(), and yuv444p_to_rgb().
| #define DIV_ROUNDED_UP | ( | value, | |
| div ) |
| #define IF_NOT_NULL_ELSE | ( | val, | |
| default_val ) |
Definition at line 51 of file macros.h.
Referenced by configure_audio(), display_gl_init_opengl(), glsl_compile_link(), initialize(), is_library_registered(), set_audio_capture_format(), setup_video(), show_help(), vidcap_testcard2_thread(), and vidcap_testcard_init().
| #define IF_NOT_UNDEF_ELSE | ( | val, | |
| default_val ) |
| #define IS_FCC | ( | val | ) |
| #define IS_KEY_PREFIX | ( | tok, | |
| key ) |
expands to true value if <k> from tok in format <k>=<v> is prefix of key
Definition at line 138 of file macros.h.
Referenced by delay_init(), display_decklink_init(), display_sdl2_init(), j2k_compress_init(), parse_audio_codec_params(), parse_audio_format(), image_pattern_strips::parse_fmt(), parse_fmt(), parse_fmt(), parse_fmt(), parse_fmt(), parse_fmt(), parse_fmt(), parse_option(), process_args(), settings_init(), vidcap_decklink_init(), vidcap_file_parse_fmt(), vidcap_screen_win_process_params(), vidcap_testcard2_init(), and vidcap_testcard_init().
| #define IS_PREFIX | ( | tok, | |
| key ) |
similar as above, but also key without a value is accepted (value optional)
Definition at line 142 of file macros.h.
Referenced by display_sdl2_init(), parse_fmt(), and settings_init().
| #define MAX | ( | a, | |
| b ) |
Definition at line 65 of file macros.h.
Referenced by interlaced_video_pattern_generator::interlaced_video_pattern_generator(), audio_cap_jack_init(), audio_play_jack_init(), audio_reading_thread(), compute_longest_gap(), configure_with(), decode_frame_jpeg(), display_dump_reconfigure(), get_consecutive_zeros(), gpujpeg_probe_internal_codec(), load_logo_data_from_file(), parse_format(), pbuf_process_stats(), print_module_usage(), set_fec(), udp_reader(), vidcap_decklink_init(), vidcap_file_process_messages(), and video_reading_thread().
| #define MIN | ( | a, | |
| b ) |
Definition at line 63 of file macros.h.
Referenced by audio_cap_portaudio_init(), audio_play_jack_query_format(), audio_play_portaudio_ctl(), audio_reading_thread(), crop_postprocess_reconfigure(), display_dummy_putf(), display_file_get_property(), get_cpu_core_count(), initialize(), initialize_import(), lavc_compare_convs_inner(), parse_fmt(), print_rtsp_header(), process_rtsp_describe_header(), process_video_pkt(), read_ds64(), set_convertible_formats(), text_postprocess_reconfigure(), vidcap_import_grab(), vidcap_switcher_register_keyboard_ctl(), vidcap_testcard2_init(), vidcap_testcard2_thread(), and video_reading_thread().
| #define OPTIMIZED_FOR for |
Definition at line 127 of file macros.h.
Referenced by ayuv64_to_uyvy(), ayuv64_to_v210(), ayuv64_to_y416(), convert_BGRA_RGBA(), convert_P216_Y216(), gbrap_to_rgb_rgba(), gbrp_to_rgb(), gbrp_to_rgba(), gbrpXXle_to_r10k(), gbrpXXle_to_r12l(), gbrpXXle_to_rg48(), gbrpXXle_to_rgb(), gbrpXXle_to_rgba(), i420_8_to_uyvy(), ndi_disp_convert_Y216_to_P216(), ndi_disp_convert_Y416_to_PA16(), nv12_to_rgb(), nv12_to_uyvy(), nv12_to_uyvy(), p010le_to_uyvy(), p010le_to_v210(), r10k_to_gbrpXXle(), r10k_to_yuv42Xp10le(), r10k_to_yuv444pXXle(), r12l_to_gbrpXXle(), r12l_to_yuv444pXXle(), rg48_to_gbrp12le(), rg48_to_yuv444pXXle(), rgb_rgba_to_gbrp(), rgb_to_yuv444p(), upload_texture(), uyvy_to_nv12(), uyvy_to_vuya(), uyvy_to_yuv420p(), uyvy_to_yuv422p(), uyvy_to_yuv444p(), v210_to_p010le(), v210_to_xv30(), v210_to_y210(), v210_to_yuv420p10le(), v210_to_yuv422p10le(), v210_to_yuv444p10le(), v210_to_yuv444p16le(), vc_copylineDVS10(), vc_copylineDVS10toV210(), vc_copyliner10ktoRGB(), vc_copyliner10ktoY416(), vc_copylineR12AtoR12L(), vc_copylineR12L(), vc_copylineR12LtoR10k(), vc_copylineR12LtoR12A(), vc_copylineR12LtoRG48(), vc_copylineR12LtoRGB(), vc_copylineR12LtoUYVY(), vc_copylineR12LtoY416(), vc_copylineRG48toR10k(), vc_copylineRG48toR12L(), vc_copylineRG48toRGB(), vc_copylineRG48toRGBA(), vc_copylineRG48toV210(), vc_copylineRG48toY216(), vc_copylineRG48toY416(), vc_copylineRGB(), vc_copylineRGB_AtoR12L(), vc_copylineRGBAtoRG48(), vc_copylineRGBAtoRGBwithShift(), vc_copylineRGBtoGrayscale_SSE(), vc_copylineRGBtoRG48(), vc_copylineRGBtoRGBA(), vc_copylineUYVYtoGrayscale(), vc_copylineUYVYtoRGBA(), vc_copylineV210toRG48(), vc_copylineV210toRGB(), vc_copylineV210toY216(), vc_copylineV210toY416(), vc_copylineY216toV210(), vc_copylineY416toR10k(), vc_copylineY416toR12L(), vc_copylineY416toRG48(), vc_copylineY416toRGB(), vc_copylineY416toRGBA(), vc_copylineY416toV210(), vc_copylineYUYV(), vuya_to_uyvy(), vuyax_to_y416(), y216_to_yuv422pXXle(), y216_to_yuv444p16le(), y416_to_xv30(), yuv420p10le_to_uyvy(), yuv420p10le_to_v210(), yuv420p_to_uyvy(), yuv420p_to_v210(), yuv422p10le_to_v210(), yuv422p_to_uyvy(), yuv422p_to_v210(), yuv444p10le_to_rgb(), yuv444p16le_to_uyvy(), yuv444p1Xle_to_uyvy(), yuv444p1Xle_to_v210(), yuv444p1Xle_to_y416(), yuv444p_to_rgb(), yuv444p_to_uyvy(), yuv444p_to_v210(), yuv444pXXle_to_r10k(), yuv444pXXle_to_r12l(), yuv444pXXle_to_rg48(), yuv8p_to_rgb(), and yuvp10le_to_rgb().
| #define snprintf_ch | ( | str, | |
| ... ) |
shortcut for snprintf(var, sizeof var...), var must be a char array
Definition at line 101 of file macros.h.
Referenced by audio_cap_wasapi_probe(), bug_msg(), configure_with(), openssl_decrypt_init(), openssl_encrypt_init(), image_pattern_strips::parse_fmt(), parse_options_internal(), and sdp_add_video().
| #define STARTS_WITH | ( | str, | |
| token ) |
Definition at line 102 of file macros.h.
Referenced by get_video_desc_from_string().
| #define SWAP | ( | a, | |
| b ) |
Definition at line 57 of file macros.h.
Referenced by udp_init_if().
| #define SWAP_PTR | ( | a, | |
| b ) |
Definition at line 58 of file macros.h.
Referenced by decode_frame().
| #define to_fourcc | ( | a, | |
| b, | |||
| c, | |||
| d ) |
Creates FourCC word.
The main idea of FourCC is that it can be anytime read by human (by hexa editor, gdb, tcpdump). Therefore, this is stored as a big endian even on little-endian architectures - first byte of FourCC is in the memory on the lowest address.
Definition at line 114 of file macros.h.
Referenced by audio_tx_send_chan(), configure_with(), create_jpeg_frame(), decode_audio_frame(), decode_video_frame(), parse_quant_tables(), parse_video_hdr(), print_dropped(), probe_internal(), validate_std_audio(), and vidcap_ndi_grab().
| #define TOSTRING | ( | A | ) |
Definition at line 49 of file macros.h.
Referenced by audio_cap_testcard_init(), display_dummy_init(), show_help(), and show_help().
| #define UG_ASSERT | ( | cond | ) |
unconditional alternative to assert that is not affected by NDEBUG macro
Definition at line 78 of file macros.h.
Referenced by audio_cap_sdl_mixer_init(), display_gl_get_property(), get_audio_conn_flag_name(), and fec::pt_from_fec_type().
| #define UG_ASSERT_NO_FATAL | ( | cond | ) |
soft version of UG_ASSERT_SOFT - only exit if user requested exit on failures
Definition at line 90 of file macros.h.
Referenced by show_help().
| anonymous enum |
the following limits are used mostly for static array allocations
| Enumerator | |
|---|---|
| MAX_CPU_CORES | maximal expected CPU core count |
| SHORT_STR | |
| STR_LEN | "standard" string length placeholder |