]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/avcodec.h
vf_scale: support dynamically changing input parameters.
[ffmpeg] / libavfilter / avcodec.h
index 1aa8b9c6549ed5fabaa11e96200f6fdcdc1944b6..9636cfd1bc3943e4591c182044f18c5423d85492 100644 (file)
 /**
  * Copy the frame properties of src to dst, without copying the actual
  * image data.
+ *
+ * @return 0 on success, a negative number on error.
  */
 int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src);
 
+/**
+ * Copy the frame properties and data pointers of src to dst, without copying
+ * the actual data.
+ *
+ * @return 0 on success, a negative number on error.
+ */
+int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src);
+
 /**
  * Create and return a picref reference from the data and properties
  * contained in frame.
@@ -89,6 +99,18 @@ int avfilter_fill_frame_from_video_buffer_ref(AVFrame *frame,
 int avfilter_fill_frame_from_buffer_ref(AVFrame *frame,
                                         const AVFilterBufferRef *ref);
 
+/**
+ * Add frame data to buffer_src.
+ *
+ * @param buffer_src  pointer to a buffer source context
+ * @param frame       a frame, or NULL to mark EOF
+ * @param flags       a combination of AV_BUFFERSRC_FLAG_*
+ * @return            >= 0 in case of success, a negative AVERROR code
+ *                    in case of failure
+ */
+int av_buffersrc_add_frame(AVFilterContext *buffer_src,
+                           const AVFrame *frame, int flags);
+
 /**
  * Add frame data to buffer_src.
  *