History

Cosmetics: rearrange functions to simplify ifdeffery

Originally committed as revision 22576 to svn://svn.ffmpeg.org/ffmpeg/trunk

Bobby Bingham committed 16 years ago

Commit 55fd1bb1 parent ad8eede1 file · +12 −12Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_format.c+12−12
@@ -85,18 +85,6 @@ static AVFilterFormats *make_format_list(FormatContext *format, int flag) · 84 unmodified lines
8585 return formats;
8686 }
8787
88−static int query_formats_format(AVFilterContext *ctx)
89−{
90− avfilter_set_common_formats(ctx, make_format_list(ctx->priv, 1));
91− return 0;
92−}
93−
94−static int query_formats_noformat(AVFilterContext *ctx)
95−{
96− avfilter_set_common_formats(ctx, make_format_list(ctx->priv, 0));
97− return 0;
98−}
99−
10088 static AVFilterPicRef *get_video_buffer(AVFilterLink *link, int perms,
10189 int w, int h)
10290 {
@@ -118,6 +106,12 @@ static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir) · 15 unmodified lines
118106 avfilter_draw_slice(link->dst->outputs[0], y, h, slice_dir);
119107 }
120108
109+static int query_formats_format(AVFilterContext *ctx)
110+{
111+ avfilter_set_common_formats(ctx, make_format_list(ctx->priv, 1));
112+ return 0;
113+}
114+
121115 AVFilter avfilter_vf_format = {
122116 .name = "format",
123117 .description = "Convert the input video to one of the specified pixel formats.",
@@ -140,6 +134,12 @@ AVFilter avfilter_vf_format = { · 16 unmodified lines
140134 { .name = NULL}},
141135 };
142136
137+static int query_formats_noformat(AVFilterContext *ctx)
138+{
139+ avfilter_set_common_formats(ctx, make_format_list(ctx->priv, 0));
140+ return 0;
141+}
142+
143143 AVFilter avfilter_vf_noformat = {
144144 .name = "noformat",
145145 .description = "Force libavfilter not to use any of the specified pixel formats for the input to the next filter.",

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