Revision 3c96c648 libavformat/avio.h

View differences:

libavformat/avio.h
458 458
attribute_deprecated unsigned long get_checksum(AVIOContext *s);
459 459
#endif
460 460

  
461
/**
462
 * Allocate and initialize an AVIOContext for buffered I/O. It must be later
463
 * freed with av_free().
464
 *
465
 * @param buffer Memory block for input/output operations via AVIOContext.
466
 * @param buffer_size The buffer size is very important for performance.
467
 *        For protocols with fixed blocksize it should be set to this blocksize.
468
 *        For others a typical size is a cache page, e.g. 4kb.
469
 * @param write_flag Set to 1 if the buffer should be writable, 0 otherwise.
470
 * @param opaque An opaque pointer to user-specific data.
471
 * @param read_packet  A function for refilling the buffer, may be NULL.
472
 * @param write_packet A function for writing the buffer contents, may be NULL.
473
 * @param seek A function for seeking to specified byte position, may be NULL.
474
 *
475
 * @return Allocated AVIOContext or NULL on failure.
476
 */
461 477
AVIOContext *avio_alloc_context(
462 478
                  unsigned char *buffer,
463 479
                  int buffer_size,

Also available in: Unified diff