static inline int draw_glyph_rgb(AVFilterBufferRef *picref, FT_Bitmap *bitmap,

                                 unsigned int x, unsigned int y,

                                 unsigned int width, unsigned int height, int pixel_step,

                                 const uint8_t rgba_color[4], const uint8_t rgba_map[4])

{

    int r, c, alpha;

    uint8_t *p;

    uint8_t src_val;



    for (r = 0; r < bitmap->rows && r+y < height; r++) {

        for (c = 0; c < bitmap->width && c+x < width; c++) {

            /* get intensity value in the glyph bitmap (source) */

            src_val = GET_BITMAP_VAL(r, c);

            if (!src_val)

                continue;



            SET_PIXEL_RGB(picref, rgba_color, src_val, c+x, y+r, pixel_step,

                          rgba_map[0], rgba_map[1], rgba_map[2], rgba_map[3]);

        }

    }



    return 0;

}

static inline int draw_glyph_rgb(AVFilterBufferRef *picref, FT_Bitmap *bitmap,

                                 unsigned int x, unsigned int y,

                                 unsigned int width, unsigned int height, int pixel_step,

                                 const uint8_t rgba_color[4], const uint8_t rgba_map[4])

{

    int r, c, alpha;

    uint8_t *p;

    uint8_t src_val;



    for (r = 0; r < bitmap->rows && r+y < height; r++) {

        for (c = 0; c < bitmap->width && c+x < width; c++) {

            

            src_val = GET_BITMAP_VAL(r, c);

            if (!src_val)

                continue;



            SET_PIXEL_RGB(picref, rgba_color, src_val, c+x, y+r, pixel_step,

                          rgba_map[0], rgba_map[1], rgba_map[2], rgba_map[3]);

        }

    }



    return 0;

}

                                 unsigned int x, unsigned int y,                                  unsigned int width, unsigned int height, int pixel_step,
static inline int FUNC_0(AVFilterBufferRef *VAR_0, FT_Bitmap *VAR_1,

                                 unsigned int VAR_2, unsigned int VAR_3,

                                 unsigned int VAR_4, unsigned int VAR_5, int VAR_6,

                                 const uint8_t VAR_7[4], const uint8_t VAR_8[4])

{

    int VAR_9, VAR_10, VAR_11;

    uint8_t *p;

    uint8_t src_val;



    for (VAR_9 = 0; VAR_9 < VAR_1->rows && VAR_9+VAR_3 < VAR_5; VAR_9++) {

        for (VAR_10 = 0; VAR_10 < VAR_1->VAR_4 && VAR_10+VAR_2 < VAR_4; VAR_10++) {

            

            src_val = GET_BITMAP_VAL(VAR_9, VAR_10);

            if (!src_val)

                continue;



            SET_PIXEL_RGB(VAR_0, VAR_7, src_val, VAR_10+VAR_2, VAR_3+VAR_9, VAR_6,

                          VAR_8[0], VAR_8[1], VAR_8[2], VAR_8[3]);

        }

    }



    return 0;

}

static inline int FUNC_0(AVFilterBufferRef *VAR_0, FT_Bitmap *VAR_1,
unsigned int VAR_2, unsigned int VAR_3,
unsigned int VAR_4, unsigned int VAR_5, int VAR_6,
const uint8_t VAR_7[4], const uint8_t VAR_8[4])
{ int VAR_9, VAR_10, VAR_11; uint8_t *p; uint8_t src_val; for (VAR_9 = 0; VAR_9 < VAR_1->rows && VAR_9+VAR_3 < VAR_5; VAR_9++) { for (VAR_10 = 0; VAR_10 < VAR_1->VAR_4 && VAR_10+VAR_2 < VAR_4; VAR_10++) { src_val = GET_BITMAP_VAL(VAR_9, VAR_10); if (!src_val)
continue; SET_PIXEL_RGB(VAR_0, VAR_7, src_val, VAR_10+VAR_2, VAR_3+VAR_9, VAR_6,
VAR_8[0], VAR_8[1], VAR_8[2], VAR_8[3]); } } return 0; }