diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-03-21 11:27:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-03-21 11:27:07 +0000 |
commit | 67e2102042b991e7eaec6a6af4da1fbb0e7a2b57 (patch) | |
tree | 9bd44048df9b3915094c0a005da5a12f10c6acd9 | |
parent | 117a9190cd80eded5626519d07404bdfeda2e89c (diff) | |
download | ffmpeg-67e2102042b991e7eaec6a6af4da1fbb0e7a2b57.tar.gz |
Document a few url_* functions.
Originally committed as revision 12537 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/avio.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index e8a8bc6062..b9a4997801 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -207,11 +207,36 @@ void put_tag(ByteIOContext *s, const char *tag); void put_strz(ByteIOContext *s, const char *buf); +/** + * fseek() equivalent for ByteIOContext. + * @return new position or AVERROR. + */ offset_t url_fseek(ByteIOContext *s, offset_t offset, int whence); + +/** + * Skip given number of bytes forward. + * @param offset number of bytes + */ void url_fskip(ByteIOContext *s, offset_t offset); + +/** + * ftell() equivalent for ByteIOContext. + * @return position or AVERROR. + */ offset_t url_ftell(ByteIOContext *s); + +/** + * Gets the filesize. + * @return filesize or AVERROR + */ offset_t url_fsize(ByteIOContext *s); + +/** + * feof() equivalent for ByteIOContext. + * @return non zero if and only if end of file + */ int url_feof(ByteIOContext *s); + int url_ferror(ByteIOContext *s); int av_url_read_fpause(ByteIOContext *h, int pause); |