diff options
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 |