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, ptrdiff_t dstStride,
00033 uint8_t *src, ptrdiff_t srcStride,
00034 int h, int x, int y);
00035
00036 typedef struct VP8DSPContext {
00037 void (*vp8_luma_dc_wht)(DCTELEM block[4][4][16], DCTELEM dc[16]);
00038 void (*vp8_luma_dc_wht_dc)(DCTELEM block[4][4][16], DCTELEM dc[16]);
00039 void (*vp8_idct_add)(uint8_t *dst, DCTELEM block[16], ptrdiff_t stride);
00040 void (*vp8_idct_dc_add)(uint8_t *dst, DCTELEM block[16], ptrdiff_t stride);
00041 void (*vp8_idct_dc_add4y)(uint8_t *dst, DCTELEM block[4][16],
00042 ptrdiff_t stride);
00043 void (*vp8_idct_dc_add4uv)(uint8_t *dst, DCTELEM block[4][16],
00044 ptrdiff_t stride);
00045
00046
00047 void (*vp8_v_loop_filter16y)(uint8_t *dst, ptrdiff_t stride,
00048 int flim_E, int flim_I, int hev_thresh);
00049 void (*vp8_h_loop_filter16y)(uint8_t *dst, ptrdiff_t stride,
00050 int flim_E, int flim_I, int hev_thresh);
00051 void (*vp8_v_loop_filter8uv)(uint8_t *dstU, uint8_t *dstV, ptrdiff_t stride,
00052 int flim_E, int flim_I, int hev_thresh);
00053 void (*vp8_h_loop_filter8uv)(uint8_t *dstU, uint8_t *dstV, ptrdiff_t stride,
00054 int flim_E, int flim_I, int hev_thresh);
00055
00056
00057 void (*vp8_v_loop_filter16y_inner)(uint8_t *dst, ptrdiff_t stride,
00058 int flim_E, int flim_I, int hev_thresh);
00059 void (*vp8_h_loop_filter16y_inner)(uint8_t *dst, ptrdiff_t stride,
00060 int flim_E, int flim_I, int hev_thresh);
00061 void (*vp8_v_loop_filter8uv_inner)(uint8_t *dstU, uint8_t *dstV,
00062 ptrdiff_t stride,
00063 int flim_E, int flim_I, int hev_thresh);
00064 void (*vp8_h_loop_filter8uv_inner)(uint8_t *dstU, uint8_t *dstV,
00065 ptrdiff_t stride,
00066 int flim_E, int flim_I, int hev_thresh);
00067
00068 void (*vp8_v_loop_filter_simple)(uint8_t *dst, ptrdiff_t stride, int flim);
00069 void (*vp8_h_loop_filter_simple)(uint8_t *dst, ptrdiff_t stride, int flim);
00070
00079 vp8_mc_func put_vp8_epel_pixels_tab[3][3][3];
00080 vp8_mc_func put_vp8_bilinear_pixels_tab[3][3][3];
00081 } VP8DSPContext;
00082
00083 void ff_put_vp8_pixels16_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride,
00084 int h, int x, int y);
00085 void ff_put_vp8_pixels8_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride,
00086 int h, int x, int y);
00087 void ff_put_vp8_pixels4_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride,
00088 int h, int x, int y);
00089
00090 void ff_vp8dsp_init(VP8DSPContext *c);
00091 void ff_vp8dsp_init_x86(VP8DSPContext *c);
00092 void ff_vp8dsp_init_altivec(VP8DSPContext *c);
00093 void ff_vp8dsp_init_arm(VP8DSPContext *c);
00094
00095 #endif