15 #ifndef FFMPEGVIRTUALFILE_H
16 #define FFMPEGVIRTUALFILE_H
18 #include "pandabase.h"
19 #include "config_movies.h"
21 #include "subfileInfo.h"
25 #include "libavformat/avio.h"
29 struct AVFormatContext;
46 bool open_vfs(
const Filename &filename);
50 INLINE
bool is_open()
const;
51 INLINE AVFormatContext *get_format_context()
const;
53 static void register_protocol();
57 static int read_packet(
void *opaque, uint8_t *buf,
int buf_size);
58 static int64_t seek(
void *opaque, int64_t offset,
int whence);
60 static void log_callback(
void *ptr,
int level,
const char *fmt, va_list v1);
63 AVIOContext *_io_context;
64 AVFormatContext *_format_context;
73 #include "ffmpegVirtualFile.I"
75 #endif // FFMPEGVIRTUALFILE_H
Enables ffmpeg to access panda's VFS.
The name of a file, such as a texture file or an Egg file.
This class records a particular byte sub-range within an existing file on disk.