comparison vp8dsp.h @ 12241:c7f6ddcc5c01 libavcodec

VP8: optimize DC-only chroma case in the same way as luma. Add MMX idct_dc_add4uv function for this case. ~40% faster chroma idct.
author darkshikari
date Fri, 23 Jul 2010 06:02:52 +0000
parents 1a7903913e9b
children b4c63ffd959b
comparison
equal deleted inserted replaced
12240:e6ade5e849c9 12241:c7f6ddcc5c01
31 31
32 typedef struct VP8DSPContext { 32 typedef struct VP8DSPContext {
33 void (*vp8_luma_dc_wht)(DCTELEM block[4][4][16], DCTELEM dc[16]); 33 void (*vp8_luma_dc_wht)(DCTELEM block[4][4][16], DCTELEM dc[16]);
34 void (*vp8_idct_add)(uint8_t *dst, DCTELEM block[16], int stride); 34 void (*vp8_idct_add)(uint8_t *dst, DCTELEM block[16], int stride);
35 void (*vp8_idct_dc_add)(uint8_t *dst, DCTELEM block[16], int stride); 35 void (*vp8_idct_dc_add)(uint8_t *dst, DCTELEM block[16], int stride);
36 void (*vp8_idct_dc_add4)(uint8_t *dst, DCTELEM block[4][16], int stride); 36 void (*vp8_idct_dc_add4y)(uint8_t *dst, DCTELEM block[4][16], int stride);
37 void (*vp8_idct_dc_add4uv)(uint8_t *dst, DCTELEM block[4][16], int stride);
37 38
38 // loop filter applied to edges between macroblocks 39 // loop filter applied to edges between macroblocks
39 void (*vp8_v_loop_filter16y)(uint8_t *dst, int stride, 40 void (*vp8_v_loop_filter16y)(uint8_t *dst, int stride,
40 int flim_E, int flim_I, int hev_thresh); 41 int flim_E, int flim_I, int hev_thresh);
41 void (*vp8_h_loop_filter16y)(uint8_t *dst, int stride, 42 void (*vp8_h_loop_filter16y)(uint8_t *dst, int stride,