Public Member Functions | |
int | compareTimestamp (Buffer const other) |
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. | |
double | getTimestamp () |
Returns the nearest timestamp value of this particular buffer. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
int compareTimestamp | ( | Buffer const | other | ) |
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.
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from TypedReferenceCount.
double getTimestamp | ( | ) |
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.