History

avfilter/vf_weave: Deduplicate AVClasses

Andreas Rheinhardt committed 5 years ago

Commit f8047181 parent 57bc79e1 file · +2 −5Browse files

Unified · Split

libavfilter/vf_weave.c+2−5
@@ -47,7 +47,7 @@ static const AVOption weave_options[] = { · 46 unmodified lines
47 { NULL }47 { NULL }
48};48};
49 49
50AVFILTER_DEFINE_CLASS(weave);50AVFILTER_DEFINE_CLASS_EXT(weave, "(double)weave", weave_options);
51 51
52static int query_formats(AVFilterContext *ctx)52static int query_formats(AVFilterContext *ctx)
53{53{
@@ -210,14 +210,11 @@ static av_cold int init(AVFilterContext *ctx) · 156 unmodified lines
210 return 0;210 return 0;
211}211}
212 212
213#define doubleweave_options weave_options
214AVFILTER_DEFINE_CLASS(doubleweave);
215
216const AVFilter ff_vf_doubleweave = {213const AVFilter ff_vf_doubleweave = {
217 .name = "doubleweave",214 .name = "doubleweave",
218 .description = NULL_IF_CONFIG_SMALL("Weave input video fields into double number of frames."),215 .description = NULL_IF_CONFIG_SMALL("Weave input video fields into double number of frames."),
216 .priv_class = &weave_class,
219 .priv_size = sizeof(WeaveContext),217 .priv_size = sizeof(WeaveContext),
220 .priv_class = &doubleweave_class,
221 .query_formats = query_formats,218 .query_formats = query_formats,
222 .init = init,219 .init = init,
223 .uninit = uninit,220 .uninit = uninit,

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