libgpac
Documentation of the core library of GPAC
libgpac core tools

Core tools for libgpac. More...

+ Collaboration diagram for libgpac core tools:

Modules

 libgpac core tools
 FileIO tools for libgpac.
 

Functions

def python.libgpac.libgpac.e2s (err)
 convert error value to string message More...
 
def python.libgpac.libgpac.init (mem_track=0, profile=None)
 initialize libgpac - see gf_sys_init More...
 
def python.libgpac.libgpac.close ()
 close libgpac - see gf_sys_close More...
 
def python.libgpac.libgpac.set_logs (logs, reset=False)
 set log tools and levels - see gf_log_set_tools_levels More...
 
def python.libgpac.libgpac.sys_clock ()
 get clock - see gf_sys_clock More...
 
def python.libgpac.libgpac.sys_clock_high_res ()
 get high res clock - see gf_sys_clock_high_res More...
 
def python.libgpac.libgpac.set_args (args)
 set libgpac arguments - see gf_sys_set_args More...
 
def python.libgpac.libgpac.set_rmt_fun (callback_obj)
 set profiler (Remotery) callback - see gf_sys_profiler_set_callback More...
 
def python.libgpac.libgpac.rmt_log (text)
 send message to profiler (Remotery) - see gf_sys_profiler_log More...
 
def python.libgpac.libgpac.rmt_send (text)
 send message to profiler (Remotery) - see gf_sys_profiler_send More...
 
def python.libgpac.libgpac.rmt_on ()
 check if profiler (Remotery) sampling is enabled - see gf_sys_profiler_sampling_enabled More...
 
def python.libgpac.libgpac.rmt_enable (value)
 enable or disable sampling in profiler (Remotery) - see gf_sys_profiler_enable_sampling More...
 
def python.libgpac.libgpac.sleep (value)
 sleep for given time in milliseconds More...
 

Variables

bool python.libgpac.libgpac.numpy_support
 set to True if numpy was successfully loaded
 
 python.libgpac.libgpac._libgpac
 ctypes instance of libgpac
 
bool python.libgpac.libgpac._libgpac_abi_mismatch = False
 Set to true if mismatch was detected between the ABI version the Python wrapper was designed and the libgpac shared library ABI version A warning is thrown if mismatched, but it is left up to the pythin script to decide whether it still wants to use libgpac wrapper.
 
 python.libgpac.libgpac.version
 libgpac version (string)
 
 python.libgpac.libgpac.copyright
 libgpac copyright notice (string)
 
 python.libgpac.libgpac.copyright_cite
 libgpac full copyright notice (string)
 

Detailed Description

Function Documentation

◆ e2s()

def python.libgpac.libgpac.e2s (   err)
Parameters
errgpac error code (int)
Returns
string

◆ init()

def python.libgpac.libgpac.init (   mem_track = 0,
  profile = None 
)
Parameters
mem_track
profile
Returns

◆ close()

def python.libgpac.libgpac.close ( )
Note
Make sure you have destroyed all associated gpac resources before calling this !
Returns

◆ set_logs()

def python.libgpac.libgpac.set_logs (   logs,
  reset = False 
)
Note
Make sure you have destroyed all associated gpac resources before calling this !
Parameters
logs
resetif true, resets all logs to default
Returns

◆ sys_clock()

def python.libgpac.libgpac.sys_clock ( )
Returns
clock in milliseconds

◆ sys_clock_high_res()

def python.libgpac.libgpac.sys_clock_high_res ( )
Returns
clock in microseconds

◆ set_args()

def python.libgpac.libgpac.set_args (   args)
Parameters
argslist of strings, the first string is ignored (considered to be the executable name)
Returns

◆ set_rmt_fun()

def python.libgpac.libgpac.set_rmt_fun (   callback_obj)
Parameters
callback_objobject to call back, must have a method on_rmt_event taking a single string parameter
Returns
True if success, False if no Remotery support

◆ rmt_log()

def python.libgpac.libgpac.rmt_log (   text)
Parameters
texttext to send
Returns
True if success, False if no Remotery support

◆ rmt_send()

def python.libgpac.libgpac.rmt_send (   text)
Parameters
texttext to send
Returns
True if success, False if no Remotery support

◆ rmt_on()

def python.libgpac.libgpac.rmt_on ( )
Returns
True if enabled, False otherwise

◆ rmt_enable()

def python.libgpac.libgpac.rmt_enable (   value)
Parameters
valueenable or disable sampling
Returns

◆ sleep()

def python.libgpac.libgpac.sleep (   value)
Parameters
valuetime to sleep
Returns