|
| __init__ (InkblotVideo src) |
| xxx More...
|
|
Public Member Functions inherited from MovieVideoCursor |
bool | aborted () |
| Returns true if the video has aborted prematurely. For example, this could occur if the Movie was actually an internet TV station, and the connection was lost. Reaching the normal end of the video does not constitute an 'abort' condition. More...
|
|
| applyToTexture (const MovieVideoCursor::Buffer buffer, Texture t, int page) |
| Stores this buffer's contents in the indicated texture. More...
|
|
| applyToTextureAlpha (const MovieVideoCursor::Buffer buffer, Texture t, int page, int alpha_src) |
| Copies this buffer's contents into the alpha channel of the supplied texture. The RGB channels of the texture are not touched. More...
|
|
| applyToTextureRgb (const MovieVideoCursor::Buffer buffer, Texture t, int page) |
| Copies this buffer's contents into the RGB channels of the supplied texture. The alpha channel of the texture is not touched. More...
|
|
bool | canSeek () |
| Returns true if the movie can seek. If this is true, seeking is still not guaranteed to be fast: for some movies, seeking is implemented by rewinding to the beginning and then fast-forwarding to the desired location. Even if the movie cannot seek, the fetch methods can still advance to an arbitrary location by reading frames and discarding them. However, to move backward, can_seek must return true. More...
|
|
bool | canSeekFast () |
| Returns true if seek operations are constant time. More...
|
|
MovieVideoCursor::Buffer | fetchBuffer () |
| Gets the current video frame (as specified by set_time()) from the movie and returns it in a pre-allocated buffer. You may simply let the buffer dereference and delete itself when you are done with it. More...
|
|
int | getNumComponents () |
| Returns 4 if the movie has an alpha channel, 3 otherwise. More...
|
|
MovieVideo | getSource () |
| Get the MovieVideo which this cursor references. More...
|
|
double | length () |
| Returns the length of the movie. More...
|
|
bool | ready () |
| Returns true if the cursor is a streaming source, and if a video frame is ready to be read. For non- streaming sources, this is always false. More...
|
|
bool | setTime (double timestamp, int loop_count) |
| Updates the cursor to the indicated time. If loop_count >= 1, the time is clamped to the movie's length * loop_count. If loop_count <= 0, the time is understood to be modulo the movie's length. More...
|
|
| setupTexture (Texture tex) |
| Set up the specified Texture object to contain content from this movie. This should be called once, not every frame. More...
|
|
int | sizeX () |
| Get the horizontal size of the movie. More...
|
|
int | sizeY () |
| Get the vertical size of the movie. More...
|
|
bool | streaming () |
| Returns true if the video frames are being "pushed" at us by something that operates at its own speed - for example, a webcam. In this case, the frames come when they're ready to come. Attempting to read too soon will produce nothing, reading too late will cause frames to be dropped. In this case, the ready flag can be used to determine whether or not a frame is ready for reading. More...
|
|
Public Member Functions inherited from TypedWritable |
object | __reduce__ () |
|
object | __reduce_persist__ (object pickler) |
|
str | encodeToBamStream () |
| Converts the TypedWritable object into a single stream of data using a BamWriter, and returns that data as a string string. Returns empty string on failure. More...
|
|
bool | encodeToBamStream (String data, BamWriter writer) |
| Converts the TypedWritable object into a single stream of data using a BamWriter, and stores that data in the indicated string. Returns true on success, false on failure. More...
|
|
UpdateSeq | getBamModified () |
| Returns the current bam_modified counter. This counter is normally incremented automatically whenever the object is modified. More...
|
|
| markBamModified () |
| Increments the bam_modified counter, so that this object will be invalidated and retransmitted on any open bam streams. This should normally not need to be called by user code; it should be called internally when the object has been changed in a way that legitimately requires its retransmission to any connected clients. More...
|
|
Public Member Functions inherited from TypedObject |
TypeHandle | getType () |
| Derived classes should override this function to return get_class_type(). More...
|
|
int | getTypeIndex () |
| Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index(). More...
|
|
bool | isExactType (TypeHandle handle) |
| Returns true if the current object is the indicated type exactly. More...
|
|
bool | isOfType (TypeHandle handle) |
| Returns true if the current object is or derives from the indicated type. More...
|
|
Public Member Functions inherited from ReferenceCount |
int | getRefCount () |
| Returns the current reference count. More...
|
|
| ref () |
| Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. More...
|
|
bool | testRefCountIntegrity () |
| Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise. More...
|
|
bool | testRefCountNonzero () |
| Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise. More...
|
|
bool | unref () |
| Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic.) However, see the helper function unref_delete(). More...
|
|
A cellular automaton that generates an amusing pattern of swirling colors.