libgpac
Documentation of the core library of GPAC
|
filter session object - see GF_FilterSession
Public Member Functions | |
def | __init__ (self, flags=0, blacklist=None, nb_threads=0, sched_type=0) |
constructor for filter session - see gf_fs_new More... | |
def | delete (self) |
delete an existing filter session - see gf_fs_del More... | |
def | on_filter_new (self, _filter) |
called whenever a new filter is added, typically used by classes deriving from FilterSession More... | |
def | on_filter_del (self, _filter) |
called whenever a filter is destroyed, typically used by classes deriving from FilterSession More... | |
def | on_gl_activate (self, do_activate) |
called whenever a GL context must be activated, typically used by classes deriving from FilterSession More... | |
def | external_opengl_provider (self) |
call this function to prevent openGL context creation in libgpac, delegating GL context management to the calling app More... | |
def | run (self) |
run the session - see gf_fs_run More... | |
def | load_src (self, URL, parentURL=None) |
load source filter - see gf_fs_load_source More... | |
def | load_dst (self, URL, parentURL=None) |
load destination filter - see gf_fs_load_destination More... | |
def | load (self, fname) |
load a filter - see gf_fs_load_filter More... | |
def | post (self, task) |
post a user task to the filter sesison - see gf_fs_post_user_task More... | |
def | abort (self, flush=0) |
abort the session - see gf_fs_abort More... | |
def | get_filter (self, index) |
get a filter by index - see gf_fs_get_filter More... | |
def | lock (self, lock) |
lock the session - see gf_fs_lock_filters More... | |
def | reporting (self, do_report) |
enable status reporting by filters - see gf_fs_enable_reporting More... | |
def | print_stats (self) |
print statistics on stderr - see gf_fs_print_stats More... | |
def | print_graph (self) |
print graph on stderr - see gf_fs_print_connections More... | |
def | fire_event (self, evt, _filter=None, upstream=False) |
fire an event on the given filter if any, or on any filter accepting user events More... | |
def | is_supported_mime (self, mime) |
checks if a given mime is supported - see gf_fs_is_supported_mime More... | |
def | is_supported_source (self, url, parent=None) |
checks if a given source URL is supported - see gf_fs_is_supported_source More... | |
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. | |
def 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 |
def python.libgpac.libgpac.FilterSession.delete | ( | self | ) |
def python.libgpac.libgpac.FilterSession.on_filter_new | ( | self, | |
_filter | |||
) |
_filter | Filter object being added |
def python.libgpac.libgpac.FilterSession.on_filter_del | ( | self, | |
_filter | |||
) |
_filter | Filter object being removed |
def python.libgpac.libgpac.FilterSession.on_gl_activate | ( | self, | |
do_activate | |||
) |
do_activate | set to true if openGL context ust be activated for calling thread |
def python.libgpac.libgpac.FilterSession.external_opengl_provider | ( | self | ) |
def python.libgpac.libgpac.FilterSession.run | ( | self | ) |
def python.libgpac.libgpac.FilterSession.load_src | ( | self, | |
URL, | |||
parentURL = None |
|||
) |
URL | source URL to load |
parentURL | URL of parent resource for relative path resolution |
def python.libgpac.libgpac.FilterSession.load_dst | ( | self, | |
URL, | |||
parentURL = None |
|||
) |
URL | source URL to load |
parentURL | URL of parent resource for relative path resolution |
def python.libgpac.libgpac.FilterSession.load | ( | self, | |
fname | |||
) |
fname | filter name and options |
def python.libgpac.libgpac.FilterSession.post | ( | self, | |
task | |||
) |
task | task object to post |
def python.libgpac.libgpac.FilterSession.abort | ( | self, | |
flush = 0 |
|||
) |
flush | flush pipeline before abort |
def python.libgpac.libgpac.FilterSession.get_filter | ( | self, | |
index | |||
) |
index | index of filter |
def python.libgpac.libgpac.FilterSession.lock | ( | self, | |
lock | |||
) |
lock | if True, locks otherwise unlocks |
def python.libgpac.libgpac.FilterSession.reporting | ( | self, | |
do_report | |||
) |
do_report | if True, enables reporting |
def python.libgpac.libgpac.FilterSession.print_stats | ( | self | ) |
def python.libgpac.libgpac.FilterSession.print_graph | ( | self | ) |
def 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 |
def python.libgpac.libgpac.FilterSession.is_supported_mime | ( | self, | |
mime | |||
) |
mime | mime type to check |
def python.libgpac.libgpac.FilterSession.is_supported_source | ( | self, | |
url, | |||
parent = None |
|||
) |
url | URL to check |
parent | parent URL for relative URLs |