summaryrefslogtreecommitdiff
path: root/libavcodec/vp3dsp.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2013-01-21 11:02:33 -0800
committerRonald S. Bultje <rsbultje@gmail.com>2013-01-21 18:08:55 -0800
commit4a73fbd9c5d5ba6b32a116b296a8cb199f8940ed (patch)
tree52037eaebd840fedbad4a6e3e959d4d0b6fc2551 /libavcodec/vp3dsp.h
parent4f56e773fe8a554b8c2662650aaf799c2ece2721 (diff)
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.
Diffstat (limited to 'libavcodec/vp3dsp.h')
-rw-r--r--libavcodec/vp3dsp.h16
1 files changed, 16 insertions, 0 deletions
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 <stddef.h>
#include <stdint.h>
#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);