![]() |
libgpac
Documentation of the core library of GPAC
|
filter session object - see Filter Session More...
Public Member Functions | |
| __init__ (self, flags=0, blacklist=None, nb_threads=0, sched_type=0) | |
| constructor for filter session - see gf_fs_new | |
| delete (self) | |
| delete an existing filter session - see gf_fs_del | |
| on_filter_new (self, _filter) | |
| called whenever a new filter is added, typically used by classes deriving from FilterSession | |
| on_filter_del (self, _filter) | |
| called whenever a filter is destroyed, typically used by classes deriving from FilterSession | |
| on_gl_activate (self, do_activate) | |
| called whenever a GL context must be activated, typically used by classes deriving from FilterSession | |
| external_opengl_provider (self) | |
| call this function to prevent openGL context creation in libgpac, delegating GL context management to the calling app | |
| run (self) | |
| run the session - see gf_fs_run | |
| load_src (self, URL, parentURL=None) | |
| load source filter - see gf_fs_load_source | |
| load_dst (self, URL, parentURL=None) | |
| load destination filter - see gf_fs_load_destination | |
| load (self, fname) | |
| load a filter - see gf_fs_load_filter | |
| post (self, task) | |
| post a user task to the filter sesison - see gf_fs_post_user_task | |
| abort (self, flush=0) | |
| abort the session - see gf_fs_abort | |
| get_filter (self, index) | |
| get a filter by index - see gf_fs_get_filter | |
| lock (self, lock) | |
| lock the session - see gf_fs_lock_filters | |
| reporting (self, do_report) | |
| enable status reporting by filters - see gf_fs_enable_reporting | |
| print_stats (self) | |
| print statistics on stderr - see gf_fs_print_stats | |
| print_graph (self) | |
| print graph on stderr - see gf_fs_print_connections | |
| fire_event (self, evt, _filter=None, upstream=False) | |
| fire an event on the given filter if any, or on any filter accepting user events | |
| is_supported_mime (self, mime) | |
| checks if a given mime is supported - see gf_fs_is_supported_mime | |
| is_supported_source (self, url, parent=None) | |
| checks if a given source URL is supported - see gf_fs_is_supported_source | |
Data Fields | |
| last_task | |
| set to true if this is the last task running, readonly - see gf_fs_is_last_task | |
| nb_filters | |
| number of filters in session, readonly - see gf_fs_get_filters_count | |
| http_bitrate | |
| current HTTP cumulated download rate, readonly - see gf_fs_get_http_rate | |
| http_max_bitrate | |
| HTTP max download rate - see gf_fs_get_http_max_rate and gf_fs_set_http_max_rate. | |
Protected Attributes | |
| _sess | |
filter session object - see Filter Session
| python.libgpac.libgpac.FilterSession.__init__ | ( | self, | |
flags = 0, |
|||
blacklist = None, |
|||
nb_threads = 0, |
|||
sched_type = 0 |
|||
| ) |
constructor for filter session - see gf_fs_new
| flags | session flags (int) |
| blacklist | list of blacklisted filters |
| nb_threads | number of threads to use (int) |
| sched_type | session scheduler type |
| python.libgpac.libgpac.FilterSession.delete | ( | self | ) |
delete an existing filter session - see gf_fs_del
| python.libgpac.libgpac.FilterSession.on_filter_new | ( | self, | |
| _filter | |||
| ) |
called whenever a new filter is added, typically used by classes deriving from FilterSession
| _filter | Filter object being added |
| python.libgpac.libgpac.FilterSession.on_filter_del | ( | self, | |
| _filter | |||
| ) |
called whenever a filter is destroyed, typically used by classes deriving from FilterSession
| _filter | Filter object being removed |
| python.libgpac.libgpac.FilterSession.on_gl_activate | ( | self, | |
| do_activate | |||
| ) |
called whenever a GL context must be activated, typically used by classes deriving from FilterSession
| do_activate | set to true if openGL context ust be activated for calling thread |
| python.libgpac.libgpac.FilterSession.external_opengl_provider | ( | self | ) |
call this function to prevent openGL context creation in libgpac, delegating GL context management to the calling app
| python.libgpac.libgpac.FilterSession.run | ( | self | ) |
| python.libgpac.libgpac.FilterSession.load_src | ( | self, | |
| URL, | |||
parentURL = None |
|||
| ) |
load source filter - see gf_fs_load_source
| URL | source URL to load |
| parentURL | URL of parent resource for relative path resolution |
Here is the call graph for this function:| python.libgpac.libgpac.FilterSession.load_dst | ( | self, | |
| URL, | |||
parentURL = None |
|||
| ) |
load destination filter - see gf_fs_load_destination
| URL | source URL to load |
| parentURL | URL of parent resource for relative path resolution |
Here is the call graph for this function:| python.libgpac.libgpac.FilterSession.load | ( | self, | |
| fname | |||
| ) |
load a filter - see gf_fs_load_filter
| fname | filter name and options |
Here is the call graph for this function:| python.libgpac.libgpac.FilterSession.post | ( | self, | |
| task | |||
| ) |
post a user task to the filter sesison - see gf_fs_post_user_task
| task | task object to post |
Here is the call graph for this function:| python.libgpac.libgpac.FilterSession.abort | ( | self, | |
flush = 0 |
|||
| ) |
| python.libgpac.libgpac.FilterSession.get_filter | ( | self, | |
| index | |||
| ) |
| python.libgpac.libgpac.FilterSession.lock | ( | self, | |
| lock | |||
| ) |
| python.libgpac.libgpac.FilterSession.reporting | ( | self, | |
| do_report | |||
| ) |
enable status reporting by filters - see gf_fs_enable_reporting
| do_report | if True, enables reporting |
| python.libgpac.libgpac.FilterSession.print_stats | ( | self | ) |
print statistics on stderr - see gf_fs_print_stats
| python.libgpac.libgpac.FilterSession.print_graph | ( | self | ) |
print graph on stderr - see gf_fs_print_connections
| python.libgpac.libgpac.FilterSession.fire_event | ( | self, | |
| evt, | |||
_filter = None, |
|||
upstream = False |
|||
| ) |
fire an event on the given filter if any, or on any filter accepting user events
| evt | FilterEvent to fire |
| _filter | Filter to use as target |
| upstream | if true, walks the chain towards the sink, otehrwise towards the source |
| python.libgpac.libgpac.FilterSession.is_supported_mime | ( | self, | |
| mime | |||
| ) |
checks if a given mime is supported - see gf_fs_is_supported_mime
| mime | mime type to check |
| python.libgpac.libgpac.FilterSession.is_supported_source | ( | self, | |
| url, | |||
parent = None |
|||
| ) |
checks if a given source URL is supported - see gf_fs_is_supported_source
| url | URL to check |
| parent | parent URL for relative URLs |
| python.libgpac.libgpac.FilterSession.last_task |
set to true if this is the last task running, readonly - see gf_fs_is_last_task
| python.libgpac.libgpac.FilterSession.nb_filters |
number of filters in session, readonly - see gf_fs_get_filters_count
| python.libgpac.libgpac.FilterSession.http_bitrate |
current HTTP cumulated download rate, readonly - see gf_fs_get_http_rate
| python.libgpac.libgpac.FilterSession.http_max_bitrate |
HTTP max download rate - see gf_fs_get_http_max_rate and gf_fs_set_http_max_rate.
|
protected |