pantson.MPEG v1.23


Plays MPEG movies. This is under a GPL license. All code created using this mod must also fall under the GPL license.

Download here

v1.23
- Development on this module has stopped sue to licensing reasons.
- For movies look at pantson.Theora module





MPEG reference
  pantson.mpeg: Functions Types Modinfo  

MPEG

Functions Summary

CloseMPEG Closes an MPEG file.
DrawMPEG Check to see if a frame has been drawn on the specified pixmap.
DrawMPEGimage Check to see if a frame has been drawn on the specified image.
EOM Check to see if MPEG movie has ended.
MPEGfullscreen Set the scale of the MPEG movie to fit the full screen.
MPEGheight Get the height of an MPEG movie.
MPEGwidth Get the width of an MPEG movie.
OpenMPEG Opens an MPEG file ready.
PauseMPEG Pauses or unpauses an MPEG movie.
StartMPEG Gets an MPEG ready for drawing. Can also be used for restarting an MPEG.

Types Summary

Tmpeg The MPEG type.

Functions

Function CloseMPEG:Int(movie:Tmpeg)
Returnstrue if succesful.
DescriptionCloses an MPEG file.

Function DrawMPEG:Int(movie:Tmpeg,pixmap:TPixmap)
ReturnsTrue if a frame has been drawn.
DescriptionCheck to see if a frame has been drawn on the specified pixmap.

Function DrawMPEGimage:Int(movie:Tmpeg,image:Timage,frame:Int=0)
ReturnsTrue if a frame has been drawn.
DescriptionCheck to see if a frame has been drawn on the specified image.

Function EOM:Int(movie:Tmpeg)
ReturnsTrue if end of MPEG, false otherwise.
DescriptionCheck to see if MPEG movie has ended.

Function MPEGfullscreen:Int(movie:Tmpeg)
ReturnsThis function auto calls the setscale command. Any drawing commands after setting this value will be affected too.
DescriptionSet the scale of the MPEG movie to fit the full screen.

Function MPEGheight:Int(movie:Tmpeg,width:Int=Null)
ReturnsThe height. If provided with a width, it will return a value that is in proportion.
DescriptionGet the height of an MPEG movie.

Function MPEGwidth:Int(movie:Tmpeg,height:Int=Null)
ReturnsThe width. If provided with a height, it will return a value that is in proportion.
DescriptionGet the width of an MPEG movie.

Function OpenMPEG:Tmpeg(filename:String,buffer_size:Int=8192)
ReturnsA handle to the MPEG movie. NULL if the file doesn't exist.
DescriptionOpens an MPEG file ready.

Function PauseMPEG(movie:Tmpeg)
Returnstrue if paused. false if resumed.
DescriptionPauses or unpauses an MPEG movie.

Function StartMPEG:Int(movie:Tmpeg,seconds:Float=0)
Returnstrue.
DescriptionGets an MPEG ready for drawing. Can also be used for restarting an MPEG.

Types

Type Tmpeg
DescriptionThe MPEG type.
Methods Summary
close Closes an MPEG file.
draw Check to see if a frame has been drawn on the specified pixmap.
open Opens an MPEG file ready for drawing.
pause Pauses or unpauses an MPEG movie.
start Gets an MPEG ready For drawing. Can also be used For restarting an MPEG.
Method close()
Returnstrue if succesful.
DescriptionCloses an MPEG file.
Method draw:Int(pixmap:TPixmap=Null)
ReturnsTrue if a frame has been drawn.
DescriptionCheck to see if a frame has been drawn on the specified pixmap.
Method open:Int(filename:String,buffer_size:Int)
ReturnsA handle to the MPEG movie. NULL if the file doesn't exist.
DescriptionOpens an MPEG file ready for drawing.
Method pause:Int()
Returnstrue if paused. false if resumed.
DescriptionPauses or unpauses an MPEG movie.
Method start(t:Float=0)
Returnstrue.
DescriptionGets an MPEG ready For drawing. Can also be used For restarting an MPEG.

Module Information

Version1.00
AuthorRichard Hanson
Modserverpantson
LicenseIt is released under the terms of the GPL license.