![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <assert.h>#include <errno.h>#include <inttypes.h>#include <limits.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "audio/types.h"#include "debug.h"#include "lib_common.h"#include "module.h"#include "utils/color_out.h"#include "utils/macros.h"#include "utils/text.h"#include "video.h"#include "video_capture.h"
Go to the source code of this file.
Classes | |
| struct | vidcap_switcher_state |
Macros | |
| #define | MOD_NAME "[switcher] " |
Functions | |
| static int | parse_fmt (struct vidcap_switcher_state *s, char *cfg) |
| REGISTER_MODULE (switcher, &vidcap_switcher_info, LIBRARY_CLASS_VIDEO_CAPTURE, VIDEO_CAPTURE_ABI_VERSION) | |
| static void | show_help (void) |
| static void | vidcap_switcher_done (void *state) |
| static struct video_frame * | vidcap_switcher_grab (void *state, struct audio_frame **audio) |
| static int | vidcap_switcher_init (struct vidcap_params *params, void **state) |
| static void | vidcap_switcher_probe (struct device_info **available_cards, int *count, void(**deleter)(void *)) |
| static void | vidcap_switcher_register_keyboard_ctl (struct vidcap_switcher_state *s) |
Variables | |
| static const struct video_capture_info | vidcap_switcher_info |
Definition in file switcher.c.
| #define MOD_NAME "[switcher] " |
Definition at line 56 of file switcher.c.
Referenced by parse_fmt(), and vidcap_switcher_grab().
|
static |
Definition at line 136 of file switcher.c.
References vidcap_switcher_state::excl_init, vidcap_switcher_state::fallback, LOG_LEVEL_ERROR, log_msg(), MOD_NAME, MSG, vidcap_switcher_state::selected_device, show_help(), val, VIDCAP_INIT_FAIL, and VIDCAP_INIT_NOERR.
Referenced by vidcap_switcher_init().

| REGISTER_MODULE | ( | switcher | , |
| & | vidcap_switcher_info, | ||
| LIBRARY_CLASS_VIDEO_CAPTURE | , | ||
| VIDEO_CAPTURE_ABI_VERSION | ) |
|
static |
Definition at line 62 of file switcher.c.
References color_printf(), desc, TBOLD, TRED, TUNDERLINE, and wrap_paragraph().
Referenced by parse_fmt().

|
static |
Definition at line 258 of file switcher.c.
References vidcap_switcher_state::device_names, vidcap_switcher_state::devices, vidcap_switcher_state::devices_cnt, vidcap_switcher_state::mod, module_done(), state, and vidcap_done().
Referenced by vidcap_switcher_init().

|
static |
Definition at line 279 of file switcher.c.
References audio, check_message(), vidcap_switcher_state::device_names, vidcap_switcher_state::devices, vidcap_switcher_state::devices_cnt, vidcap_switcher_state::excl_init, vidcap_switcher_state::fallback, frame, free_message(), initialize_video_capture(), LOG_LEVEL_ERROR, LOG_LEVEL_INFO, log_msg(), vidcap_switcher_state::mod, MOD_NAME, MSG, msg, new_response(), vidcap_switcher_state::params, RESPONSE_BAD_REQUEST, RESPONSE_OK, vidcap_switcher_state::selected_device, state, msg_universal::text, val, vidcap_done(), vidcap_grab(), and vidcap_params_get_nth().

|
static |
Definition at line 180 of file switcher.c.
References module::cls, vidcap_switcher_state::device_names, vidcap_switcher_state::devices, vidcap_switcher_state::devices_cnt, vidcap_switcher_state::excl_init, initialize_video_capture(), vidcap_switcher_state::mod, MODULE_CLASS_DATA, module_init_default(), module_register(), MSG, params, vidcap_switcher_state::params, parse_fmt(), vidcap_switcher_state::selected_device, state, verbose_msg, VIDCAP_INIT_FAIL, VIDCAP_INIT_OK, vidcap_params_get_driver(), vidcap_params_get_flags(), vidcap_params_get_fmt(), vidcap_params_get_next(), vidcap_params_get_parent(), vidcap_params_set_flags(), vidcap_switcher_done(), and vidcap_switcher_register_keyboard_ctl().

|
static |
Definition at line 116 of file switcher.c.
|
static |
Definition at line 123 of file switcher.c.
References vidcap_switcher_state::devices_cnt, free_response(), get_root_module(), LOG_LEVEL_ERROR, log_msg(), msg_universal::m, MIN, vidcap_switcher_state::mod, new_message(), response_get_status(), RESPONSE_OK, SEND_MESSAGE_FLAG_NO_STORE, SEND_MESSAGE_FLAG_QUIET, and send_message_sync().
Referenced by vidcap_switcher_init().

|
static |
Definition at line 346 of file switcher.c.