00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00027 #ifndef AVCODEC_VP8DSP_H
00028 #define AVCODEC_VP8DSP_H
00029
00030 #include "dsputil.h"
00031
00032 typedef void (*vp8_mc_func)(uint8_t *dst, int dstStride, uint8_t *src, int srcStride, int h, int x, int y);
00033
00034 typedef struct VP8DSPContext {
00035 void (*vp8_luma_dc_wht)(DCTELEM block[4][4][16], DCTELEM dc[16]);
00036 void (*vp8_luma_dc_wht_dc)(DCTELEM block[4][4][16], DCTELEM dc[16]);
00037 void (*vp8_idct_add)(uint8_t *dst, DCTELEM block[16], int stride);
00038 void (*vp8_idct_dc_add)(uint8_t *dst, DCTELEM block[16], int stride);
00039 void (*vp8_idct_dc_add4y)(uint8_t *dst, DCTELEM block[4][16], int stride);
00040 void (*vp8_idct_dc_add4uv)(uint8_t *dst, DCTELEM block[4][16], int stride);
00041
00042
00043 void (*vp8_v_loop_filter16y)(uint8_t *dst, int stride,
00044 int flim_E, int flim_I, int hev_thresh);
00045 void (*vp8_h_loop_filter16y)(uint8_t *dst, int stride,
00046 int flim_E, int flim_I, int hev_thresh);
00047 void (*vp8_v_loop_filter8uv)(uint8_t *dstU, uint8_t *dstV, int stride,
00048 int flim_E, int flim_I, int hev_thresh);
00049 void (*vp8_h_loop_filter8uv)(uint8_t *dstU, uint8_t *dstV, int stride,
00050 int flim_E, int flim_I, int hev_thresh);
00051
00052
00053 void (*vp8_v_loop_filter16y_inner)(uint8_t *dst, int stride,
00054 int flim_E, int flim_I, int hev_thresh);
00055 void (*vp8_h_loop_filter16y_inner)(uint8_t *dst, int stride,
00056 int flim_E, int flim_I, int hev_thresh);
00057 void (*vp8_v_loop_filter8uv_inner)(uint8_t *dstU, uint8_t *dstV, int stride,
00058 int flim_E, int flim_I, int hev_thresh);
00059 void (*vp8_h_loop_filter8uv_inner)(uint8_t *dstU, uint8_t *dstV, int stride,
00060 int flim_E, int flim_I, int hev_thresh);
00061
00062 void (*vp8_v_loop_filter_simple)(uint8_t *dst, int stride, int flim);
00063 void (*vp8_h_loop_filter_simple)(uint8_t *dst, int stride, int flim);
00064
00073 vp8_mc_func put_vp8_epel_pixels_tab[3][3][3];
00074 vp8_mc_func put_vp8_bilinear_pixels_tab[3][3][3];
00075 } VP8DSPContext;
00076
00077 void ff_put_vp8_pixels16_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y);
00078 void ff_put_vp8_pixels8_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y);
00079 void ff_put_vp8_pixels4_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y);
00080
00081 void ff_vp8dsp_init(VP8DSPContext *c);
00082 void ff_vp8dsp_init_x86(VP8DSPContext *c);
00083 void ff_vp8dsp_init_altivec(VP8DSPContext *c);
00084 void ff_vp8dsp_init_arm(VP8DSPContext *c);
00085
00086 #endif