ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
webcam.c File Reference

Webcam capture options. More...

Go to the source code of this file.

Variables

const registry_entry_t g_webcam_entries []
 

Detailed Description

Webcam capture options.

Options for selecting and configuring webcam devices, test patterns, and device listing.

Author
Zachary Fogg me@zf.nosp@m.o.gg
Date
January 2026

Definition in file options/registry/webcam.c.

Variable Documentation

◆ g_webcam_entries

const registry_entry_t g_webcam_entries[]

Definition at line 19 of file options/registry/webcam.c.

19 {
20 // WEBCAM GROUP (client, mirror, discovery)
21 {"webcam-index",
22 'c',
23 OPTION_TYPE_INT,
24 offsetof(options_t, webcam_index),
25 &default_webcam_index_value,
26 sizeof(unsigned short int),
27 "Webcam device index to use for video input.",
28 "WEBCAM",
29 NULL,
30 false,
31 "ASCII_CHAT_WEBCAM_INDEX",
32 NULL,
33 NULL,
34 false,
35 false,
36 OPTION_MODE_CLIENT | OPTION_MODE_MIRROR | OPTION_MODE_DISCOVERY,
37 {.numeric_range = {0, 10, 1}, .examples = g_webcam_examples, .input_type = OPTION_INPUT_NUMERIC},
38 NULL},
39 {"test-pattern",
40 '\0',
41 OPTION_TYPE_BOOL,
42 offsetof(options_t, test_pattern),
43 &default_test_pattern_value,
44 sizeof(bool),
45 "Use test pattern instead of webcam.",
46 "WEBCAM",
47 NULL,
48 false,
49 "WEBCAM_DISABLED",
50 NULL,
51 NULL,
52 false,
53 false,
54 OPTION_MODE_CLIENT | OPTION_MODE_MIRROR | OPTION_MODE_DISCOVERY,
55 {0},
56 NULL},
57 {"list-webcams",
58 '\0',
59 OPTION_TYPE_ACTION,
60 0,
61 NULL,
62 0,
63 "List available webcam devices by index and exit.",
64 "WEBCAM",
65 NULL,
66 false,
67 NULL,
68 NULL,
69 NULL,
70 false,
71 false,
72 OPTION_MODE_BINARY,
73 {0},
74 NULL},
75
76 REGISTRY_TERMINATOR()};
const char * g_webcam_examples[]
Definition metadata.c:144
#define bool
Definition stdbool.h:22