diff options
author | Zhang Rui <bbcallen@gmail.com> | 2015-10-14 14:20:07 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-10-14 20:23:58 +0200 |
commit | 87ff61b9abde99d8cdc2a4332b41f69a80eb3d56 (patch) | |
tree | d92e410c5d20a65bbf9b4b454e243cdc7d016948 /libavutil/fifo.h | |
parent | 55d3e97970888baa173061704a085144c5a014b4 (diff) | |
download | ffmpeg-87ff61b9abde99d8cdc2a4332b41f69a80eb3d56.tar.gz |
avutil/fifo: add function av_fifo_generic_peek_at()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/fifo.h')
-rw-r--r-- | libavutil/fifo.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/fifo.h b/libavutil/fifo.h index 0e4070b99e..dc7bc6f0dd 100644 --- a/libavutil/fifo.h +++ b/libavutil/fifo.h @@ -84,6 +84,17 @@ int av_fifo_size(const AVFifoBuffer *f); int av_fifo_space(const AVFifoBuffer *f); /** + * Feed data at specific position from an AVFifoBuffer to a user-supplied callback. + * Similar as av_fifo_gereric_read but without discarding data. + * @param f AVFifoBuffer to read from + * @param offset offset from current read position + * @param buf_size number of bytes to read + * @param func generic read function + * @param dest data destination + */ +int av_fifo_generic_peek_at(AVFifoBuffer *f, void *dest, int offset, int buf_size, void (*func)(void*, void*, int)); + +/** * Feed data from an AVFifoBuffer to a user-supplied callback. * Similar as av_fifo_gereric_read but without discarding data. * @param f AVFifoBuffer to read from |