summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264dsp.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-08 12:38:10 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-08 12:47:05 +0200
commitc0f2ad3dbdeada7ba43b0510580467718f1334ca (patch)
tree4793efb53ed74106b572634d86f25808277d48d8 /libavcodec/h264dsp.h
parent50b7ce12574df47ac5380b05259f10e6b516fb17 (diff)
parent218d6844b37d339ffbf2044ad07d8be7767e2734 (diff)
downloadffmpeg-streaming-c0f2ad3dbdeada7ba43b0510580467718f1334ca.zip
ffmpeg-streaming-c0f2ad3dbdeada7ba43b0510580467718f1334ca.tar.gz
Merge commit '218d6844b37d339ffbf2044ad07d8be7767e2734'
* commit '218d6844b37d339ffbf2044ad07d8be7767e2734': h264dsp: Factorize code into a new function, h264_find_start_code_candidate Conflicts: libavcodec/h264_parser.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264dsp.h')
-rw-r--r--libavcodec/h264dsp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/h264dsp.h b/libavcodec/h264dsp.h
index 98ea15c..1be4804 100644
--- a/libavcodec/h264dsp.h
+++ b/libavcodec/h264dsp.h
@@ -105,6 +105,15 @@ typedef struct H264DSPContext {
/* bypass-transform */
void (*h264_add_pixels8_clear)(uint8_t *dst, int16_t *block, int stride);
void (*h264_add_pixels4_clear)(uint8_t *dst, int16_t *block, int stride);
+
+ /**
+ * 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. Better still, filter
+ * out any bytes that form the trailing_zero_8bits syntax element too.
+ */
+ int (*h264_find_start_code_candidate)(const uint8_t *buf, int size);
} H264DSPContext;
void ff_h264dsp_init(H264DSPContext *c, const int bit_depth,
OpenPOWER on IntegriCloud