57#define MOD_NAME "[disrupt c. f.] "
70 printf(
"Disrupts video frame flow\n\n");
71 printf(
"disrupt usage:\n");
72 printf(
"\tdisrupt:jitter[=<ms>]\n");
74 printf(
"\tjitter - add random jitter to frame timing (value in ms - maximal delay)\n");
81 if (cfg == NULL || strlen(cfg) == 0 || strcmp(cfg,
"help") == 0) {
83 return cfg && strcmp(cfg,
"help") == 0 ? 1 : -1;
88 if (strstr(cfg,
"jitter") == cfg) {
89 if (strchr(cfg,
'=') != NULL) {
90 s->
jitter_ms = atof(strchr(cfg,
'=') + 1);
#define CAPTURE_FILTER_ABI_VERSION
int color_printf(const char *format,...)
static struct video_frame * filter(void *state, struct video_frame *in)
static const struct capture_filter_info capture_filter_disrupt
static void done(void *state)
static int init(struct module *parent, const char *cfg, void **state)
@ LIBRARY_CLASS_CAPTURE_FILTER
#define REGISTER_HIDDEN_MODULE(name, info, lclass, abi)
Struct video_frame represents a video frame and contains video description.
int usleep(unsigned int usec)
This is an umbrella header for video functions.