Revision c1a9012d libavformat/avio.h

View differences:

libavformat/avio.h
43 43
 * sizeof(AVIOContext) must not be used outside libav*.
44 44
 */
45 45
typedef struct {
46
    unsigned char *buffer;
47
    int buffer_size;
48
    unsigned char *buf_ptr, *buf_end;
49
    void *opaque;
46
    unsigned char *buffer;  /**< Start of the buffer. */
47
    int buffer_size;        /**< Maximum buffer size */
48
    unsigned char *buf_ptr; /**< Current position in the buffer */
49
    unsigned char *buf_end; /**< End of the data, may be less than
50
                                 buffer+buffer_size if the read function returned
51
                                 less data than requested, e.g. for streams where
52
                                 no more data has been received yet. */
53
    void *opaque;           /**< A private pointer, passed to the read/write/seek/...
54
                                 functions. */
50 55
    int (*read_packet)(void *opaque, uint8_t *buf, int buf_size);
51 56
    int (*write_packet)(void *opaque, uint8_t *buf, int buf_size);
52 57
    int64_t (*seek)(void *opaque, int64_t offset, int whence);

Also available in: Unified diff