]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vc1dsp.h
Merge commit 'efc7df6c1f11b20a48e60c3f743ce2331b661973'
[ffmpeg] / libavcodec / vc1dsp.h
index 7cf613597cf00ea33f9811ef297eeb6467490ec8..aa5b6d34fd7a98721ab54f7095e1f00ab553e696 100644 (file)
@@ -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);