History

lavfi: reorder AVFilter fields.

Place related fields together, remove holes, move private fields to the end and mark them as private.

Anton Khirnov committed 14 years ago

Commit 96180801 parent f14e6851 file · +17 −9Browse files

Unified · Split

libavfilter/avfilter.h+17−9
@@ -366,7 +366,22 @@ enum AVMediaType avfilter_pad_get_type(AVFilterPad *pads, int pad_idx); · 365 unmodified lines
366366 typedef struct AVFilter {
367367 const char *name; ///< filter name
368368
369− int priv_size; ///< size of private data to allocate for the filter
369+ /**
370+ * A description for the filter. You should use the
371+ * NULL_IF_CONFIG_SMALL() macro to define it.
372+ */
373+ const char *description;
374+
375+ const AVFilterPad *inputs; ///< NULL terminated list of inputs. NULL if none
376+ const AVFilterPad *outputs; ///< NULL terminated list of outputs. NULL if none
377+
378+ /*****************************************************************
379+ * All fields below this line are not part of the public API. They
380+ * may not be used outside of libavfilter and can be changed and
381+ * removed at will.
382+ * New public fields should be added right above.
383+ *****************************************************************
384+ */
370385
371386 /**
372387 * Filter initialization function. Args contains the user-supplied
@@ -391,14 +406,7 @@ typedef struct AVFilter { · 18 unmodified lines
391406 */
392407 int (*query_formats)(AVFilterContext *);
393408
394− const AVFilterPad *inputs; ///< NULL terminated list of inputs. NULL if none
395− const AVFilterPad *outputs; ///< NULL terminated list of outputs. NULL if none
396−
397− /**
398− * A description for the filter. You should use the
399− * NULL_IF_CONFIG_SMALL() macro to define it.
400− */
401− const char *description;
409+ int priv_size; ///< size of private data to allocate for the filter
402410 } AVFilter;
403411
404412 /** An instance of a 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