diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-16 20:48:00 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-17 21:20:59 +0200 |
commit | 515e7fbce1cc555d9eaadad798d3d968ff468987 (patch) | |
tree | 58e67a3e4d10e2a9af1a6f22170363acb5313df4 /libavfilter/internal.h | |
parent | 1e35744a4ce57925d5134cdd1f1e704e9e211270 (diff) | |
download | ffmpeg-515e7fbce1cc555d9eaadad798d3d968ff468987.tar.gz |
avfilter/avfilter: Remove unused feature to add pads in the middle
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r-- | libavfilter/internal.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h index af8103f8aa..a0aa32af4d 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -226,34 +226,29 @@ void ff_tlog_link(void *ctx, AVFilterLink *link, int end); /** * Insert a new pad. * - * @param idx Insertion point. Pad is inserted at the end if this point - * is beyond the end of the list of pads. * @param count Pointer to the number of pads in the list - * @param padidx_off Offset within an AVFilterLink structure to the element - * to increment when inserting a new pad causes link - * numbering to change * @param pads Pointer to the pointer to the beginning of the list of pads * @param links Pointer to the pointer to the beginning of the list of links * @param newpad The new pad to add. A copy is made when adding. * @return >= 0 in case of success, a negative AVERROR code on error */ -int ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off, +int ff_append_pad(unsigned *count, AVFilterPad **pads, AVFilterLink ***links, AVFilterPad *newpad); /** Insert a new input pad for the filter. */ -static inline int ff_insert_inpad(AVFilterContext *f, unsigned index, +static inline int ff_append_inpad(AVFilterContext *f, AVFilterPad *p) { - return ff_insert_pad(index, &f->nb_inputs, offsetof(AVFilterLink, dstpad), + return ff_append_pad(&f->nb_inputs, &f->input_pads, &f->inputs, p); } /** Insert a new output pad for the filter. */ -static inline int ff_insert_outpad(AVFilterContext *f, unsigned index, +static inline int ff_append_outpad(AVFilterContext *f, AVFilterPad *p) { - return ff_insert_pad(index, &f->nb_outputs, offsetof(AVFilterLink, srcpad), + return ff_append_pad(&f->nb_outputs, &f->output_pads, &f->outputs, p); } |