Revision f311208c libavcodec/vp8dsp.c

View differences:

libavcodec/vp8dsp.c
51 51
        dc[i*4+2] = 0;
52 52
        dc[i*4+3] = 0;
53 53

  
54
        *block[i][0] = (t0 + t1) >> 3;
55
        *block[i][1] = (t3 + t2) >> 3;
56
        *block[i][2] = (t0 - t1) >> 3;
57
        *block[i][3] = (t3 - t2) >> 3;
54
        block[i][0][0] = (t0 + t1) >> 3;
55
        block[i][1][0] = (t3 + t2) >> 3;
56
        block[i][2][0] = (t0 - t1) >> 3;
57
        block[i][3][0] = (t3 - t2) >> 3;
58 58
    }
59 59
}
60 60

  
61
static void vp8_luma_dc_wht_dc_c(DCTELEM block[4][4][16], DCTELEM dc[16])
62
{
63
    int i, val = (dc[0] + 3) >> 3;
64
    dc[0] = 0;
65

  
66
    for (i = 0; i < 4; i++) {
67
        block[i][0][0] = val;
68
        block[i][1][0] = val;
69
        block[i][2][0] = val;
70
        block[i][3][0] = val;
71
    }
72
}
61 73

  
62 74
#define MUL_20091(a) ((((a)*20091) >> 16) + (a))
63 75
#define MUL_35468(a)  (((a)*35468) >> 16)
......
480 492
av_cold void ff_vp8dsp_init(VP8DSPContext *dsp)
481 493
{
482 494
    dsp->vp8_luma_dc_wht    = vp8_luma_dc_wht_c;
495
    dsp->vp8_luma_dc_wht_dc = vp8_luma_dc_wht_dc_c;
483 496
    dsp->vp8_idct_add       = vp8_idct_add_c;
484 497
    dsp->vp8_idct_dc_add    = vp8_idct_dc_add_c;
485 498
    dsp->vp8_idct_dc_add4y  = vp8_idct_dc_add4y_c;

Also available in: Unified diff