Commit 92a2d12a authored by Clément Bœsch's avatar Clément Bœsch

lavfi/overlay: remove do_blend forward declaration.

parent ae573824
...@@ -107,22 +107,6 @@ typedef struct { ...@@ -107,22 +107,6 @@ typedef struct {
AVExpr *x_pexpr, *y_pexpr; AVExpr *x_pexpr, *y_pexpr;
} OverlayContext; } OverlayContext;
// TODO: remove forward declaration
static AVFrame *do_blend(AVFilterContext *ctx, AVFrame *mainpic, const AVFrame *second);
static av_cold int init(AVFilterContext *ctx)
{
OverlayContext *s = ctx->priv;
if (s->allow_packed_rgb) {
av_log(ctx, AV_LOG_WARNING,
"The rgb option is deprecated and is overriding the format option, use format instead\n");
s->format = OVERLAY_FORMAT_RGB;
}
s->dinput.process = do_blend;
return 0;
}
static av_cold void uninit(AVFilterContext *ctx) static av_cold void uninit(AVFilterContext *ctx)
{ {
OverlayContext *s = ctx->priv; OverlayContext *s = ctx->priv;
...@@ -579,6 +563,19 @@ static int request_frame(AVFilterLink *outlink) ...@@ -579,6 +563,19 @@ static int request_frame(AVFilterLink *outlink)
return ff_dualinput_request_frame(&s->dinput, outlink); return ff_dualinput_request_frame(&s->dinput, outlink);
} }
static av_cold int init(AVFilterContext *ctx)
{
OverlayContext *s = ctx->priv;
if (s->allow_packed_rgb) {
av_log(ctx, AV_LOG_WARNING,
"The rgb option is deprecated and is overriding the format option, use format instead\n");
s->format = OVERLAY_FORMAT_RGB;
}
s->dinput.process = do_blend;
return 0;
}
#define OFFSET(x) offsetof(OverlayContext, x) #define OFFSET(x) offsetof(OverlayContext, x)
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment