Lines Matching defs:pattern
56 char *pattern;
63 { "filename", "read initial pattern from file", OFFSET(filename), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS },
64 { "f", "read initial pattern from file", OFFSET(filename), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS },
65 { "pattern", "set initial pattern", OFFSET(pattern), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS },
66 { "p", "set initial pattern", OFFSET(pattern), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS },
76 { "scroll", "scroll pattern downward", OFFSET(scroll), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1, FLAGS },
109 w = strlen(cellauto->pattern);
130 p = cellauto->pattern;
153 cellauto->pattern = av_malloc(cellauto->file_bufsize + 1);
154 if (!cellauto->pattern)
156 memcpy(cellauto->pattern, cellauto->file_buf, cellauto->file_bufsize);
157 cellauto->pattern[cellauto->file_bufsize] = 0;
167 if (!cellauto->w && !cellauto->filename && !cellauto->pattern)
170 if (cellauto->filename && cellauto->pattern) {
171 av_log(ctx, AV_LOG_ERROR, "Only one of the filename or pattern options can be used\n");
178 } else if (cellauto->pattern) {
214 av_freep(&cellauto->pattern);
329 .description = NULL_IF_CONFIG_SMALL("Create pattern generated by an elementary cellular automaton."),