ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
options/registry/webcam.c
Go to the documentation of this file.
1
15
16// ============================================================================
17// WEBCAM CATEGORY - Webcam capture options
18// ============================================================================
20 // WEBCAM GROUP (client, mirror, discovery)
21 {"webcam-index",
22 'c',
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,
37 {.numeric_range = {0, 10, 1}, .examples = g_webcam_examples, .input_type = OPTION_INPUT_NUMERIC},
38 NULL},
39 {"test-pattern",
40 '\0',
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,
55 {0},
56 NULL},
57 {"list-webcams",
58 '\0',
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,
73 {0},
74 NULL},
75
@ OPTION_INPUT_NUMERIC
Numeric value with optional min/max/step.
Definition builder.h:179
@ OPTION_TYPE_INT
Integer value (–count 42)
Definition builder.h:163
@ OPTION_TYPE_ACTION
Action that executes and may exit (–list-webcams, etc.)
Definition builder.h:167
@ OPTION_TYPE_BOOL
Boolean flag (–flag, no value)
Definition builder.h:162
@ OPTION_MODE_BINARY
Binary-level options (parsed before mode detection)
@ OPTION_MODE_CLIENT
Client mode (bit 1)
@ OPTION_MODE_DISCOVERY
Discovery mode (bit 4)
@ OPTION_MODE_MIRROR
Mirror mode (bit 2)
const char * g_webcam_examples[]
Definition metadata.c:186
Extern declarations for shared metadata arrays.
Shared structures and macros for registry implementation.
#define REGISTRY_TERMINATOR()
Initialize a terminator entry (sentinel value for array end) Uses designated initializers to properly...
const registry_entry_t g_webcam_entries[]
#define bool
Definition stdbool.h:61
Consolidated options structure.
Registry entry - stores option definition with mode bitmask and metadata.