aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_tile.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-06-10 10:40:33 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-06-10 10:40:33 +0200
commitc8428a0d06de6732c0a834aa825a142ce93869bf (patch)
tree4f623f41ee5c73d19711559fe24cd10492e7baec /libavfilter/vf_tile.c
parent7b993c4a516f9eb94f72f86831eef2fdd8524ba5 (diff)
downloadffmpeg-c8428a0d06de6732c0a834aa825a142ce93869bf.tar.gz
vf_tile: update deprecated functions.
Diffstat (limited to 'libavfilter/vf_tile.c')
-rw-r--r--libavfilter/vf_tile.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libavfilter/vf_tile.c b/libavfilter/vf_tile.c
index c4d5f9c2c9..6ae787d930 100644
--- a/libavfilter/vf_tile.c
+++ b/libavfilter/vf_tile.c
@@ -26,6 +26,8 @@
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "drawutils.h"
+#include "formats.h"
+#include "video.h"
typedef struct {
unsigned w, h;
@@ -57,7 +59,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
static int query_formats(AVFilterContext *ctx)
{
- avfilter_set_common_pixel_formats(ctx, ff_draw_supported_pixel_formats(0));
+ ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
return 0;
}
@@ -106,7 +108,7 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
avfilter_copy_buffer_ref_props(outlink->out_buf, picref);
outlink->out_buf->video->w = outlink->w;
outlink->out_buf->video->h = outlink->h;
- avfilter_start_frame(outlink, outlink->out_buf);
+ ff_start_frame(outlink, outlink->out_buf);
}
static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)
@@ -145,8 +147,8 @@ static void end_last_frame(AVFilterContext *ctx)
while (tile->current < tile->w * tile->h)
draw_blank_frame(ctx);
- avfilter_draw_slice(outlink, 0, outlink->out_buf->video->h, 1);
- avfilter_end_frame(outlink);
+ ff_draw_slice(outlink, 0, outlink->out_buf->video->h, 1);
+ ff_end_frame(outlink);
tile->current = 0;
}