summaryrefslogtreecommitdiff
path: root/libavcodec/vc1dsp.h
diff options
context:
space:
mode:
authorBen Avison <bavison@riscosopen.org>2022-03-31 18:23:45 +0100
committerMartin Storsjö <martin@martin.st>2022-04-01 10:03:33 +0300
commit2e268477802d64aa75b9c3c2cb2fc89d1ef7c87d (patch)
tree5b5ccbd62a2cb87808a197864b63f872a8ed9d99 /libavcodec/vc1dsp.h
parentbd3615a81a3387cafb51444927e852423f8f4a6e (diff)
avcodec/vc1: Introduce fast path for unescaping bitstream buffer
Includes a checkasm test. Signed-off-by: Ben Avison <bavison@riscosopen.org> Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/vc1dsp.h')
-rw-r--r--libavcodec/vc1dsp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/vc1dsp.h b/libavcodec/vc1dsp.h
index fe60025a2a..7ed1776ca7 100644
--- a/libavcodec/vc1dsp.h
+++ b/libavcodec/vc1dsp.h
@@ -80,6 +80,9 @@ typedef struct VC1DSPContext {
* one or more further zero bytes and a one byte.
*/
int (*startcode_find_candidate)(const uint8_t *buf, int size);
+
+ /* Copy a buffer, removing startcode emulation escape bytes as we go */
+ int (*vc1_unescape_buffer)(const uint8_t *src, int size, uint8_t *dst);
} VC1DSPContext;
void ff_vc1dsp_init(VC1DSPContext* c);