Modules
ADT Database GTK2 GUI IP PiJAX Public Sql Stdio Subversion System Tools Xosd lua v4l2 wx
Recent Changes
Public.Parser.XML2 1.50
Public.ZeroMQ 1.1
Public.Template.Mustache 1.0
Public.Protocols.XMPP 1.4
Sql.Provider.jdbc 1.0
Popular Downloads
Public.Parser.JSON2 1.0
Public.Parser.JSON 0.2
GTK2 2.23
Public.Web.FCGI 1.8
Public.Parser.XML2 1.48
|
Pike Module Reference: module version 1, prepared
MODULE Subtitles |
Classes Render
Methods set_font_directories()
|
-
Method set_font_directories
void Subtitles.set_font_directories(array(string) directories)
- Description
Set the directores in which font files are located.
There should at minimum be a font with a name beginning with
'Arial' in one of the directories.
|
CLASS Subtitles.Render |
Methods get_image() set_data() set_file() set_size() set_texture() update()
|
-
Method update
int Subtitles.Render()->update(float seconds)
- Description
Update the current time. If this function returns true a new image
has been generated.
If a texture has been set using set_texture, the image in the
texture will have been updated automatically.
-
Method get_image
string Subtitles.Render()->get_image()
- Description
Returns the raw image data as a string. Each pixel is 4 bytes, and
the order is ABGR.
-
Method set_texture
void Subtitles.Render()->set_texture(int texture_id)
- Description
Indicates that drawing should be done directly to the OpenGL
texture specified.
-
Method set_size
void Subtitles.Render()->set_size(int width, int height)
- Description
Set the size of the image that will be generated. Regardless of
the aspect ratio square pixels are always asumed.
-
Method set_file
int Subtitles.Render()->set_file(string file)
- Description
Read the subtitles from the specified file.
If no recognizable subtitles was found in the file, 0 is returned.
-
Method set_data
int Subtitles.Render()->set_data(string file)
- Description
Decode the subtitles from the specified data.
If no recognizable subtitles were found in the data, 0 is returned.
|
|