MovieTexture¶
-
class MovieTexture¶
Bases:
TextureA texture that fetches video frames from an underlying object of class Movie.
Inheritance diagram
digraph inheritance53547ee3f4 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "MovieTexture" [URL="acron.core.MovieTexture.html#acron.core.MovieTexture",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "Texture" -> "MovieTexture" [arrowsize=0.75,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "Texture" [URL="acron.core.Texture.html#acron.core.Texture",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "Texture" [arrowsize=0.75,style=""]; "Namable" -> "Texture" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }- MovieTexture.__init__()¶
Creates a blank movie texture. Movies must be added using do_read_one or do_load_one.
Creates a texture playing the specified movie.
- MovieTexture.get_alpha_cursor()¶
Returns the
MovieVideoCursorthat is feeding the alpha channel for the indicated page, where 0 <= page <get_num_pages().
- static MovieTexture.get_class_type()¶
- MovieTexture.get_color_cursor()¶
Returns the
MovieVideoCursorthat is feeding the color channels for the indicated page, where 0 <= page <get_num_pages().
- MovieTexture.get_loop()¶
Returns true if the movie’s loop count is not equal to one.
- MovieTexture.get_loop_count()¶
Returns the movie’s loop count.
- MovieTexture.get_play_rate()¶
Gets the movie’s play-rate.
- MovieTexture.get_time()¶
Returns the current value of the movie’s cursor. If the movie’s loop count is greater than one, then its length is effectively multiplied for the purposes of this function. In other words, the return value will be in the range 0.0 to (length * loopcount).
- MovieTexture.get_video_height()¶
Returns the height in texels of the source video stream. This is not necessarily the height of the actual texture, since the texture may have been expanded to raise it to a power of 2.
- MovieTexture.get_video_length()¶
Returns the length of the video.
- MovieTexture.get_video_width()¶
Returns the width in texels of the source video stream. This is not necessarily the width of the actual texture, since the texture may have been expanded to raise it to a power of 2.
- MovieTexture.is_playing()¶
Returns true if the movie’s cursor is advancing.
- MovieTexture.play()¶
Plays the movie from the beginning.
- MovieTexture.restart()¶
Start playing the movie from where it was last paused. Has no effect if the movie is not paused, or if the movie’s cursor is already at the end.
- MovieTexture.set_loop()¶
If true, sets the movie’s loop count to 1 billion. If false, sets the movie’s loop count to one.
- MovieTexture.set_loop_count()¶
Sets the movie’s loop count to the desired value.
- MovieTexture.set_play_rate()¶
Sets the movie’s play-rate. This is the speed at which the movie’s cursor advances. The default is to advance 1.0 movie-seconds per real-time second.
- MovieTexture.set_time()¶
Sets the movie’s cursor.
- MovieTexture.stop()¶
Stops a currently playing or looping movie right where it is. The movie’s cursor remains frozen at the point where it was stopped.
- MovieTexture.synchronize_to()¶
Synchronize this texture to a sound. Typically, you would load the texture and the sound from the same AVI file.
- MovieTexture.unsynchronize()¶
Stop synchronizing with a sound.