avfilter_execute_func *execute;
};
-/** Tell is a format is contained in the provided list terminated by -1. */
+/**
+ * Tell if an integer is contained in the provided -1-terminated list of integers.
+ * This is useful for determining (for instance) if an AVPixelFormat is in an
+ * array of supported formats.
+ *
+ * @param fmt provided format
+ * @param fmts -1-terminated list of formats
+ * @return 1 if present, 0 if absent
+ */
int ff_fmt_is_in(int fmt, const int *fmts);
/* Functions to parse audio format arguments */
* @param log_ctx log context
* @return >= 0 in case of success, a negative AVERROR code on error
*/
+av_warn_unused_result
int ff_parse_pixel_format(enum AVPixelFormat *ret, const char *arg, void *log_ctx);
/**
* @param log_ctx log context
* @return >= 0 in case of success, a negative AVERROR code on error
*/
+av_warn_unused_result
int ff_parse_sample_rate(int *ret, const char *arg, void *log_ctx);
/**
* @param log_ctx log context
* @return >= 0 in case of success, a negative AVERROR code on error
*/
+av_warn_unused_result
int ff_parse_time_base(AVRational *ret, const char *arg, void *log_ctx);
/**
* @param log_ctx log context
* @return >= 0 in case of success, a negative AVERROR code on error
*/
+av_warn_unused_result
int ff_parse_sample_format(int *ret, const char *arg, void *log_ctx);
/**
* @param log_ctx log context
* @return >= 0 in case of success, a negative AVERROR code on error
*/
+av_warn_unused_result
int ff_parse_channel_layout(int64_t *ret, int *nret, const char *arg,
void *log_ctx);