static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)

{

    IlContext *il = inlink->dst->priv;

    AVFilterLink *outlink = inlink->dst->outputs[0];

    AVFilterBufferRef *out;

    int ret;



    out = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);

    if (!out) {

        avfilter_unref_bufferp(&inpicref);

        return AVERROR(ENOMEM);

    }

    avfilter_copy_buffer_ref_props(out, inpicref);



    interleave(out->data[0], inpicref->data[0],

               il->width, inlink->h,

               out->linesize[0], inpicref->linesize[0],

               il->luma_mode, il->luma_swap);



    if (il->nb_planes > 2) {

        interleave(out->data[1], inpicref->data[1],

                   il->chroma_width, il->chroma_height,

                   out->linesize[1], inpicref->linesize[1],

                   il->chroma_mode, il->chroma_swap);

        interleave(out->data[2], inpicref->data[2],

                   il->chroma_width, il->chroma_height,

                   out->linesize[2], inpicref->linesize[2],

                   il->chroma_mode, il->chroma_swap);

    }

    if (il->nb_planes == 2 && il->nb_planes == 4) {

        int comp = il->nb_planes - 1;

        interleave(out->data[comp], inpicref->data[comp],

                   il->width, inlink->h,

                   out->linesize[comp], inpicref->linesize[comp],

                   il->alpha_mode, il->alpha_swap);

    }



    ret = ff_filter_frame(outlink, out);

    avfilter_unref_bufferp(&inpicref);

    return ret;

}

static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)

{

    IlContext *il = inlink->dst->priv;

    AVFilterLink *outlink = inlink->dst->outputs[0];

    AVFilterBufferRef *out;

    int ret;



    out = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);

    if (!out) {

        avfilter_unref_bufferp(&inpicref);

        return AVERROR(ENOMEM);

    }

    avfilter_copy_buffer_ref_props(out, inpicref);



    interleave(out->data[0], inpicref->data[0],

               il->width, inlink->h,

               out->linesize[0], inpicref->linesize[0],

               il->luma_mode, il->luma_swap);



    if (il->nb_planes > 2) {

        interleave(out->data[1], inpicref->data[1],

                   il->chroma_width, il->chroma_height,

                   out->linesize[1], inpicref->linesize[1],

                   il->chroma_mode, il->chroma_swap);

        interleave(out->data[2], inpicref->data[2],

                   il->chroma_width, il->chroma_height,

                   out->linesize[2], inpicref->linesize[2],

                   il->chroma_mode, il->chroma_swap);

    }

    if (il->nb_planes == 2 && il->nb_planes == 4) {

        int comp = il->nb_planes - 1;

        interleave(out->data[comp], inpicref->data[comp],

                   il->width, inlink->h,

                   out->linesize[comp], inpicref->linesize[comp],

                   il->alpha_mode, il->alpha_swap);

    }



    ret = ff_filter_frame(outlink, out);

    avfilter_unref_bufferp(&inpicref);

    return ret;

}

    int ret;                il->width, inlink->h,     if (il->nb_planes > 2) {         interleave(out->data[1], inpicref->data[1],                    il->chroma_width, il->chroma_height,                    out->linesize[1], inpicref->linesize[1],                    il->chroma_mode, il->chroma_swap);         interleave(out->data[2], inpicref->data[2],                    il->chroma_width, il->chroma_height,                    out->linesize[2], inpicref->linesize[2],     if (il->nb_planes == 2 && il->nb_planes == 4) {                    il->width, inlink->h,
static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)

{

    IlContext *il = VAR_0->dst->priv;

    AVFilterLink *outlink = VAR_0->dst->outputs[0];

    AVFilterBufferRef *out;

    int VAR_2;



    out = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);

    if (!out) {

        avfilter_unref_bufferp(&VAR_1);

        return AVERROR(ENOMEM);

    }

    avfilter_copy_buffer_ref_props(out, VAR_1);



    interleave(out->data[0], VAR_1->data[0],

               il->width, VAR_0->h,

               out->linesize[0], VAR_1->linesize[0],

               il->luma_mode, il->luma_swap);



    if (il->nb_planes > 2) {

        interleave(out->data[1], VAR_1->data[1],

                   il->chroma_width, il->chroma_height,

                   out->linesize[1], VAR_1->linesize[1],

                   il->chroma_mode, il->chroma_swap);

        interleave(out->data[2], VAR_1->data[2],

                   il->chroma_width, il->chroma_height,

                   out->linesize[2], VAR_1->linesize[2],

                   il->chroma_mode, il->chroma_swap);

    }

    if (il->nb_planes == 2 && il->nb_planes == 4) {

        int VAR_3 = il->nb_planes - 1;

        interleave(out->data[VAR_3], VAR_1->data[VAR_3],

                   il->width, VAR_0->h,

                   out->linesize[VAR_3], VAR_1->linesize[VAR_3],

                   il->alpha_mode, il->alpha_swap);

    }



    VAR_2 = ff_filter_frame(outlink, out);

    avfilter_unref_bufferp(&VAR_1);

    return VAR_2;

}

static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)
{ IlContext *il = VAR_0->dst->priv; AVFilterLink *outlink = VAR_0->dst->outputs[0]; AVFilterBufferRef *out; int VAR_2; out = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h); if (!out) { avfilter_unref_bufferp(&VAR_1); return AVERROR(ENOMEM); } avfilter_copy_buffer_ref_props(out, VAR_1); interleave(out->data[0], VAR_1->data[0],
il->width, VAR_0->h,
out->linesize[0], VAR_1->linesize[0],
il->luma_mode, il->luma_swap); if (il->nb_planes > 2) { interleave(out->data[1], VAR_1->data[1],
il->chroma_width, il->chroma_height,
out->linesize[1], VAR_1->linesize[1],
il->chroma_mode, il->chroma_swap); interleave(out->data[2], VAR_1->data[2],
il->chroma_width, il->chroma_height,
out->linesize[2], VAR_1->linesize[2],
il->chroma_mode, il->chroma_swap); } if (il->nb_planes == 2 && il->nb_planes == 4) { int VAR_3 = il->nb_planes - 1; interleave(out->data[VAR_3], VAR_1->data[VAR_3],
il->width, VAR_0->h,
out->linesize[VAR_3], VAR_1->linesize[VAR_3],
il->alpha_mode, il->alpha_swap); } VAR_2 = ff_filter_frame(outlink, out); avfilter_unref_bufferp(&VAR_1); return VAR_2; }