X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvc1dsp.h;h=f2b0c707fddacd25957a180feb99baebfaafca4a;hb=f450cc7bc595155bacdb9f5d2414a076ccf81b4a;hp=84d4b707a893c7fdbc1f0e25c3d5efc2424738e5;hpb=38282149b6ce8f4b8361e3b84542ba9aa8a1f32f;p=ffmpeg diff --git a/libavcodec/vc1dsp.h b/libavcodec/vc1dsp.h index 84d4b707a89..f2b0c707fdd 100644 --- a/libavcodec/vc1dsp.h +++ b/libavcodec/vc1dsp.h @@ -22,13 +22,11 @@ /** * @file * VC-1 and WMV3 decoder - * */ #ifndef AVCODEC_VC1DSP_H #define AVCODEC_VC1DSP_H -#include "dsputil.h" #include "hpeldsp.h" #include "h264chroma.h" @@ -72,9 +70,19 @@ 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); +void ff_vc1dsp_init_aarch64(VC1DSPContext* dsp); +void ff_vc1dsp_init_arm(VC1DSPContext* dsp); void ff_vc1dsp_init_ppc(VC1DSPContext *c); void ff_vc1dsp_init_x86(VC1DSPContext* dsp);