]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/fifo.h
avutil/opencl_internal: add av_warn_unused_result
[ffmpeg] / libavutil / fifo.h
index 0e4070b99e8de85609b79200b22520a436bc4aa4..dc7bc6f0dd7925a6c0e94847d537fa62164a4639 100644 (file)
@@ -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.