static AVFrame *get_video_buffer(AVFilterLink *inlink, int w, int h)

{

    PadContext *s = inlink->dst->priv;



    AVFrame *frame = ff_get_video_buffer(inlink->dst->outputs[0],

                                         w + (s->w - s->in_w),

                                         h + (s->h - s->in_h));

    int plane;



    if (!frame)

        return NULL;



    frame->width  = w;

    frame->height = h;



    for (plane = 0; plane < 4 && frame->data[plane]; plane++) {

        int hsub = s->draw.hsub[plane];

        int vsub = s->draw.vsub[plane];

        frame->data[plane] += (s->x >> hsub) * s->draw.pixelstep[plane] +

                              (s->y >> vsub) * frame->linesize[plane];

    }



    return frame;

}

static AVFrame *get_video_buffer(AVFilterLink *inlink, int w, int h)

{

    PadContext *s = inlink->dst->priv;



    AVFrame *frame = ff_get_video_buffer(inlink->dst->outputs[0],

                                         w + (s->w - s->in_w),

                                         h + (s->h - s->in_h));

    int plane;



    if (!frame)

        return NULL;



    frame->width  = w;

    frame->height = h;



    for (plane = 0; plane < 4 && frame->data[plane]; plane++) {

        int hsub = s->draw.hsub[plane];

        int vsub = s->draw.vsub[plane];

        frame->data[plane] += (s->x >> hsub) * s->draw.pixelstep[plane] +

                              (s->y >> vsub) * frame->linesize[plane];

    }



    return frame;

}

static AVFrame *FUNC_0(AVFilterLink *inlink, int w, int h)

{

    PadContext *s = inlink->dst->priv;



    AVFrame *frame = ff_get_video_buffer(inlink->dst->outputs[0],

                                         w + (s->w - s->in_w),

                                         h + (s->h - s->in_h));

    int VAR_0;



    if (!frame)

        return NULL;



    frame->width  = w;

    frame->height = h;



    for (VAR_0 = 0; VAR_0 < 4 && frame->data[VAR_0]; VAR_0++) {

        int hsub = s->draw.hsub[VAR_0];

        int vsub = s->draw.vsub[VAR_0];

        frame->data[VAR_0] += (s->x >> hsub) * s->draw.pixelstep[VAR_0] +

                              (s->y >> vsub) * frame->linesize[VAR_0];

    }



    return frame;

}

static AVFrame *FUNC_0(AVFilterLink *inlink, int w, int h)
{ PadContext *s = inlink->dst->priv; AVFrame *frame = ff_get_video_buffer(inlink->dst->outputs[0],
w + (s->w - s->in_w),
h + (s->h - s->in_h)); int VAR_0; if (!frame)
return NULL; frame->width  = w; frame->height = h; for (VAR_0 = 0; VAR_0 < 4 && frame->data[VAR_0]; VAR_0++) { int hsub = s->draw.hsub[VAR_0]; int vsub = s->draw.vsub[VAR_0]; frame->data[VAR_0] += (s->x >> hsub) * s->draw.pixelstep[VAR_0] +
(s->y >> vsub) * frame->linesize[VAR_0]; } return frame; }