15 #include "movieVideo.h"
16 #include "movieVideoCursor.h"
17 #include "config_movies.h"
18 #include "movieTypeRegistry.h"
19 #include "bamReader.h"
20 #include "bamWriter.h"
67 return reg->make_video(name);
90 }
else if (!_filename.empty()) {
void read_file_data(SubfileInfo &info)
Reads a block of auxiliary file data from the Bam file.
bool get_bool()
Extracts a boolean value.
void add_string(const string &str)
Adds a variable-length string to the datagram.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This class records the different types of MovieAudio and MovieVideo that are available for loading...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
string get_string()
Extracts a variable-length string.
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class's make_from_bam() method to read in all...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
void add_bool(bool value)
Adds a boolean value to the datagram.
A base class for all things which can have a name.
The name of a file, such as a texture file or an Egg file.
A MovieVideo is actually any source that provides a sequence of video frames.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
MovieVideo(const string &name="Blank Video")
This constructor returns a null video stream — a stream of plain blue and white frames that last one ...
static MovieTypeRegistry * get_global_ptr()
Returns a pointer to the global MovieTypeRegistry instance.
A MovieVideo is actually any source that provides a sequence of video frames.
This class records a particular byte sub-range within an existing file on disk.
void write_file_data(SubfileInfo &result, const Filename &filename)
Writes a block of auxiliary file data from the indicated file (within the vfs).
A class to retrieve the individual data elements previously stored in a Datagram. ...
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
bool is_empty() const
Returns true if this SubfileInfo doesn't define any file, false if it has real data.