From d6f8476be4895c620d58e021ab880823d2fe25bf Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Fri, 25 Jun 2010 18:14:07 +0000 Subject: Make VP8 DSP functions take two strides This isn't useful for the C functions, but will allow re-using H and V functions for HV functions without adding separate H and V wrappers. Originally committed as revision 23782 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vp8dsp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavcodec/vp8dsp.h') diff --git a/libavcodec/vp8dsp.h b/libavcodec/vp8dsp.h index fa7bf76d29..2cd9e7a10b 100644 --- a/libavcodec/vp8dsp.h +++ b/libavcodec/vp8dsp.h @@ -27,6 +27,8 @@ #include "dsputil.h" +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); + typedef struct VP8DSPContext { void (*vp8_luma_dc_wht)(DCTELEM block[4][4][16], DCTELEM dc[16]); void (*vp8_idct_add)(uint8_t *dst, DCTELEM block[16], int stride); @@ -55,7 +57,7 @@ typedef struct VP8DSPContext { * third dimension: same as second dimention, for horizontal interpolation * so something like put_vp8_epel_pixels_tab[width>>3][2*!!my-(my&1)][2*!!mx-(mx&1)](..., mx, my) */ - h264_chroma_mc_func put_vp8_epel_pixels_tab[3][3][3]; + vp8_mc_func put_vp8_epel_pixels_tab[3][3][3]; } VP8DSPContext; void ff_put_vp8_pixels16_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y); -- cgit v1.2.3