static void check_pred4x4(H264PredContext *h, uint8_t *buf0, uint8_t *buf1,

                          int codec, int chroma_format, int bit_depth)

{

    if (chroma_format == 1) {

        uint8_t *topright = buf0 + 2*16;

        int pred_mode;

        for (pred_mode = 0; pred_mode < 15; pred_mode++) {

            if (check_pred_func(h->pred4x4[pred_mode], "4x4", pred4x4_modes[codec][pred_mode])) {

                randomize_buffers();

                call_ref(src0, topright, (ptrdiff_t)12*SIZEOF_PIXEL);

                call_new(src1, topright, (ptrdiff_t)12*SIZEOF_PIXEL);

                if (memcmp(buf0, buf1, BUF_SIZE))

                    fail();

                bench_new(src1, topright, (ptrdiff_t)12*SIZEOF_PIXEL);

            }

        }

    }

}

static void check_pred4x4(H264PredContext *h, uint8_t *buf0, uint8_t *buf1,

                          int codec, int chroma_format, int bit_depth)

{

    if (chroma_format == 1) {

        uint8_t *topright = buf0 + 2*16;

        int pred_mode;

        for (pred_mode = 0; pred_mode < 15; pred_mode++) {

            if (check_pred_func(h->pred4x4[pred_mode], "4x4", pred4x4_modes[codec][pred_mode])) {

                randomize_buffers();

                call_ref(src0, topright, (ptrdiff_t)12*SIZEOF_PIXEL);

                call_new(src1, topright, (ptrdiff_t)12*SIZEOF_PIXEL);

                if (memcmp(buf0, buf1, BUF_SIZE))

                    fail();

                bench_new(src1, topright, (ptrdiff_t)12*SIZEOF_PIXEL);

            }

        }

    }

}

static void FUNC_0(H264PredContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2,

                          int VAR_3, int VAR_4, int VAR_5)

{

    if (VAR_4 == 1) {

        uint8_t *topright = VAR_1 + 2*16;

        int VAR_6;

        for (VAR_6 = 0; VAR_6 < 15; VAR_6++) {

            if (check_pred_func(VAR_0->pred4x4[VAR_6], "4x4", pred4x4_modes[VAR_3][VAR_6])) {

                randomize_buffers();

                call_ref(src0, topright, (ptrdiff_t)12*SIZEOF_PIXEL);

                call_new(src1, topright, (ptrdiff_t)12*SIZEOF_PIXEL);

                if (memcmp(VAR_1, VAR_2, BUF_SIZE))

                    fail();

                bench_new(src1, topright, (ptrdiff_t)12*SIZEOF_PIXEL);

            }

        }

    }

}

static void FUNC_0(H264PredContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2,
int VAR_3, int VAR_4, int VAR_5)
{ if (VAR_4 == 1) { uint8_t *topright = VAR_1 + 2*16; int VAR_6; for (VAR_6 = 0; VAR_6 < 15; VAR_6++) { if (check_pred_func(VAR_0->pred4x4[VAR_6], "4x4", pred4x4_modes[VAR_3][VAR_6])) { randomize_buffers(); call_ref(src0, topright, (ptrdiff_t)12*SIZEOF_PIXEL); call_new(src1, topright, (ptrdiff_t)12*SIZEOF_PIXEL); if (memcmp(VAR_1, VAR_2, BUF_SIZE))
fail(); bench_new(src1, topright, (ptrdiff_t)12*SIZEOF_PIXEL); } } } }