From db6e960450eb32674fdd10244a491f4d116ff67b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 13 Dec 2012 03:35:53 +0100 Subject: [PATCH] lavfi: drop ff_null_start_frame/end_frame/draw_slice. The functions have become unused Signed-off-by: Michael Niedermayer --- libavfilter/video.c | 18 ------------------ libavfilter/video.h | 8 -------- 2 files changed, 26 deletions(-) diff --git a/libavfilter/video.c b/libavfilter/video.c index 46c4190a54..9bbf6f9971 100644 --- a/libavfilter/video.c +++ b/libavfilter/video.c @@ -159,14 +159,6 @@ AVFilterBufferRef *ff_get_video_buffer(AVFilterLink *link, int perms, int w, int return ret; } -int ff_null_start_frame(AVFilterLink *link, AVFilterBufferRef *picref) -{ - AVFilterBufferRef *buf_out = avfilter_ref_buffer(picref, ~0); - if (!buf_out) - return AVERROR(ENOMEM); - return ff_start_frame(link->dst->outputs[0], buf_out); -} - // for filters that support (but don't require) outpic==inpic int ff_inplace_start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) { @@ -315,11 +307,6 @@ int ff_start_frame(AVFilterLink *link, AVFilterBufferRef *picref) return ret; } -int ff_null_end_frame(AVFilterLink *link) -{ - return ff_end_frame(link->dst->outputs[0]); -} - static int default_end_frame(AVFilterLink *inlink) { AVFilterLink *outlink = NULL; @@ -358,11 +345,6 @@ int ff_end_frame(AVFilterLink *link) return ret; } -int ff_null_draw_slice(AVFilterLink *link, int y, int h, int slice_dir) -{ - return ff_draw_slice(link->dst->outputs[0], y, h, slice_dir); -} - static int default_draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir) { AVFilterLink *outlink = NULL; diff --git a/libavfilter/video.h b/libavfilter/video.h index c677f30047..4208944465 100644 --- a/libavfilter/video.h +++ b/libavfilter/video.h @@ -43,9 +43,6 @@ AVFilterBufferRef *ff_get_video_buffer(AVFilterLink *link, int perms, int w, int h); int ff_inplace_start_frame(AVFilterLink *link, AVFilterBufferRef *picref); -int ff_null_start_frame(AVFilterLink *link, AVFilterBufferRef *picref); -int ff_null_draw_slice(AVFilterLink *link, int y, int h, int slice_dir); -int ff_null_end_frame(AVFilterLink *link); /** * Notify the next filter of the start of a frame. @@ -61,11 +58,6 @@ int ff_null_end_frame(AVFilterLink *link); */ int ff_start_frame(AVFilterLink *link, AVFilterBufferRef *picref); -/** - * Pass video frame along and keep an internal reference for later use. - */ -int ff_null_start_frame_keep_ref(AVFilterLink *inlink, AVFilterBufferRef *picref); - /** * Notify the next filter that the current frame has finished. *