From 84b9fbe05578c8b4058e72bb0b203665a446a95a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 12 Jun 2012 19:57:57 +0200 Subject: lavfi: add avfilter_pad_get_type() and avfilter_pad_get_name(). This will allow making AVFilterPad opaque for the calling apps, since those are the only two fields that can be useful to the users. --- libavfilter/avfilter.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'libavfilter/avfilter.h') diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 7fbc160cbe..7ee18fbce6 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -359,6 +359,28 @@ struct AVFilterPad { int (*config_props)(AVFilterLink *link); }; +/** + * Get the name of an AVFilterPad. + * + * @param pads an array of AVFilterPads + * @param pad_idx index of the pad in the array it; is the caller's + * responsibility to ensure the index is valid + * + * @return name of the pad_idx'th pad in pads + */ +const char *avfilter_pad_get_name(AVFilterPad *pads, int pad_idx); + +/** + * Get the type of an AVFilterPad. + * + * @param pads an array of AVFilterPads + * @param pad_idx index of the pad in the array; it is the caller's + * responsibility to ensure the index is valid + * + * @return type of the pad_idx'th pad in pads + */ +enum AVMediaType avfilter_pad_get_type(AVFilterPad *pads, int pad_idx); + #if FF_API_FILTERS_PUBLIC /** default handler for start_frame() for video inputs */ attribute_deprecated -- cgit v1.2.3