Libav 0.7.1
|
00001 00025 #ifndef AVCODEC_VP8DSP_H 00026 #define AVCODEC_VP8DSP_H 00027 00028 #include "dsputil.h" 00029 00030 typedef void (*vp8_mc_func)(uint8_t *dst/*align 8*/, int dstStride, uint8_t *src/*align 1*/, int srcStride, int h, int x, int y); 00031 00032 typedef struct VP8DSPContext { 00033 void (*vp8_luma_dc_wht)(DCTELEM block[4][4][16], DCTELEM dc[16]); 00034 void (*vp8_luma_dc_wht_dc)(DCTELEM block[4][4][16], DCTELEM dc[16]); 00035 void (*vp8_idct_add)(uint8_t *dst, DCTELEM block[16], int stride); 00036 void (*vp8_idct_dc_add)(uint8_t *dst, DCTELEM block[16], int stride); 00037 void (*vp8_idct_dc_add4y)(uint8_t *dst, DCTELEM block[4][16], int stride); 00038 void (*vp8_idct_dc_add4uv)(uint8_t *dst, DCTELEM block[4][16], int stride); 00039 00040 // loop filter applied to edges between macroblocks 00041 void (*vp8_v_loop_filter16y)(uint8_t *dst, int stride, 00042 int flim_E, int flim_I, int hev_thresh); 00043 void (*vp8_h_loop_filter16y)(uint8_t *dst, int stride, 00044 int flim_E, int flim_I, int hev_thresh); 00045 void (*vp8_v_loop_filter8uv)(uint8_t *dstU, uint8_t *dstV, int stride, 00046 int flim_E, int flim_I, int hev_thresh); 00047 void (*vp8_h_loop_filter8uv)(uint8_t *dstU, uint8_t *dstV, int stride, 00048 int flim_E, int flim_I, int hev_thresh); 00049 00050 // loop filter applied to inner macroblock edges 00051 void (*vp8_v_loop_filter16y_inner)(uint8_t *dst, int stride, 00052 int flim_E, int flim_I, int hev_thresh); 00053 void (*vp8_h_loop_filter16y_inner)(uint8_t *dst, int stride, 00054 int flim_E, int flim_I, int hev_thresh); 00055 void (*vp8_v_loop_filter8uv_inner)(uint8_t *dstU, uint8_t *dstV, int stride, 00056 int flim_E, int flim_I, int hev_thresh); 00057 void (*vp8_h_loop_filter8uv_inner)(uint8_t *dstU, uint8_t *dstV, int stride, 00058 int flim_E, int flim_I, int hev_thresh); 00059 00060 void (*vp8_v_loop_filter_simple)(uint8_t *dst, int stride, int flim); 00061 void (*vp8_h_loop_filter_simple)(uint8_t *dst, int stride, int flim); 00062 00071 vp8_mc_func put_vp8_epel_pixels_tab[3][3][3]; 00072 vp8_mc_func put_vp8_bilinear_pixels_tab[3][3][3]; 00073 } VP8DSPContext; 00074 00075 void ff_put_vp8_pixels16_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y); 00076 void ff_put_vp8_pixels8_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y); 00077 void ff_put_vp8_pixels4_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y); 00078 00079 void ff_vp8dsp_init(VP8DSPContext *c); 00080 void ff_vp8dsp_init_x86(VP8DSPContext *c); 00081 void ff_vp8dsp_init_altivec(VP8DSPContext *c); 00082 void ff_vp8dsp_init_arm(VP8DSPContext *c); 00083 00084 #endif /* AVCODEC_VP8DSP_H */