static inline int draw_glyph_yuv(AVFilterBufferRef *picref, FT_Bitmap *bitmap, unsigned int x,

                                 unsigned int y, unsigned int width, unsigned int height,

                                 const uint8_t yuva_color[4], int hsub, int vsub)

{

    int r, c, alpha;

    unsigned int luma_pos, chroma_pos1, chroma_pos2;

    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_YUV(picref, yuva_color, src_val, c+x, y+r, hsub, vsub);

        }

    }



    return 0;

}

static inline int draw_glyph_yuv(AVFilterBufferRef *picref, FT_Bitmap *bitmap, unsigned int x,

                                 unsigned int y, unsigned int width, unsigned int height,

                                 const uint8_t yuva_color[4], int hsub, int vsub)

{

    int r, c, alpha;

    unsigned int luma_pos, chroma_pos1, chroma_pos2;

    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_YUV(picref, yuva_color, src_val, c+x, y+r, hsub, vsub);

        }

    }



    return 0;

}

static inline int draw_glyph_yuv(AVFilterBufferRef *picref, FT_Bitmap *bitmap, unsigned int x,                                  unsigned int y, unsigned int width, unsigned int height,
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,

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

{

    int VAR_9, VAR_10, VAR_11;

    unsigned int VAR_12, VAR_13, VAR_14;

    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_YUV(VAR_0, VAR_6, src_val, VAR_10+VAR_2, VAR_3+VAR_9, VAR_7, VAR_8);

        }

    }



    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,
const uint8_t VAR_6[4], int VAR_7, int VAR_8)
{ int VAR_9, VAR_10, VAR_11; unsigned int VAR_12, VAR_13, VAR_14; 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_YUV(VAR_0, VAR_6, src_val, VAR_10+VAR_2, VAR_3+VAR_9, VAR_7, VAR_8); } } return 0; }