15 #ifndef MOVIEVIDEOCURSOR_H 16 #define MOVIEVIDEOCURSOR_H 18 #include "pandabase.h" 20 #include "pointerTo.h" 21 #include "memoryBase.h" 22 #include "pStatCollector.h" 23 #include "deletedChain.h" 24 #include "typedReferenceCount.h" 52 INLINE
int size_x()
const;
53 INLINE
int size_y()
const;
54 INLINE
int get_num_components()
const;
55 INLINE
double length()
const;
56 INLINE
bool can_seek()
const;
57 INLINE
bool can_seek_fast()
const;
58 INLINE
bool aborted()
const;
60 INLINE
bool ready()
const;
61 INLINE
bool streaming()
const;
62 void setup_texture(
Texture *tex)
const;
64 virtual bool set_time(
double timestamp,
int loop_count);
68 ALLOC_DELETED_CHAIN(
Buffer);
74 virtual int compare_timestamp(
const Buffer *other)
const;
75 virtual double get_timestamp()
const;
78 unsigned char *_block;
88 static void init_type() {
89 TypedReferenceCount::init_type();
90 register_type(_type_handle,
"MovieVideoCursor::Buffer",
91 TypedReferenceCount::get_class_type());
94 return get_class_type();
96 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
101 virtual PT(
Buffer) fetch_buffer();
103 virtual void apply_to_texture(
const Buffer *buffer,
Texture *t,
int page);
104 virtual void apply_to_texture_rgb(
const Buffer *buffer,
Texture *t,
int page);
105 virtual void apply_to_texture_alpha(
const Buffer *buffer,
Texture *t,
int page,
int alpha_src);
108 Buffer *get_standard_buffer();
109 virtual PT(
Buffer) make_new_buffer();
123 PT(
Buffer) _standard_buffer;
140 static void init_type() {
141 TypedWritableReferenceCount::init_type();
142 register_type(_type_handle,
"MovieVideoCursor",
143 TypedWritableReferenceCount::get_class_type());
147 return get_class_type();
149 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
155 #include "movieVideoCursor.I" 156 #include "movieVideo.h" 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.
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.
A lightweight class that represents a single element that may be timed and/or counted via stats...
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...
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
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...