static void draw_char(AVCodecContext *avctx, int c)

{

    AnsiContext *s = avctx->priv_data;

    int fg = s->fg;

    int bg = s->bg;



    if ((s->attributes & ATTR_BOLD))

        fg += 8;

    if ((s->attributes & ATTR_BLINK))

        bg += 8;

    if ((s->attributes & ATTR_REVERSE))

        FFSWAP(int, fg, bg);

    if ((s->attributes & ATTR_CONCEALED))

        fg = bg;

    ff_draw_pc_font(s->frame->data[0] + s->y * s->frame->linesize[0] + s->x,

                    s->frame->linesize[0], s->font, s->font_height, c, fg, bg);

    s->x += FONT_WIDTH;

    if (s->x >= avctx->width) {

        s->x = 0;

        hscroll(avctx);

    }

}

static void draw_char(AVCodecContext *avctx, int c)

{

    AnsiContext *s = avctx->priv_data;

    int fg = s->fg;

    int bg = s->bg;



    if ((s->attributes & ATTR_BOLD))

        fg += 8;

    if ((s->attributes & ATTR_BLINK))

        bg += 8;

    if ((s->attributes & ATTR_REVERSE))

        FFSWAP(int, fg, bg);

    if ((s->attributes & ATTR_CONCEALED))

        fg = bg;

    ff_draw_pc_font(s->frame->data[0] + s->y * s->frame->linesize[0] + s->x,

                    s->frame->linesize[0], s->font, s->font_height, c, fg, bg);

    s->x += FONT_WIDTH;

    if (s->x >= avctx->width) {

        s->x = 0;

        hscroll(avctx);

    }

}

static void FUNC_0(AVCodecContext *VAR_0, int VAR_1)

{

    AnsiContext *s = VAR_0->priv_data;

    int VAR_2 = s->VAR_2;

    int VAR_3 = s->VAR_3;



    if ((s->attributes & ATTR_BOLD))

        VAR_2 += 8;

    if ((s->attributes & ATTR_BLINK))

        VAR_3 += 8;

    if ((s->attributes & ATTR_REVERSE))

        FFSWAP(int, VAR_2, VAR_3);

    if ((s->attributes & ATTR_CONCEALED))

        VAR_2 = VAR_3;

    ff_draw_pc_font(s->frame->data[0] + s->y * s->frame->linesize[0] + s->x,

                    s->frame->linesize[0], s->font, s->font_height, VAR_1, VAR_2, VAR_3);

    s->x += FONT_WIDTH;

    if (s->x >= VAR_0->width) {

        s->x = 0;

        hscroll(VAR_0);

    }

}

static void FUNC_0(AVCodecContext *VAR_0, int VAR_1)
{ AnsiContext *s = VAR_0->priv_data; int VAR_2 = s->VAR_2; int VAR_3 = s->VAR_3; if ((s->attributes & ATTR_BOLD))
VAR_2 += 8; if ((s->attributes & ATTR_BLINK))
VAR_3 += 8; if ((s->attributes & ATTR_REVERSE))
FFSWAP(int, VAR_2, VAR_3); if ((s->attributes & ATTR_CONCEALED))
VAR_2 = VAR_3; ff_draw_pc_font(s->frame->data[0] + s->y * s->frame->linesize[0] + s->x,
s->frame->linesize[0], s->font, s->font_height, VAR_1, VAR_2, VAR_3); s->x += FONT_WIDTH; if (s->x >= VAR_0->width) { s->x = 0; hscroll(VAR_0); } }