From 4a73fbd9c5d5ba6b32a116b296a8cb199f8940ed Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 21 Jan 2013 11:02:33 -0800 Subject: vp3/5: move put_no_rnd_pixels_l2 from dsputil to VP3DSPContext. The function is only used in VP3 and VP5, so no need to have it in DSPContext. --- libavcodec/vp3dsp.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'libavcodec/vp3dsp.h') diff --git a/libavcodec/vp3dsp.h b/libavcodec/vp3dsp.h index feb300017a..d28c8478f0 100644 --- a/libavcodec/vp3dsp.h +++ b/libavcodec/vp3dsp.h @@ -19,10 +19,26 @@ #ifndef AVCODEC_VP3DSP_H #define AVCODEC_VP3DSP_H +#include #include #include "dsputil.h" typedef struct VP3DSPContext { + /** + * Copy 8xH pixels from source to destination buffer using a bilinear + * filter with no rounding (i.e. *dst = (*a + *b) >> 1). + * + * @param dst destination buffer, aligned by 8 + * @param a first source buffer, no alignment + * @param b second source buffer, no alignment + * @param stride distance between two lines in source/dest buffers + * @param h height + */ + void (*put_no_rnd_pixels_l2)(uint8_t *dst, + const uint8_t *a, + const uint8_t *b, + ptrdiff_t stride, int h); + void (*idct_put)(uint8_t *dest, int line_size, DCTELEM *block); void (*idct_add)(uint8_t *dest, int line_size, DCTELEM *block); void (*idct_dc_add)(uint8_t *dest, int line_size, DCTELEM *block); -- cgit v1.2.3