![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <array>#include <cctype>#include <chrono>#include <iostream>#include <memory>#include <SpoutLibrary.h>#include <synchapi.h>#include <string>#include "debug.h"#include "gl_context.h"#include "host.h"#include "lib_common.h"#include "spout_sender.h"#include "utils/color_out.h"#include "utils/text.h"#include "video.h"#include "video_capture.h"
Go to the source code of this file.
Classes | |
| struct | state_vidcap_spout |
Macros | |
| #define | DEFAULT_CODEC RGB |
| #define | DEFAULT_FPS 60.0 |
| #define | MOD_NAME "[spout cap.] " |
Functions | |
| REGISTER_MODULE (spout, &vidcap_spout_info, LIBRARY_CLASS_VIDEO_CAPTURE, VIDEO_CAPTURE_ABI_VERSION) | |
| static void | usage () |
| static void | vidcap_spout_done (void *state) |
| static struct video_frame * | vidcap_spout_grab (void *state, struct audio_frame **audio) |
| static int | vidcap_spout_init (struct vidcap_params *params, void **state) |
| static void | vidcap_spout_probe (device_info **available_cards, int *count, void(**deleter)(void *)) |
Variables | |
| static const struct video_capture_info | vidcap_spout_info |
Definition in file spout.cpp.
| #define DEFAULT_CODEC RGB |
Definition at line 59 of file spout.cpp.
Referenced by usage(), and vidcap_spout_init().
| #define DEFAULT_FPS 60.0 |
Definition at line 58 of file spout.cpp.
Referenced by usage(), and vidcap_spout_init().
| #define MOD_NAME "[spout cap.] " |
Definition at line 61 of file spout.cpp.
Referenced by vidcap_spout_init(), and vidcap_spout_probe().
| REGISTER_MODULE | ( | spout | , |
| & | vidcap_spout_info, | ||
| LIBRARY_CLASS_VIDEO_CAPTURE | , | ||
| VIDEO_CAPTURE_ABI_VERSION | ) |
|
static |
Definition at line 84 of file spout.cpp.
References count, DEFAULT_CODEC, DEFAULT_FPS, get_codec_name(), LOG, LOG_LEVEL_ERROR, name, TBOLD, and TRED.
Referenced by vidcap_spout_init().

|
static |
Definition at line 199 of file spout.cpp.
References destroy_gl_context(), gl_context_make_current(), state_vidcap_spout::glc, state_vidcap_spout::spout_state, and state.

|
static |
Definition at line 210 of file spout.cpp.
References audio, video_frame::callbacks, video_desc::color_spec, tile::data, state_vidcap_spout::desc, video_frame_callbacks::dispose, video_desc::fps, video_frame::fps, get_codec_name(), gl_context_make_current(), state_vidcap_spout::gl_format, state_vidcap_spout::glc, video_desc::height, state_vidcap_spout::last_frame_captured, MSG, state_vidcap_spout::spout_state, state, video_frame::tiles, vf_alloc_desc_data(), vf_free(), and video_desc::width.

|
static |
Definition at line 113 of file spout.cpp.
References DEFAULT_CODEC, DEFAULT_FPS, state_vidcap_spout::desc, get_codec_from_name(), get_codec_name(), GL_CONTEXT_ANY, gl_context_make_current(), state_vidcap_spout::gl_format, state_vidcap_spout::glc, init_gl_context(), LOG, log_level, LOG_LEVEL_ERROR, LOG_LEVEL_WARNING, MOD_NAME, MSG, name, PROGRESSIVE, RGB, RGBA, state_vidcap_spout::server_name, spout_set_log_level(), state_vidcap_spout::spout_state, state, urldecode(), usage(), VIDCAP_FLAG_AUDIO_ANY, VIDCAP_INIT_AUDIO_NOT_SUPPORTED, VIDCAP_INIT_FAIL, VIDCAP_INIT_NOERR, VIDCAP_INIT_OK, vidcap_params_get_flags(), and vidcap_params_get_fmt().

|
static |
Definition at line 255 of file spout.cpp.
References count, deleter, LOG, LOG_LEVEL_VERBOSE, MOD_NAME, name, urlencode(), and urlencode_rfc3986_eval().

|
static |
Definition at line 288 of file spout.cpp.