From 9178235ffb2dc56e3b9a39f4313b2a1248cffd7d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 29 Nov 2012 02:30:11 +0100 Subject: [PATCH] avfilter: mark start_frame/end_frame/draw_slice as deprecated Signed-off-by: Michael Niedermayer --- libavfilter/avfilter.h | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index b456437230..f194d33141 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -274,20 +274,7 @@ struct AVFilterPad { int rej_perms; /** - * Callback called before passing the first slice of a new frame. If - * NULL, the filter layer will default to storing a reference to the - * picture inside the link structure. - * - * The reference given as argument is also available in link->cur_buf. - * It can be stored elsewhere or given away, but then clearing - * link->cur_buf is advised, as it is automatically unreferenced. - * The reference must not be unreferenced before end_frame(), as it may - * still be in use by the automatic copy mechanism. - * - * Input video pads only. - * - * @return >= 0 on success, a negative AVERROR on error. picref will be - * unreferenced by the caller in case of error. + * @deprecated unused */ int (*start_frame)(AVFilterLink *link, AVFilterBufferRef *picref); @@ -309,23 +296,12 @@ struct AVFilterPad { int nb_samples); /** - * Callback called after the slices of a frame are completely sent. If - * NULL, the filter layer will default to releasing the reference stored - * in the link structure during start_frame(). - * - * Input video pads only. - * - * @return >= 0 on success, a negative AVERROR on error. + * @deprecated unused */ int (*end_frame)(AVFilterLink *link); /** - * Slice drawing callback. This is where a filter receives video data - * and should do its processing. - * - * Input video pads only. - * - * @return >= 0 on success, a negative AVERROR on error. + * @deprecated unused */ int (*draw_slice)(AVFilterLink *link, int y, int height, int slice_dir);