summaryrefslogtreecommitdiff
path: root/libavcodec/vc1dsp.h
diff options
context:
space:
mode:
authorBen Avison <bavison@riscosopen.org>2014-04-16 01:51:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-04-25 02:36:11 +0200
commit9d8ecdd8ca6d248e7439e8fdf255e39eda14e0f2 (patch)
treee35abe072bfeb91f77ac48c51eb3bd69d9773aed /libavcodec/vc1dsp.h
parent270cede3f3772117454a14b620803d731036942d (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: Michael Niedermayer <michaelni@gmx.at>
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 7cf613597c..aa5b6d34fd 100644
--- a/libavcodec/vc1dsp.h
+++ b/libavcodec/vc1dsp.h
@@ -73,6 +73,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 (*vc1_find_start_code_candidate)(const uint8_t *buf, int size);
} VC1DSPContext;
void ff_vc1dsp_init(VC1DSPContext* c);