libgpac
Documentation of the core library of GPAC
|
import"nodejs.idl";
Data Fields | |
attribute DOMString | name |
attribute readonly DOMString | filter_name |
attribute boolean | eos |
attribute readonly boolean | has_seen_eos |
attribute readonly boolean | eos_received |
attribute readonly boolean | would_block |
attribute readonly boolean | sparse |
attribute unsigned long long | max_buffer |
attribute readonly unsigned long long | buffer |
attribute readonly boolean | buffer_full |
attribute readonly boolean | first_empty |
attribute readonly unsigned long long | first_cts |
attribute readonly unsigned long self | nb_pck_queued |
attribute readonly unsigned long | timescale |
attribute readonly unsigned long | min_pck_dur |
attribute readonly boolean | playing |
attribute readonly unsigned long long | next_ts |
attribute readonly boolean | has_decoder |
Custom filter PID object
void _FilterPid::send_event | ( | _FilterEvent | evt | ) |
send an event on the pid - see gf_filter_pid_send_event
evt | filter event to send |
void _FilterPid::remove | ( | ) |
removes this output pid - see gf_filter_pid_remove
void _FilterPid::enum_props | ( | function | callback_obj | ) |
enumerates property on pid
callback_obj | callback object to use, must have a 'on_prop_enum' method defined taking three parameters, prop_name (string), propval (PropertyValue) and ptype (int, GPAC property data type) |
PropertyValue _FilterPid::get_prop | ( | DOMString | pname | ) |
get a PID property
pname | property name |
PropertyValue _FilterPid::get_info | ( | DOMString | pname | ) |
get a PID info
pname | property name |
_FilterPacket _FilterPid::get_packet | ( | ) |
get first packet of input PID - see gf_filter_pid_get_packet
void _FilterPid::drop_packet | ( | ) |
drops (removes) the first packet of input PID - see gf_filter_pid_drop_packet
void _FilterPid::copy_props | ( | _FilterPid | ipid | ) |
copy property of given PID to the current pid - see gf_filter_pid_copy_properties
ipid | filter pid to copy from |
void _FilterPid::reset_props | ( | self | ) |
removes all properties of the current pid - see gf_filter_pid_reset_properties
void _FilterPid::forward | ( | _FilterPacket | ipck | ) |
forward a packet on the current pid - see gf_filter_pck_forward
ipck | packet to forward |
void _FilterPid::set_prop | ( | DOMString | pcode, |
PropertyValue | prop, | ||
unsigned long | custom_type | ||
) |
set a property the current pid - see gf_filter_pid_set_property and gf_filter_pid_set_property_str
pcode | property type |
prop | property value to set, or null to remove property |
custom_type | type of property if user-defined property. If not set and user-defined, property is a string |
void _FilterPid::set_info | ( | DOMString | pcode, |
PropertyValue | prop, | ||
unsigned long | custom_type = 0 |
||
) |
set a info property the current pid - see gf_filter_pid_set_info and gf_filter_pid_set_info_str
pcode | property type |
prop | property value to set, or null to remove property |
custom_type | type of property if user-defined property. If not set and user-defined, property is a string |
void _FilterPid::clear_eos | ( | boolean | all_pids | ) |
clears EOS on the current PID - see gf_filter_pid_clear_eos
all_pids | if true, clears eos on all input pids |
void _FilterPid::check_caps | ( | ) |
check PID properties match capability of filter - see gf_filter_pid_check_caps
void _FilterPid::discard_block | ( | ) |
discard blocking mode on PID - see gf_filter_pid_discard_block
void _FilterPid::allow_direct_dispatch | ( | ) |
allow direct dispatch of output to destinations - see gf_filter_pid_allow_direct_dispatch
unsigned long _FilterPid::get_clock_type | ( | ) |
get current clock type info - see gf_filter_pid_get_clock_info
_Fraction _FilterPid::get_clock_timestamp | ( | ) |
get current clock time stamp - see gf_filter_pid_get_clock_info
boolean _FilterPid::is_filter_in_parents | ( | _Filter | filter | ) |
check if a filter is in the parent filter chain of the pid - see gf_filter_pid_is_filter_in_parents
filter | filter to check |
_BufferOccupancy _FilterPid::get_buffer_occupancy | ( | ) |
get buffer occupancy - see gf_filter_pid_get_buffer_occupancy
void _FilterPid::loose_connect | ( | ) |
sets loose connect mode - see gf_filter_pid_set_loose_connect
void _FilterPid::set_framing | ( | boolean | framed | ) |
sets framing mode - see gf_filter_pid_set_framing_mode
framed | if true, complete frames only will be delivered on the pid |
void _FilterPid::set_clock_mode | ( | boolean | cmode | ) |
sets clock mode - see gf_filter_pid_set_clock_mode #
cmode | clock mode operation of filter |
void _FilterPid::set_discard | ( | boolean | do_discard | ) |
sets discard mode - see gf_filter_pid_set_discard
do_discard | if True, discard is on |
void _FilterPid::require_source_id | ( | ) |
enforces sourceID to be present for output pids of this filter - see gf_filter_pid_require_source_id
void _FilterPid::recompute_dts | ( | boolean | do_compute | ) |
sets DTS recomputing mode - see gf_filter_pid_recompute_dts
do_compute | if True, DTS are recomputed |
PropertyValue _FilterPid::query_cap | ( | DOMString | pcode | ) |
queries a capability property on output PID - see gf_filter_pid_caps_query and gf_filter_pid_caps_query_str
pcode | property to check |
void _FilterPid::negotiate_cap | ( | DOMString | pcode, |
PropertyValue | prop, | ||
unsigned long | custom_type = 0 |
||
) |
negotiates a capability property on input PID - see gf_filter_pid_negotiate_property and gf_filter_pid_negotiate_property_dyn
pcode | property to negotiate |
prop | property to negotiate |
custom_type | type of property if user-defined property. If not set and user-defined, property is a string |
DOMString _FilterPid::resolve_template | ( | DOMString | template, |
unsigned long | file_idx = 0 , |
||
DOMString | suffix = null |
||
) |
resolves a template string - see gf_filter_pid_resolve_file_template
template | the template string |
file_idx | the file index |
suffix | the file suffix |
_FilterPacket _FilterPid::new_pck_ref | ( | _FilterPacket | ipck, |
unsigned long | size = 0 , |
||
unsigned long | offset = 0 |
||
) |
creates a new packet referring to an existing packet - see gf_filter_pck_new_ref
ipck | the input (referenced) packet |
size | the data size of the new packet |
offset | the offset in the original data |
_FilterPacket _FilterPid::new_pck | ( | unsigned long | size = 0 | ) |
creates a new packet of the given size, allocating memory in libgpac - see gf_filter_pck_new_alloc
size | the data size of the new packet |
_FilterPacket _FilterPid::new_pck_shared | ( | ArrayBuffer | data | ) |
creates a new packet sharing memory of the filter - see gf_filter_pck_new_shared The filter object must have a packet_release
method with arguments [ FilterPid, FilterPacket ]
data | the data to use |
_FilterPacket _FilterPid::new_pck_copy | ( | _FilterPacket | ipck | ) |
creates a new packet copying a source packet - see gf_filter_pck_new_copy
ipck | the FilterPacket to copy |
_FilterPacket _FilterPid::new_pck_clone | ( | _FilterPacket | ipck | ) |
creates a new packet cloning a source packet - see gf_filter_pck_new_clone
ipck | the FilterPacket to clone |
attribute DOMString _FilterPid::name |
name of the PID - see gf_filter_pid_get_name and gf_filter_pid_set_name
attribute readonly DOMString _FilterPid::filter_name |
name of the parent filter - see gf_filter_pid_get_filter_name
attribute boolean _FilterPid::eos |
end of stream property of PID - see gf_filter_pid_is_eos and gf_filter_pid_set_eos
attribute readonly boolean _FilterPid::has_seen_eos |
True if end of stream was seen in the chain but has not yet reached the filter - see gf_filter_pid_has_seen_eos
attribute readonly boolean _FilterPid::eos_received |
True if end of stream was seen on the input PID but some packets are still to be processed - see gf_filter_pid_eos_received
attribute readonly boolean _FilterPid::would_block |
True if PID would block - see gf_filter_pid_would_block
attribute readonly boolean _FilterPid::sparse |
True if PID is sparse - see gf_filter_pid_is_sparse
attribute unsigned long long _FilterPid::max_buffer |
maximum buffer of PID in microseconds - see gf_filter_pid_get_max_buffer and gf_filter_pid_set_max_buffer
attribute readonly unsigned long long _FilterPid::buffer |
buffer of PID in microseconds - see gf_filter_pid_query_buffer_duration
attribute readonly boolean _FilterPid::buffer_full |
True if buffer is full - see gf_filter_pid_query_buffer_duration
attribute readonly boolean _FilterPid::first_empty |
True if no pending packet - see gf_filter_pid_first_packet_is_empty
attribute readonly unsigned long long _FilterPid::first_cts |
value of CTS of first pending packet, null if none - see gf_filter_pid_get_first_packet_cts
attribute readonly unsigned long self _FilterPid::nb_pck_queued |
number of queued packets for input pid - see gf_filter_pid_get_packet_count
attribute readonly unsigned long _FilterPid::timescale |
timescale of pid - see gf_filter_pid_get_timescale
attribute readonly unsigned long _FilterPid::min_pck_dur |
minimum packet duration (in timescale) of pid - see gf_filter_pid_get_min_pck_duration
attribute readonly boolean _FilterPid::playing |
True if PID is playing - see gf_filter_pid_is_playing
attribute readonly unsigned long long _FilterPid::next_ts |
Next estimated timestamp on pid - see gf_filter_pid_get_next_ts
attribute readonly boolean _FilterPid::has_decoder |
Set to true if input chain has a decoder - see gf_filter_pid_has_decoder