Esempio n. 1
0
void checkasm_check_hevc_mc(void)
{
    DECLARE_ALIGNED(16, uint8_t,  buf8_0)[BUF_SIZE];
    DECLARE_ALIGNED(16, uint8_t,  buf8_1)[BUF_SIZE];

    DECLARE_ALIGNED(16, int16_t, buf16_0)[BUF_SIZE];
    DECLARE_ALIGNED(16, int16_t, buf16_1)[BUF_SIZE];

    DECLARE_ALIGNED(16, int16_t, mcbuffer)[BUF_SIZE];

    HEVCDSPContext h;
    int bit_depth;

    for (bit_depth = 8; bit_depth <= 10; bit_depth++) {
        ff_hevc_dsp_init(&h, bit_depth);

        check_qpel(&h, buf16_0, buf16_1, buf8_0, mcbuffer, bit_depth);
        report("qpel");

        check_epel(&h, buf16_0, buf16_1, buf8_0, mcbuffer, bit_depth);
        report("epel");

        check_unweighted_pred(&h, buf8_0, buf8_1, buf16_0, buf16_1, bit_depth);
        report("unweighted_pred");

        check_weighted_pred(&h, buf8_0, buf8_1, buf16_0, buf16_1, bit_depth);
        report("weighted_pred");
    }
}
Esempio n. 2
0
void checkasm_check_hevc_add_res(void)
{
    int bit_depth;

    for (bit_depth = 8; bit_depth <= 10; bit_depth++) {
        HEVCDSPContext h;

        ff_hevc_dsp_init(&h, bit_depth);
        check_add_res(h, bit_depth);
    }
    report("add_residual");
}
Esempio n. 3
0
void checkasm_check_hevc_idct(void)
{
    int bit_depth;

    for (bit_depth = 8; bit_depth <= 10; bit_depth++) {
        HEVCDSPContext h;

        ff_hevc_dsp_init(&h, bit_depth);
        check_idct_dc(h, bit_depth);
    }
    report("idct_dc");
}