![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include "config.h"#include "config_unix.h"#include "config_win32.h"#include <assert.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include <memory>#include <atomic>#include "debug.h"#include "host.h"#include "lib_common.h"#include "utils/color_out.h"#include "utils/macros.h"#include "utils/misc.h"#include "utils/text.h"#include "video.h"#include "video_codec.h"#include "video_display.h"#include "pipewire_common.hpp"#include "utils/string_view_utils.hpp"#include <spa/param/video/format-utils.h>
Go to the source code of this file.
Classes | |
| struct | display_pw_state |
Macros | |
| #define | MOD_NAME "[PW disp] " |
Functions | |
| static void | display_pw_done (void *state) |
| static bool | display_pw_get_property (void *state, int property, void *val, size_t *len) |
| static struct video_frame * | display_pw_getf (void *state) |
| static void | display_pw_help () |
| static void * | display_pw_init (struct module *, const char *cfg, unsigned int) |
| static void | display_pw_probe (struct device_info **available_cards, int *count, void(**deleter)(void *)) |
| static bool | display_pw_putf (void *state, struct video_frame *frame, long long flags) |
| static bool | display_pw_reconfigure (void *state, struct video_desc desc) |
| static void | on_add_buffer (void *data, struct pw_buffer *buffer) |
| static void | on_param_changed (void *state, uint32_t id, const struct spa_pod *param) |
| static void | on_remove_buffer (void *, struct pw_buffer *buffer) |
| static void | on_state_changed (void *state, enum pw_stream_state old, enum pw_stream_state new_state, const char *error) |
| REGISTER_MODULE (pipewire, &display_pw_info, LIBRARY_CLASS_VIDEO_DISPLAY, VIDEO_DISPLAY_ABI_VERSION) | |
Variables | |
| static const struct video_display_info | display_pw_info |
| static const pw_stream_events | stream_events |
| #define MOD_NAME "[PW disp] " |
Definition at line 28 of file pipewire.cpp.
|
static |
Definition at line 281 of file pipewire.cpp.
References state.
|
static |
Definition at line 354 of file pipewire.cpp.
References BGR, codecs, DISPLAY_PROPERTY_CODECS, DISPLAY_PROPERTY_RGB_SHIFT, len, property, RGB, RGBA, state, UYVY, and val.
|
static |
Definition at line 293 of file pipewire.cpp.
References LOG_LEVEL_WARNING, log_msg(), state, vc_get_linesize(), vf_alloc_desc_data(), video_desc_eq(), and video_desc_from_frame().

|
static |
Definition at line 243 of file pipewire.cpp.
References color_printf(), print_devices(), TERM_BOLD, TERM_FG_RED, TERM_FG_RESET, and TERM_RESET.
Referenced by display_pw_init().

|
static |
Definition at line 253 of file pipewire.cpp.
References display_pw_help(), INIT_NOERR, initialize_pw_common(), key, LOG_LEVEL_INFO, log_msg(), MOD_NAME, tokenize(), and val.

|
static |
Definition at line 449 of file pipewire.cpp.
|
static |
Definition at line 329 of file pipewire.cpp.
References video_frame::callbacks, video_frame_callbacks::dispose_udata, flags, frame, PUTF_DISCARD, and state.
|
static |
Definition at line 382 of file pipewire.cpp.
References video_desc::color_spec, desc, display_pw_state::desc, video_desc::fps, get_framerate_d(), get_framerate_n(), video_desc::height, pw_fmt_from_uv_codec(), state, stream_events, STREAM_TARGET_PROPERTY_KEY, and video_desc::width.

|
static |
Definition at line 182 of file pipewire.cpp.
References LOG_LEVEL_ERROR, LOG_LEVEL_VERBOSE, log_msg(), MOD_NAME, vc_get_linesize(), and vf_alloc_desc().

|
static |
Definition at line 153 of file pipewire.cpp.
References LOG_LEVEL_VERBOSE, log_msg(), MOD_NAME, param, state, and vc_get_linesize().

|
static |
Definition at line 214 of file pipewire.cpp.
References LOG_LEVEL_VERBOSE, log_msg(), and vf_free().

|
static |
Definition at line 139 of file pipewire.cpp.
References LOG_LEVEL_ERROR, LOG_LEVEL_NOTICE, log_msg(), MOD_NAME, and state.

| REGISTER_MODULE | ( | pipewire | , |
| & | display_pw_info, | ||
| LIBRARY_CLASS_VIDEO_DISPLAY | , | ||
| VIDEO_DISPLAY_ABI_VERSION | ) |
|
static |
Definition at line 455 of file pipewire.cpp.
|
static |
Definition at line 226 of file pipewire.cpp.