61{
62 struct vidcap *device = NULL;
63
65 char desc[] =
TRED(
TBOLD(
"screen"))
" capture in Linux abstracts X11/PipeWire screen capture and tries to select "
66 "the right implementation. You can also specify directly " TBOLD(
"screen_x11")
" or " TBOLD(
"screen_pw")
".";
69#ifdef HAVE_SCREEN_X11
71#endif
72#ifdef HAVE_SCREEN_PW
74#endif
75 printf("\n\nFollows help for the module that would have been selected:\n\n");
76 }
77
79 if (getenv("WAYLAND_DISPLAY") != NULL) {
83 if (ret < 0) {
84 error_msg(
"screen_pw initialization failed\n");
85 } else {
88 return ret;
89 }
90 }
92 if (getenv("DISPLAY") == NULL) {
94 }
98
100 return ret;
101}
int color_printf(const char *format,...)
void log_msg(int level, const char *format,...)
#define LOG_LEVEL_WARNING
less severe errors
int initialize_video_capture(struct module *parent, struct vidcap_params *param, struct vidcap **state)
Initializes video capture.
char * wrap_paragraph(char *text)
void vidcap_params_set_driver(struct vidcap_params *params, const char *driver)
void vidcap_params_free_struct(struct vidcap_params *buf)
struct vidcap_params * vidcap_params_copy(const struct vidcap_params *params)
const char * vidcap_params_get_fmt(const struct vidcap_params *params)