summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorBjörn Axelsson <gecko@acc.umu.se>2007-11-28 19:46:49 +0000
committerAndreas Öman <andreas@lonelycoder.com>2007-11-28 19:46:49 +0000
commite7e4810aaef4c11b9a2d62c5656d76917bdd5a27 (patch)
tree3b8797d6f3a426e4acbd1ff6eff55c7ca0626e3b /libavformat/avio.h
parent6b493b2f2fd241f6b893f6aa549f10aee1b9ad0c (diff)
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 Originally committed as revision 11110 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 138508ed1c..5a8d19f354 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -156,6 +156,10 @@ typedef struct {
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 @@ offset_t url_fsize(ByteIOContext *s);
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);