History

avfilter/vf_stack: Deduplicate AVClasses

Andreas Rheinhardt committed 5 years ago

Commit 57bc79e1 parent 56d3e841 file · +4 −8Browse files

Unified · Split

libavfilter/vf_stack.c+4−8
@@ -390,6 +390,8 @@ static const AVOption stack_options[] = { · 389 unmodified lines
390 { NULL },390 { NULL },
391};391};
392 392
393AVFILTER_DEFINE_CLASS_EXT(stack, "(h|v)stack", stack_options);
394
393static const AVFilterPad outputs[] = {395static const AVFilterPad outputs[] = {
394 {396 {
395 .name = "default",397 .name = "default",
@@ -400,14 +402,11 @@ static const AVFilterPad outputs[] = { · 4 unmodified lines
400 402
401#if CONFIG_HSTACK_FILTER403#if CONFIG_HSTACK_FILTER
402 404
403#define hstack_options stack_options
404AVFILTER_DEFINE_CLASS(hstack);
405
406const AVFilter ff_vf_hstack = {405const AVFilter ff_vf_hstack = {
407 .name = "hstack",406 .name = "hstack",
408 .description = NULL_IF_CONFIG_SMALL("Stack video inputs horizontally."),407 .description = NULL_IF_CONFIG_SMALL("Stack video inputs horizontally."),
408 .priv_class = &stack_class,
409 .priv_size = sizeof(StackContext),409 .priv_size = sizeof(StackContext),
410 .priv_class = &hstack_class,
411 .query_formats = query_formats,410 .query_formats = query_formats,
412 FILTER_OUTPUTS(outputs),411 FILTER_OUTPUTS(outputs),
413 .init = init,412 .init = init,
@@ -420,14 +419,11 @@ const AVFilter ff_vf_hstack = { · 6 unmodified lines
420 419
421#if CONFIG_VSTACK_FILTER420#if CONFIG_VSTACK_FILTER
422 421
423#define vstack_options stack_options
424AVFILTER_DEFINE_CLASS(vstack);
425
426const AVFilter ff_vf_vstack = {422const AVFilter ff_vf_vstack = {
427 .name = "vstack",423 .name = "vstack",
428 .description = NULL_IF_CONFIG_SMALL("Stack video inputs vertically."),424 .description = NULL_IF_CONFIG_SMALL("Stack video inputs vertically."),
425 .priv_class = &stack_class,
429 .priv_size = sizeof(StackContext),426 .priv_size = sizeof(StackContext),
430 .priv_class = &vstack_class,
431 .query_formats = query_formats,427 .query_formats = query_formats,
432 FILTER_OUTPUTS(outputs),428 FILTER_OUTPUTS(outputs),
433 .init = init,429 .init = init,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t