From adf8227cf4e7b4fccb2ad88e1e09b6dc00dd00ed Mon Sep 17 00:00:00 2001 From: Ben Avison Date: Mon, 21 Jul 2014 14:53:08 +0100 Subject: 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 --- libavcodec/vc1dsp.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavcodec/vc1dsp.h') 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); -- cgit v1.2.3