summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-09 12:20:04 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-10 07:41:56 +0200
commitc1a9012d62b76106d02f080adec28e13b039a53d (patch)
treef989691f43e0bb9ada7fa9fa6f7e610db8259c49 /libavformat/avio.h
parente782a0c6da0daa7b65e0355e50e68b13441b5faa (diff)
avio: document some members of AVIOContext.
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 134df12057..95cad17787 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -43,10 +43,15 @@
* sizeof(AVIOContext) must not be used outside libav*.
*/
typedef struct {
- unsigned char *buffer;
- int buffer_size;
- unsigned char *buf_ptr, *buf_end;
- void *opaque;
+ unsigned char *buffer; /**< Start of the buffer. */
+ int buffer_size; /**< Maximum buffer size */
+ unsigned char *buf_ptr; /**< Current position in the buffer */
+ unsigned char *buf_end; /**< End of the data, may be less than
+ buffer+buffer_size if the read function returned
+ less data than requested, e.g. for streams where
+ no more data has been received yet. */
+ void *opaque; /**< A private pointer, passed to the read/write/seek/...
+ functions. */
int (*read_packet)(void *opaque, uint8_t *buf, int buf_size);
int (*write_packet)(void *opaque, uint8_t *buf, int buf_size);
int64_t (*seek)(void *opaque, int64_t offset, int whence);