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
390390 { NULL },
391391 };
392392
393+AVFILTER_DEFINE_CLASS_EXT(stack, "(h|v)stack", stack_options);
394+
393395 static const AVFilterPad outputs[] = {
394396 {
395397 .name = "default",
@@ -400,14 +402,11 @@ static const AVFilterPad outputs[] = { · 4 unmodified lines
400402
401403 #if CONFIG_HSTACK_FILTER
402404
403−#define hstack_options stack_options
404−AVFILTER_DEFINE_CLASS(hstack);
405−
406405 const AVFilter ff_vf_hstack = {
407406 .name = "hstack",
408407 .description = NULL_IF_CONFIG_SMALL("Stack video inputs horizontally."),
408+ .priv_class = &stack_class,
409409 .priv_size = sizeof(StackContext),
410− .priv_class = &hstack_class,
411410 .query_formats = query_formats,
412411 FILTER_OUTPUTS(outputs),
413412 .init = init,
@@ -420,14 +419,11 @@ const AVFilter ff_vf_hstack = { · 6 unmodified lines
420419
421420 #if CONFIG_VSTACK_FILTER
422421
423−#define vstack_options stack_options
424−AVFILTER_DEFINE_CLASS(vstack);
425−
426422 const AVFilter ff_vf_vstack = {
427423 .name = "vstack",
428424 .description = NULL_IF_CONFIG_SMALL("Stack video inputs vertically."),
425+ .priv_class = &stack_class,
429426 .priv_size = sizeof(StackContext),
430− .priv_class = &vstack_class,
431427 .query_formats = query_formats,
432428 FILTER_OUTPUTS(outputs),
433429 .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