aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-06-21 11:48:58 +0200
committerAnton Khirnov <anton@khirnov.net>2012-06-26 13:23:51 +0200
commit961808051222ddb319ce38c0d32caea503cf258c (patch)
treee6ab9cab036441e4b515a25a12e41afba2784677 /libavfilter/avfilter.h
parentf14e685609f033c307aaa3fc02636e0f07a9a245 (diff)
downloadffmpeg-961808051222ddb319ce38c0d32caea503cf258c.tar.gz
lavfi: reorder AVFilter fields.
Place related fields together, remove holes, move private fields to the end and mark them as private.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 9932b128a8..bbbc53ed0f 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -366,7 +366,22 @@ enum AVMediaType avfilter_pad_get_type(AVFilterPad *pads, int pad_idx);
typedef struct AVFilter {
const char *name; ///< filter name
- int priv_size; ///< size of private data to allocate for the filter
+ /**
+ * A description for the filter. You should use the
+ * NULL_IF_CONFIG_SMALL() macro to define it.
+ */
+ const char *description;
+
+ const AVFilterPad *inputs; ///< NULL terminated list of inputs. NULL if none
+ const AVFilterPad *outputs; ///< NULL terminated list of outputs. NULL if none
+
+ /*****************************************************************
+ * All fields below this line are not part of the public API. They
+ * may not be used outside of libavfilter and can be changed and
+ * removed at will.
+ * New public fields should be added right above.
+ *****************************************************************
+ */
/**
* Filter initialization function. Args contains the user-supplied
@@ -391,14 +406,7 @@ typedef struct AVFilter {
*/
int (*query_formats)(AVFilterContext *);
- const AVFilterPad *inputs; ///< NULL terminated list of inputs. NULL if none
- const AVFilterPad *outputs; ///< NULL terminated list of outputs. NULL if none
-
- /**
- * A description for the filter. You should use the
- * NULL_IF_CONFIG_SMALL() macro to define it.
- */
- const char *description;
+ int priv_size; ///< size of private data to allocate for the filter
} AVFilter;
/** An instance of a filter */