libgpac
Documentation of the core library of GPAC
|
import"nodejs.idl";
Public Member Functions | |
GF_Err | configure_pid (_FilterPid pid, boolean is_remove) |
GF_Err | process () |
boolean | process_event (_FilterEvent event) |
GF_Err | reconfigure_output (_FilterPid *opid) |
void | push_cap (DOMString pcode, PropertyValue prop, unsigned long flag, unsigned long priority=0, unsigned long custom_type=0) |
_FilterPid | new_pid () |
void | update_status (DOMString status, unsigned long percent=0) |
void | reschedule (unsigned long when=0) |
void | notify_failure (GF_Err err, unsigned long error_type=GF_SETUP_ERROR) |
void | make_sticky () |
void | prevent_blocking (boolean enable) |
void | block_eos (boolean enable) |
void | set_max_pids (long max_pids) |
void | hint_clock (unsigned long long clock_us, nFraction media_time) |
Data Fields | |
attribute readonly boolean | block_enabled |
attribute readonly unsigned long | output_buffer |
attribute readonly unsigned long | playout_buffer |
attribute readonly boolean | sinks_done |
attribute readonly unsigned long | nb_evts_queued |
attribute readonly unsigned long long | clock_hint_time |
attribute readonly nFraction | clock_hint_mediatime |
attribute readonly boolean | connections_pending |
Custom filter object
GF_Err CustomFilter::configure_pid | ( | _FilterPid | pid, |
boolean | is_remove | ||
) |
callback used whenever a new filter pid is configured, initially set to null
pid | the PID to configure |
is_remove | set to true if PID is being removed |
GF_Err CustomFilter::process | ( | ) |
callback used by the filter to process data, initially set to null
boolean CustomFilter::process_event | ( | _FilterEvent | event | ) |
callback used whenever a new filter is added, initially set to null
event | the event being processed (read-only) |
GF_Err CustomFilter::reconfigure_output | ( | _FilterPid * | opid | ) |
callback used whenever an output pid is to be reconfigured (capability negotiation), initially set to null
opid | the filter output pid to reconfigure |
void CustomFilter::push_cap | ( | DOMString | pcode, |
PropertyValue | prop, | ||
unsigned long | flag, | ||
unsigned long | priority = 0 , |
||
unsigned long | custom_type = 0 |
||
) |
push a capability in the current capability bundle - see gf_filter_push_caps
pcode | capability name |
prop | capability value |
flag | capability flags (input, output, etc) |
priority | capability priority |
custom_type | type of property if user-defined property. If not set and user-defined, property is a string |
_FilterPid CustomFilter::new_pid | ( | ) |
create a new output pid for this filter - see gf_filter_pid_new
void CustomFilter::update_status | ( | DOMString | status, |
unsigned long | percent = 0 |
||
) |
update filter status - see gf_filter_update_status
status | status |
percent | progress in per 10000 |
void CustomFilter::reschedule | ( | unsigned long | when = 0 | ) |
reschedule the filter after a given delay - see gf_filter_ask_rt_reschedule and gf_filter_post_process_task
when | delay in microseconds |
void CustomFilter::notify_failure | ( | GF_Err | err, |
unsigned long | error_type = GF_SETUP_ERROR |
||
) |
notify an internal failure of the filter has happend - see gf_filter_notification_failure and gf_filter_setup_failure
err | the failure reason (gpac error code, int) |
error_type | the failure notification type. Can be one of:
|
void CustomFilter::make_sticky | ( | ) |
make the filter sticky - see gf_filter_make_sticky
void CustomFilter::prevent_blocking | ( | boolean | enable | ) |
prevent blocking on the filter - see gf_filter_prevent_blocking
enable | if true, blocking prevention is enabled |
void CustomFilter::block_eos | ( | boolean | enable | ) |
block eos signaling on the filter - see gf_filter_block_eos
enable | if true, eos blocking is enabled |
void CustomFilter::set_max_pids | ( | long | max_pids | ) |
set maximum number of extra pids accepted by this filter - see gf_filter_set_max_extra_input_pids
max_pids | number of extra pids, -1 for no limits |
void CustomFilter::hint_clock | ( | unsigned long long | clock_us, |
nFraction | media_time | ||
) |
set clock hint - see gf_filter_hint_single_clock
clock_us | clock in microseconds |
media_time | media time as nFraction |
attribute readonly boolean CustomFilter::block_enabled |
filter blocking is enabled - see gf_filter_block_enabled
attribute readonly unsigned long CustomFilter::output_buffer |
maximum output buffer time - see gf_filter_get_output_buffer_max
attribute readonly unsigned long CustomFilter::playout_buffer |
maximum plyaout buffer time - see gf_filter_get_output_buffer_max
attribute readonly boolean CustomFilter::sinks_done |
all sinks are done for this filter - see gf_filter_all_sinks_done
attribute readonly unsigned long CustomFilter::nb_evts_queued |
number of queued events on the filter - see gf_filter_get_num_events_queued
attribute readonly unsigned long long CustomFilter::clock_hint_time |
clock hint value in microseconds - see gf_filter_get_clock_hint
attribute readonly nFraction CustomFilter::clock_hint_mediatime |
clock hint media time as fraction - see gf_filter_get_clock_hint
attribute readonly boolean CustomFilter::connections_pending |
indicating connections are pending on the filter, readonly - see gf_filter_connections_pending