X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Ffifo.h;h=dc7bc6f0dd7925a6c0e94847d537fa62164a4639;hb=8a5b60a6b1d841b74c2670f5165c8b05321f395a;hp=0e4070b99e8de85609b79200b22520a436bc4aa4;hpb=cda503a1b92c776cd197ec5a8879b793d9deaad8;p=ffmpeg diff --git a/libavutil/fifo.h b/libavutil/fifo.h index 0e4070b99e8..dc7bc6f0dd7 100644 --- a/libavutil/fifo.h +++ b/libavutil/fifo.h @@ -83,6 +83,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.