Panda3D
|
Public Member Functions | |
Buffer (size_t block_size) | |
virtual int | compare_timestamp (const Buffer *other) const |
Used to sort different buffers to ensure they correspond to the same source frame, particularly important when synchronizing the different pages of a multi-page texture. | |
virtual TypeHandle | force_init_type () |
virtual double | get_timestamp () const |
Returns the nearest timestamp value of this particular buffer. | |
virtual TypeHandle | get_type () const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Public Attributes | |
unsigned char * | _block |
size_t | _block_size |
Definition at line 66 of file movieVideoCursor.h.
int MovieVideoCursor::Buffer::compare_timestamp | ( | const Buffer * | other | ) | const [virtual] |
Used to sort different buffers to ensure they correspond to the same source frame, particularly important when synchronizing the different pages of a multi-page texture.
Returns 0 if the two buffers are of the same frame, <0 if this one comes earlier than the other one, and >0 if the other one comes earlier.
Definition at line 390 of file movieVideoCursor.cxx.
double MovieVideoCursor::Buffer::get_timestamp | ( | ) | const [virtual] |
Returns the nearest timestamp value of this particular buffer.
Ideally, MovieVideoCursor::set_time() for this timestamp would return this buffer again. This need be defined only if compare_timestamp() is also defined.
Definition at line 404 of file movieVideoCursor.cxx.
static void MovieVideoCursor::Buffer::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from TypedReferenceCount.
Definition at line 88 of file movieVideoCursor.h.
References TypedReferenceCount::init_type().