static void blend_frames_c(BLEND_FUNC_PARAMS)

{

    int line, pixel;

    for (line = 0; line < height; line++) {

        for (pixel = 0; pixel < width; pixel++) {

            // integer version of (src1 * factor1) + (src2 * factor2) + 0.5

            // 0.5 is for rounding

            // 128 is the integer representation of 0.5 << 8

            dst[pixel] = ((src1[pixel] * factor1) + (src2[pixel] * factor2) + 128) >> 8;

        }

        src1 += src1_linesize;

        src2 += src2_linesize;

        dst  += dst_linesize;

    }

}

static void blend_frames_c(BLEND_FUNC_PARAMS)

{

    int line, pixel;

    for (line = 0; line < height; line++) {

        for (pixel = 0; pixel < width; pixel++) {

            

            

            

            dst[pixel] = ((src1[pixel] * factor1) + (src2[pixel] * factor2) + 128) >> 8;

        }

        src1 += src1_linesize;

        src2 += src2_linesize;

        dst  += dst_linesize;

    }

}

        for (pixel = 0; pixel < width; pixel++) {             dst[pixel] = ((src1[pixel] * factor1) + (src2[pixel] * factor2) + 128) >> 8;
static void FUNC_0(VAR_0)

{

    int VAR_1, VAR_2;

    for (VAR_1 = 0; VAR_1 < height; VAR_1++) {

        for (VAR_2 = 0; VAR_2 < width; VAR_2++) {

            

            

            

            dst[VAR_2] = ((src1[VAR_2] * factor1) + (src2[VAR_2] * factor2) + 128) >> 8;

        }

        src1 += src1_linesize;

        src2 += src2_linesize;

        dst  += dst_linesize;

    }

}

static void FUNC_0(VAR_0)
{ int VAR_1, VAR_2; for (VAR_1 = 0; VAR_1 < height; VAR_1++) { for (VAR_2 = 0; VAR_2 < width; VAR_2++) { dst[VAR_2] = ((src1[VAR_2] * factor1) + (src2[VAR_2] * factor2) + 128) >> 8; } src1 += src1_linesize; src2 += src2_linesize; dst  += dst_linesize; } }