14 #ifndef MOVIEVIDEOCURSOR_H 15 #define MOVIEVIDEOCURSOR_H 48 INLINE
int size_x()
const;
49 INLINE
int size_y()
const;
50 INLINE
int get_num_components()
const;
51 INLINE
double length()
const;
52 INLINE
bool can_seek()
const;
53 INLINE
bool can_seek_fast()
const;
54 INLINE
bool aborted()
const;
56 INLINE
bool ready()
const;
57 INLINE
bool streaming()
const;
58 void setup_texture(
Texture *tex)
const;
60 virtual bool set_time(
double timestamp,
int loop_count);
64 ALLOC_DELETED_CHAIN(
Buffer);
70 virtual int compare_timestamp(
const Buffer *other)
const;
71 virtual double get_timestamp()
const;
74 unsigned char *_block;
84 static void init_type() {
85 TypedReferenceCount::init_type();
87 TypedReferenceCount::get_class_type());
90 return get_class_type();
92 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
97 virtual PT(
Buffer) fetch_buffer();
99 virtual void apply_to_texture(
const Buffer *buffer,
Texture *t,
int page);
100 virtual void apply_to_texture_rgb(
const Buffer *buffer,
Texture *t,
int page);
101 virtual void apply_to_texture_alpha(
const Buffer *buffer,
Texture *t,
int page,
int alpha_src);
104 Buffer *get_standard_buffer();
105 virtual PT(
Buffer) make_new_buffer();
119 PT(
Buffer) _standard_buffer;
136 static void init_type() {
137 TypedWritableReferenceCount::init_type();
139 TypedWritableReferenceCount::get_class_type());
143 return get_class_type();
145 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
Base class for objects that can be written to and read from Bam files.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is our own Panda specialization on the default STL list.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A lightweight class that represents a single element that may be timed and/or counted via stats.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A MovieVideo is actually any source that provides a sequence of video frames.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A MovieVideo is actually any source that provides a sequence of video frames.
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 ...
This template class can be used to provide faster allocation/deallocation for many Panda objects.