diff avio.h @ 2783:1a9db30c1d1c libavformat

Extend ByteIOContext and add the buffered IO functions: av_url_read_fplay(), av_url_read_fpause() and av_url_read_fseek(). patch by: Bj«Órn Axelsson, bjorn d axelsson a intinor d se
author andoma
date Wed, 28 Nov 2007 19:46:49 +0000
parents 50e2307414ee
children 173b5cb7efde
line wrap: on
line diff
--- a/avio.h	Tue Nov 27 11:42:09 2007 +0000
+++ b/avio.h	Wed Nov 28 19:46:49 2007 +0000
@@ -156,6 +156,10 @@
     unsigned char *checksum_ptr;
     unsigned long (*update_checksum)(unsigned long checksum, const uint8_t *buf, unsigned int size);
     int error;         ///< contains the error code or 0 if no error happened
+    int (*read_play)(void *opaque);
+    int (*read_pause)(void *opaque);
+    int (*read_seek)(void *opaque,
+                     int stream_index, int64_t timestamp, int flags);
 } ByteIOContext;
 
 int init_put_byte(ByteIOContext *s,
@@ -188,6 +192,11 @@
 int url_feof(ByteIOContext *s);
 int url_ferror(ByteIOContext *s);
 
+int av_url_read_fplay(ByteIOContext *h);
+int av_url_read_fpause(ByteIOContext *h);
+int av_url_read_fseek(ByteIOContext *h,
+                      int stream_index, int64_t timestamp, int flags);
+
 #define URL_EOF (-1)
 /** @note return URL_EOF (-1) if EOF */
 int url_fgetc(ByteIOContext *s);