static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)

{

    AVFilterContext *ctx = inlink->dst;

    AVFilterLink *outlink = ctx->outputs[0];

    AVFilterBufferRef *outpicref = outlink->out_buf;

    OverlayContext *over = ctx->priv;



    if (over->overpicref &&

        !(over->x >= outpicref->video->w || over->y >= outpicref->video->h ||

          y+h < over->y || y >= over->y + over->overpicref->video->h)) {

        blend_slice(ctx, outpicref, over->overpicref, over->x, over->y,

                    over->overpicref->video->w, over->overpicref->video->h,

                    y, outpicref->video->w, h);

    }

    avfilter_draw_slice(outlink, y, h, slice_dir);

}

static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)

{

    AVFilterContext *ctx = inlink->dst;

    AVFilterLink *outlink = ctx->outputs[0];

    AVFilterBufferRef *outpicref = outlink->out_buf;

    OverlayContext *over = ctx->priv;



    if (over->overpicref &&

        !(over->x >= outpicref->video->w || over->y >= outpicref->video->h ||

          y+h < over->y || y >= over->y + over->overpicref->video->h)) {

        blend_slice(ctx, outpicref, over->overpicref, over->x, over->y,

                    over->overpicref->video->w, over->overpicref->video->h,

                    y, outpicref->video->w, h);

    }

    avfilter_draw_slice(outlink, y, h, slice_dir);

}

    AVFilterContext *ctx = inlink->dst;     OverlayContext *over = ctx->priv;     AVFilterContext *ctx = inlink->dst;     OverlayContext *over = ctx->priv; static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)     AVFilterContext *ctx = inlink->dst;         !(over->x >= outpicref->video->w || over->y >= outpicref->video->h ||           y+h < over->y || y >= over->y + over->overpicref->video->h)) {
static void FUNC_0(AVFilterLink *VAR_0, int VAR_1, int VAR_2, int VAR_3)

{

    AVFilterContext *ctx = VAR_0->dst;

    AVFilterLink *outlink = ctx->outputs[0];

    AVFilterBufferRef *outpicref = outlink->out_buf;

    OverlayContext *over = ctx->priv;



    if (over->overpicref &&

        !(over->x >= outpicref->video->w || over->VAR_1 >= outpicref->video->VAR_2 ||

          VAR_1+VAR_2 < over->VAR_1 || VAR_1 >= over->VAR_1 + over->overpicref->video->VAR_2)) {

        blend_slice(ctx, outpicref, over->overpicref, over->x, over->VAR_1,

                    over->overpicref->video->w, over->overpicref->video->VAR_2,

                    VAR_1, outpicref->video->w, VAR_2);

    }

    avfilter_draw_slice(outlink, VAR_1, VAR_2, VAR_3);

}

static void FUNC_0(AVFilterLink *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{ AVFilterContext *ctx = VAR_0->dst; AVFilterLink *outlink = ctx->outputs[0]; AVFilterBufferRef *outpicref = outlink->out_buf; OverlayContext *over = ctx->priv; if (over->overpicref &&
!(over->x >= outpicref->video->w || over->VAR_1 >= outpicref->video->VAR_2 ||
VAR_1+VAR_2 < over->VAR_1 || VAR_1 >= over->VAR_1 + over->overpicref->video->VAR_2)) { blend_slice(ctx, outpicref, over->overpicref, over->x, over->VAR_1,
over->overpicref->video->w, over->overpicref->video->VAR_2,
VAR_1, outpicref->video->w, VAR_2); } avfilter_draw_slice(outlink, VAR_1, VAR_2, VAR_3); }