00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AVFORMAT_AVIO_INTERNAL_H
00021 #define AVFORMAT_AVIO_INTERNAL_H
00022
00023 #include "avio.h"
00024
00025 int ffio_init_context(AVIOContext *s,
00026 unsigned char *buffer,
00027 int buffer_size,
00028 int write_flag,
00029 void *opaque,
00030 int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
00031 int (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
00032 int64_t (*seek)(void *opaque, int64_t offset, int whence));
00033
00034
00041 int ffio_read_partial(AVIOContext *s, unsigned char *buf, int size);
00042
00043 void ffio_fill(AVIOContext *s, int b, int count);
00044
00045 static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s)
00046 {
00047 avio_wl32(pb, MKTAG(s[0], s[1], s[2], s[3]));
00048 }
00049
00062 int ffio_rewind_with_probe_data(AVIOContext *s, unsigned char *buf, int buf_size);
00063
00064 #endif // AVFORMAT_AVIO_INTERNAL_H