![]() |
libgpac
Documentation of the core library of GPAC
|
filter session object - see GF_FilterSession
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 | |
Protected Attributes | |
| _sess | |
| python.libgpac.libgpac.FilterSession.__init__ | ( | self, | |
| flags = 0, | |||
| blacklist = None, | |||
| nb_threads = 0, | |||
| sched_type = 0 ) |
| 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 | ) |
| python.libgpac.libgpac.FilterSession.on_filter_new | ( | self, | |
| _filter ) |
| _filter | Filter object being added |
| python.libgpac.libgpac.FilterSession.on_filter_del | ( | self, | |
| _filter ) |
| _filter | Filter object being removed |
| python.libgpac.libgpac.FilterSession.on_gl_activate | ( | self, | |
| do_activate ) |
| do_activate | set to true if openGL context ust be activated for calling thread |
| python.libgpac.libgpac.FilterSession.external_opengl_provider | ( | self | ) |
| python.libgpac.libgpac.FilterSession.run | ( | self | ) |
Here is the call graph for this function:| python.libgpac.libgpac.FilterSession.load_src | ( | self, | |
| URL, | |||
| parentURL = None ) |
| 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 ) |
| 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 ) |
| fname | filter name and options |
Here is the call graph for this function:| python.libgpac.libgpac.FilterSession.post | ( | self, | |
| task ) |
| task | task object to post |
Here is the call graph for this function:| python.libgpac.libgpac.FilterSession.abort | ( | self, | |
| flush = 0 ) |
| flush | flush pipeline before abort |
| python.libgpac.libgpac.FilterSession.get_filter | ( | self, | |
| index ) |
| index | index of filter |
| python.libgpac.libgpac.FilterSession.lock | ( | self, | |
| lock ) |
| lock | if True, locks otherwise unlocks |
| python.libgpac.libgpac.FilterSession.reporting | ( | self, | |
| do_report ) |
| do_report | if True, enables reporting |
| python.libgpac.libgpac.FilterSession.print_stats | ( | self | ) |
| python.libgpac.libgpac.FilterSession.print_graph | ( | self | ) |
| python.libgpac.libgpac.FilterSession.fire_event | ( | self, | |
| evt, | |||
| _filter = None, | |||
| upstream = False ) |
| 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 ) |
| mime | mime type to check |
| python.libgpac.libgpac.FilterSession.is_supported_source | ( | self, | |
| url, | |||
| parent = None ) |
| url | URL to check |
| parent | parent URL for relative URLs |