]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/filters.h
avfilter/af_dcshift: add direct path
[ffmpeg] / libavfilter / filters.h
index 2c78d60e62f486cc137763244b490d589573f5a1..1cbc18158fcfeb7318342a1dabfb0fdaf04178b8 100644 (file)
  */
 
 #include "avfilter.h"
+#include "internal.h"
+
+/**
+ * Special return code when activate() did not do anything.
+ */
+#define FFERROR_NOT_READY FFERRTAG('N','R','D','Y')
 
 /**
  * Mark a filter ready and schedule it for activation.
@@ -134,4 +140,24 @@ int ff_inlink_acknowledge_status(AVFilterLink *link, int *rstatus, int64_t *rpts
  */
 void ff_inlink_request_frame(AVFilterLink *link);
 
+/**
+ * Test if a frame is wanted on an output link.
+ */
+static inline int ff_outlink_frame_wanted(AVFilterLink *link)
+{
+    return link->frame_wanted_out;
+}
+
+/**
+ * Set the status field of a link from the source filter.
+ * The pts should reflect the timestamp of the status change,
+ * in link time base and relative to the frames timeline.
+ * In particular, for AVERROR_EOF, it should reflect the
+ * end time of the last frame.
+ */
+static inline void ff_outlink_set_status(AVFilterLink *link, int status, int64_t pts)
+{
+    ff_avfilter_link_set_in_status(link, status, pts);
+}
+
 #endif /* AVFILTER_FILTERS_H */