diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-05-30 10:31:48 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-06-05 09:38:08 +0200 |
commit | fa417fcd278a003530fe6bf851f8194177a5e71f (patch) | |
tree | 069763a1c37f10a7d578d3548141c85a130723aa /libavfilter/avfilter.c | |
parent | b74a1da49db5ebed51aceae6cacc2329288a92c1 (diff) | |
download | ffmpeg-fa417fcd278a003530fe6bf851f8194177a5e71f.tar.gz |
lavfi: make avfilter_insert_pad and pals private on next bump.
They are only useful inside filters and we don't allow user filters for
now.
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 8594b8365c..6b73e48d81 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -44,9 +44,9 @@ const char *avfilter_license(void) return LICENSE_PREFIX LIBAV_LICENSE + sizeof(LICENSE_PREFIX) - 1; } -void avfilter_insert_pad(unsigned idx, unsigned *count, size_t padidx_off, - AVFilterPad **pads, AVFilterLink ***links, - AVFilterPad *newpad) +void ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off, + AVFilterPad **pads, AVFilterLink ***links, + AVFilterPad *newpad) { unsigned i; @@ -426,4 +426,22 @@ int avfilter_default_config_output_link(AVFilterLink *link) { return 0; } +void avfilter_insert_pad(unsigned idx, unsigned *count, size_t padidx_off, + AVFilterPad **pads, AVFilterLink ***links, + AVFilterPad *newpad) +{ + ff_insert_pad(idx, count, padidx_off, pads, links, newpad); +} +void avfilter_insert_inpad(AVFilterContext *f, unsigned index, + AVFilterPad *p) +{ + ff_insert_pad(index, &f->input_count, offsetof(AVFilterLink, dstpad), + &f->input_pads, &f->inputs, p); +} +void avfilter_insert_outpad(AVFilterContext *f, unsigned index, + AVFilterPad *p) +{ + ff_insert_pad(index, &f->output_count, offsetof(AVFilterLink, srcpad), + &f->output_pads, &f->outputs, p); +} #endif |