summaryrefslogtreecommitdiff
path: root/libavcodec/vc1dsp.h
diff options
context:
space:
mode:
authorBen Avison <bavison@riscosopen.org>2014-07-21 14:53:08 +0100
committerLuca Barbato <lu_zero@gentoo.org>2014-08-04 22:22:54 +0200
commitadf8227cf4e7b4fccb2ad88e1e09b6dc00dd00ed (patch)
tree4d42e1740f55099c18465d032c9d9239b253713d /libavcodec/vc1dsp.h
parentdb7f1c7c5a1d37e7f4da64a79a97bea1c4b6e9f8 (diff)
vc-1: Add platform-specific start code search routine to VC1DSPContext.
Initialise VC1DSPContext for parser as well as for decoder. Note, the VC-1 code doesn't actually use the function pointer yet. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/vc1dsp.h')
-rw-r--r--libavcodec/vc1dsp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/vc1dsp.h b/libavcodec/vc1dsp.h
index 7de6a3da46..682f682144 100644
--- a/libavcodec/vc1dsp.h
+++ b/libavcodec/vc1dsp.h
@@ -71,6 +71,14 @@ typedef struct VC1DSPContext {
void (*sprite_v_double_twoscale)(uint8_t *dst, const uint8_t *src1a, const uint8_t *src1b, int offset1,
const uint8_t *src2a, const uint8_t *src2b, int offset2,
int alpha, int width);
+
+ /**
+ * Search buf from the start for up to size bytes. Return the index
+ * of a zero byte, or >= size if not found. Ideally, use lookahead
+ * to filter out any zero bytes that are known to not be followed by
+ * one or more further zero bytes and a one byte.
+ */
+ int (*startcode_find_candidate)(const uint8_t *buf, int size);
} VC1DSPContext;
void ff_vc1dsp_init(VC1DSPContext* c);