static void hscroll(AVCodecContext *avctx)

{

    AnsiContext *s = avctx->priv_data;

    int i;



    if (s->y < avctx->height - s->font_height) {

        s->y += s->font_height;

        return;

    }



    i = 0;

    for (; i < avctx->height - s->font_height; i++)

        memcpy(s->frame->data[0] + i * s->frame->linesize[0],

               s->frame->data[0] + (i + s->font_height) * s->frame->linesize[0],

               avctx->width);

    for (; i < avctx->height; i++)

        memset(s->frame->data[0] + i * s->frame->linesize[0],

            DEFAULT_BG_COLOR, avctx->width);

}

static void hscroll(AVCodecContext *avctx)

{

    AnsiContext *s = avctx->priv_data;

    int i;



    if (s->y < avctx->height - s->font_height) {

        s->y += s->font_height;

        return;

    }



    i = 0;

    for (; i < avctx->height - s->font_height; i++)

        memcpy(s->frame->data[0] + i * s->frame->linesize[0],

               s->frame->data[0] + (i + s->font_height) * s->frame->linesize[0],

               avctx->width);

    for (; i < avctx->height; i++)

        memset(s->frame->data[0] + i * s->frame->linesize[0],

            DEFAULT_BG_COLOR, avctx->width);

}

static void FUNC_0(AVCodecContext *VAR_0)

{

    AnsiContext *s = VAR_0->priv_data;

    int VAR_1;



    if (s->y < VAR_0->height - s->font_height) {

        s->y += s->font_height;

        return;

    }



    VAR_1 = 0;

    for (; VAR_1 < VAR_0->height - s->font_height; VAR_1++)

        memcpy(s->frame->data[0] + VAR_1 * s->frame->linesize[0],

               s->frame->data[0] + (VAR_1 + s->font_height) * s->frame->linesize[0],

               VAR_0->width);

    for (; VAR_1 < VAR_0->height; VAR_1++)

        memset(s->frame->data[0] + VAR_1 * s->frame->linesize[0],

            DEFAULT_BG_COLOR, VAR_0->width);

}

static void FUNC_0(AVCodecContext *VAR_0)
{ AnsiContext *s = VAR_0->priv_data; int VAR_1; if (s->y < VAR_0->height - s->font_height) { s->y += s->font_height; return; } VAR_1 = 0; for (; VAR_1 < VAR_0->height - s->font_height; VAR_1++) memcpy(s->frame->data[0] + VAR_1 * s->frame->linesize[0],
s->frame->data[0] + (VAR_1 + s->font_height) * s->frame->linesize[0],
VAR_0->width); for (; VAR_1 < VAR_0->height; VAR_1++) memset(s->frame->data[0] + VAR_1 * s->frame->linesize[0],
DEFAULT_BG_COLOR, VAR_0->width); }