Lines Matching refs:AVIOContext

57  * or AVIOContext.
143 * A point in the output bytestream where the underlying AVIOContext might
155 * sizeof(AVIOContext) must not be used outside libav*.
157 * @note None of the function pointers in AVIOContext should be called
162 typedef struct AVIOContext {
166 * If this AVIOContext is created by avio_open2(), av_class is set and
169 * If this AVIOContext is manually allocated, then av_class may be set by
172 * warning -- this field can be NULL, be sure to not pass this AVIOContext
180 * (since AVIOContext is used for both):
298 * AVIOContext::bytes_written.
311 * Read-only statistic of bytes read for this AVIOContext.
316 * Read-only statistic of bytes written for this AVIOContext.
319 } AVIOContext;
388 * Allocate and initialize an AVIOContext for buffered I/O. It must be later
391 * @param buffer Memory block for input/output operations via AVIOContext.
394 * AVIOContext.buffer holds the buffer currently in use,
408 * @return Allocated AVIOContext or NULL on failure.
410 AVIOContext *avio_alloc_context(
425 void avio_context_free(AVIOContext **s);
427 void avio_w8(AVIOContext *s, int b);
428 void avio_write(AVIOContext *s, const unsigned char *buf, int size);
429 void avio_wl64(AVIOContext *s, uint64_t val);
430 void avio_wb64(AVIOContext *s, uint64_t val);
431 void avio_wl32(AVIOContext *s, unsigned int val);
432 void avio_wb32(AVIOContext *s, unsigned int val);
433 void avio_wl24(AVIOContext *s, unsigned int val);
434 void avio_wb24(AVIOContext *s, unsigned int val);
435 void avio_wl16(AVIOContext *s, unsigned int val);
436 void avio_wb16(AVIOContext *s, unsigned int val);
442 int avio_put_str(AVIOContext *s, const char *str);
446 * @param s the AVIOContext
451 int avio_put_str16le(AVIOContext *s, const char *str);
455 * @param s the AVIOContext
460 int avio_put_str16be(AVIOContext *s, const char *str);
472 void avio_write_marker(AVIOContext *s, int64_t time, enum AVIODataMarkerType type);
490 * fseek() equivalent for AVIOContext.
493 int64_t avio_seek(AVIOContext *s, int64_t offset, int whence);
499 int64_t avio_skip(AVIOContext *s, int64_t offset);
502 * ftell() equivalent for AVIOContext.
505 static av_always_inline int64_t avio_tell(AVIOContext *s)
514 int64_t avio_size(AVIOContext *s);
520 int avio_feof(AVIOContext *s);
526 int avio_vprintf(AVIOContext *s, const char *fmt, va_list ap);
532 int avio_printf(AVIOContext *s, const char *fmt, ...) av_printf_format(2, 3);
539 void avio_print_string_array(AVIOContext *s, const char *strings[]);
561 void avio_flush(AVIOContext *s);
564 * Read size bytes from AVIOContext into buf.
567 int avio_read(AVIOContext *s, unsigned char *buf, int size);
570 * Read size bytes from AVIOContext into buf. Unlike avio_read(), this is allowed
576 int avio_read_partial(AVIOContext *s, unsigned char *buf, int size);
579 * @name Functions for reading from AVIOContext
585 int avio_r8 (AVIOContext *s);
586 unsigned int avio_rl16(AVIOContext *s);
587 unsigned int avio_rl24(AVIOContext *s);
588 unsigned int avio_rl32(AVIOContext *s);
589 uint64_t avio_rl64(AVIOContext *s);
590 unsigned int avio_rb16(AVIOContext *s);
591 unsigned int avio_rb24(AVIOContext *s);
592 unsigned int avio_rb32(AVIOContext *s);
593 uint64_t avio_rb64(AVIOContext *s);
610 int avio_get_str(AVIOContext *pb, int maxlen, char *buf, int buflen);
618 int avio_get_str16le(AVIOContext *pb, int maxlen, char *buf, int buflen);
619 int avio_get_str16be(AVIOContext *pb, int maxlen, char *buf, int buflen);
658 * Create and initialize a AVIOContext for accessing the
661 * read+write mode, the AVIOContext can be used only for writing.
663 * @param s Used to return the pointer to the created AVIOContext.
671 int avio_open(AVIOContext **s, const char *url, int flags);
674 * Create and initialize a AVIOContext for accessing the
677 * read+write mode, the AVIOContext can be used only for writing.
679 * @param s Used to return the pointer to the created AVIOContext.
691 int avio_open2(AVIOContext **s, const char *url, int flags,
695 * Close the resource accessed by the AVIOContext s and free it.
704 int avio_close(AVIOContext *s);
707 * Close the resource accessed by the AVIOContext *s, free it
717 int avio_closep(AVIOContext **s);
726 int avio_open_dyn_buf(AVIOContext **s);
730 * The AVIOContext stream is left intact.
738 int avio_get_dyn_buf(AVIOContext *s, uint8_t **pbuffer);
749 int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer);
778 int avio_pause(AVIOContext *h, int pause);
799 int64_t avio_seek_time(AVIOContext *h, int stream_index,
811 int avio_read_to_bprint(AVIOContext *h, struct AVBPrint *pb, size_t max_size);
820 int avio_accept(AVIOContext *s, AVIOContext **c);
841 int avio_handshake(AVIOContext *c);