14 #ifndef FFMPEGVIRTUALFILE_H
15 #define FFMPEGVIRTUALFILE_H
24 #include <libavformat/avio.h>
28 struct AVFormatContext;
42 bool open_vfs(
const Filename &filename);
46 INLINE
bool is_open()
const;
47 INLINE AVFormatContext *get_format_context()
const;
49 static void register_protocol();
53 static int read_packet(
void *opaque, uint8_t *buf,
int buf_size);
54 static int64_t seek(
void *opaque, int64_t offset,
int whence);
56 static void log_callback(
void *ptr,
int level,
const char *fmt, va_list v1);
59 AVIOContext *_io_context;
60 AVFormatContext *_format_context;
61 std::streampos _start;
62 std::streamsize _size;
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.