libgpac
Documentation of the core library of GPAC
|
import"webgl.idl";
Public Member Functions | |
void | send_event (FilterEvent evt) |
Object | enum_properties (unsigned long index, optional boolean enum_info=false) |
FilterProperty | get_prop (DOMString name, optional boolean is_user=false) |
FilterProperty | get_info (DOMString name, optional boolean is_user=false) |
FilterPaquet | get_packet () |
void | drop_packet () |
boolean | is_filter_in_parents (GF_Filter filter) |
boolean | get_buffer_occupancy (GF_Filter filter) |
void | clear_eos () |
boolean | check_caps () |
void | discard_block () |
void | allow_direct_dispatch () |
DOMString | resolve_file_template (DOMString template, unsigned long file_idx, optional DOMString suffix=null) |
FilterProperty | query_caps (DOMString name, optional boolean is_user) |
Object | get_stats () |
Object | get_clock_info () |
void | set_prop (DOMString name, FilterProperty prop, optional boolean is_user=false) |
void | set_info (DOMString name, FilterProperty prop, optional boolean is_user=false) |
void | negotiate_prop (DOMString name, FilterProperty prop, optional boolean is_user=false) |
void | remove () |
void | reset_props () |
void | copy_props (FilterPid from) |
void | ignore_blocking (optional boolean do_ignore=true) |
FilterPacket | new_packet () |
FilterPacket | new_packet (DOMString str, optional boolean use_shared=false, optional function destroy_callback_fun=null) |
FilterPacket | new_packet (unsigned long size) |
FilterPacket | new_packet (ArrayBuffer ab, optional boolean use_shared=false, optional function destroy_callback_fun=null) |
FilterPacket | new_packet (FilterPacket pck, optional boolean use_shared=false, optional boolean do_copy=false) |
FilterPacket | new_packet (FilterPacket pck, optional boolean use_shared=false, optional function destroy_callback_fun=null) |
FilterPacket | new_packet (function fetch_texture_fun, optional function destroy_callback_fun=null, optional boolean is_blocking=false) |
void | forward (FilterPacket pck) |
FilterPacket | new_packet (WebGLContext gl, function on_frame_consumed, optional boolean use_depth) |
Data Fields | |
attribute DOMString | name |
attribute boolean | eos |
readonly attribute boolean | eos_seen |
readonly attribute boolean | eos_received |
readonly attribute boolean | is_flush |
readonly attribute boolean | would_block |
readonly attribute boolean | sparse |
readonly attribute DOMString | filter_name |
readonly attribute DOMString | src_name |
readonly attribute DOMString | args |
readonly attribute DOMString | src_args |
readonly attribute DOMString | unicity_args |
attribute long | max_buffer |
writeonly boolean | loose_connect |
writeonly boolean | framing |
readonly attribute long long | buffer |
readonly attribute boolean | full |
readonly attribute boolean | first_empty |
readonly attribute long long | first_cts |
readonly attribute unsigned long | nb_pck_queued |
readonly attribute unsigned long | timescale |
writeonly unsigned long | clock_mode |
writeonly unsigned boolean | discard |
readonly attribute DOMString | src_url |
readonly attribute DOMString | dst_url |
writeonly unsigned boolean | require_source_id |
writeonly unsigned boolean | recompute_dts |
readonly attribute unsigned long | min_pck_dur |
readonly attribute unsigned long | playing |
readonly attribute unsigned long long | next_ts |
readonly attribute boolean | has_decoder |
void FilterPid::send_event | ( | FilterEvent | evt | ) |
sends an event on the pid - see gf_filter_pid_send_event
evt | the event to send |
Object FilterPid::enum_properties | ( | unsigned long | index, |
optional boolean | enum_info = false |
||
) |
enumerates properties or info on the pid - see gf_filter_pid_enum_properties and gf_filter_pid_enum_info
index | the 0-based index of the property. |
enum_info | if set, enumerates info instead of properties |
FilterProperty FilterPid::get_prop | ( | DOMString | name, |
optional boolean | is_user = false |
||
) |
gets a property by name/id - see gf_filter_pid_get_property and gf_filter_pid_get_property_str
name | the ID or name of the builtin property |
is_user | if set, indicates the queried property is a user-defined property rather than a built-in property |
FilterProperty FilterPid::get_info | ( | DOMString | name, |
optional boolean | is_user = false |
||
) |
gets info by name/id - see gf_filter_pid_get_info and gf_filter_pid_get_info_str
name | the ID or name of the builtin property |
is_user | if set, indicates the queried property is a user-defined property rather than a built-in property |
FilterPaquet FilterPid::get_packet | ( | ) |
gets first packet in pid buffer - see gf_filter_pid_get_packet
void FilterPid::drop_packet | ( | ) |
drops first packet in pid buffer - see gf_filter_pid_drop_packet
boolean FilterPid::is_filter_in_parents | ( | GF_Filter | filter | ) |
checks if a filter is in parent chain of pid - see gf_filter_pid_is_filter_in_parents
filter | filter to check |
boolean FilterPid::get_buffer_occupancy | ( | GF_Filter | filter | ) |
gets buffer occupancy - see gf_filter_pid_get_buffer_occupancy
filter | the Filter or FilterInstance object to check |
void FilterPid::clear_eos | ( | ) |
clears EOS on pid - see gf_filter_pid_clear_eos
boolean FilterPid::check_caps | ( | ) |
clears capability of pid - see gf_filter_pid_check_caps
void FilterPid::discard_block | ( | ) |
discard blocking mode of pid - see gf_filter_pid_discard_block
void FilterPid::allow_direct_dispatch | ( | ) |
allow direct disatch to next filter in chain - see gf_filter_pid_allow_direct_dispatch
DOMString FilterPid::resolve_file_template | ( | DOMString | template, |
unsigned long | file_idx, | ||
optional DOMString | suffix = null |
||
) |
resolves a file template string - see gf_filter_pid_resolve_file_template
template | the template string to resolve |
file_idx | the file index for segmented outputs |
suffix | the file suffix to append |
FilterProperty FilterPid::query_caps | ( | DOMString | name, |
optional boolean | is_user | ||
) |
queries a capability marked for negotiation - see gf_filter_pid_caps_query
name | the ID or name of the builtin property |
is_user | if set, indicates the queried property is a user-defined property rather than a built-in property |
Object FilterPid::get_stats | ( | ) |
gets statistics for the pid
Object FilterPid::get_clock_info | ( | ) |
gets clock info for the pid
void FilterPid::set_prop | ( | DOMString | name, |
FilterProperty | prop, | ||
optional boolean | is_user = false |
||
) |
sets property on a pid - see gf_filter_pid_set_property and gf_filter_pid_set_property_str
name | the ID or name of the builtin property |
prop | the property to set. If null, removes the property. |
is_user | if set, indicates the queried property is a user-defined property rather than a built-in property |
void FilterPid::set_info | ( | DOMString | name, |
FilterProperty | prop, | ||
optional boolean | is_user = false |
||
) |
sets info on a pid - see gf_filter_pid_set_info and gf_filter_pid_set_info_str
name | the ID or name of the builtin property |
prop | the property to set |
is_user | if set, indicates the queried property is a user-defined property rather than a built-in property |
void FilterPid::negotiate_prop | ( | DOMString | name, |
FilterProperty | prop, | ||
optional boolean | is_user = false |
||
) |
negotiates property on an output pid - see gf_filter_pid_negotiate_property and gf_filter_pid_negotiate_property_str
name | the ID or name of the builtin property |
prop | the property to set |
is_user | if set, indicates the queried property is a user-defined property rather than a built-in property |
void FilterPid::remove | ( | ) |
removes an output pid - see gf_filter_pid_remove
void FilterPid::reset_props | ( | ) |
reset properties of a pid - see gf_filter_pid_reset_properties
void FilterPid::copy_props | ( | FilterPid | from | ) |
copy properties of a pid - see gf_filter_pid_copy_properties*
from | source pid |
void FilterPid::ignore_blocking | ( | optional boolean | do_ignore = true | ) |
ignore this pid in blocking computations - see gf_filter_pid_ignore_blocking*
do_ignore | if true, pid is not used in blocking mode evaluation |
FilterPacket FilterPid::new_packet | ( | ) |
creates a new output packet with no associated data
FilterPacket FilterPid::new_packet | ( | DOMString | str, |
optional boolean | use_shared = false , |
||
optional function | destroy_callback_fun = null |
||
) |
creates a new output packet using string as payload
str | the string to use |
use_shared | creates a shared packet, holding a GC reference to the string until release - see gf_filter_pck_new_shared |
destroy_callback_fun | when shared mode is used, specify a callback function to be used upon destruction of the packet. The function has two parameters pid (output pid of the packet destroyed) and packet (the packet destroyed) |
FilterPacket FilterPid::new_packet | ( | unsigned long | size | ) |
creates a new output packet of the given size, zero the payload
size | the desired size |
FilterPacket FilterPid::new_packet | ( | ArrayBuffer | ab, |
optional boolean | use_shared = false , |
||
optional function | destroy_callback_fun = null |
||
) |
creates a new output packet using ArrayBuffer as payload
ab | the ArrayBuffer to use (views are also allowed) |
use_shared | creates a shared packet, holding a GC reference to the array buffer until release - see gf_filter_pck_new_shared |
destroy_callback_fun | when shared mode is used, specify a callback function to be used upon destruction of the packet. The function has two parameters pid (output pid of the packet destroyed) and packet (the packet destroyed) |
FilterPacket FilterPid::new_packet | ( | FilterPacket | pck, |
optional boolean | use_shared = false , |
||
optional boolean | do_copy = false |
||
) |
creates a new output packet from a source packet
pck | the source packet to use |
use_shared | creates a shared packet - see gf_filter_pck_new_shared |
do_copy | if set, indicates that the packet shall be copied rather than cloned (gf_filter_pck_new_copy) otherwise clones the packet (gf_filter_pck_new_clone). Ignored if use_shared is true |
FilterPacket FilterPid::new_packet | ( | FilterPacket | pck, |
optional boolean | use_shared = false , |
||
optional function | destroy_callback_fun = null |
||
) |
creates a new output packet from a source packet
pck | the source packet to use |
use_shared | creates a shared packet - see gf_filter_pck_new_shared |
destroy_callback_fun | when shared mode is used, specify a callback function to be used upon destruction of the packet. The function has two parameters pid (output pid of the packet destroyed) and packet (the packet destroyed). Ignored if use_shared is false |
FilterPacket FilterPid::new_packet | ( | function | fetch_texture_fun, |
optional function | destroy_callback_fun = null , |
||
optional boolean | is_blocking = false |
||
) |
creates a new output packet for OpenGL texture interface
fetch_texture_fun | specify a callback function to use to fetch textures. The function has three parameters pid (output pid of the packet queried), packet (the packet queried) and plane_index (the plane/texture index). The function shall return null if error, or an object with attributes "id" (a WebGL texture or openGL texture identifier) and "fmt" (openGL texture format, e.g. GL_TEXTURE_2D). |
destroy_callback_fun | specify a callback function to be used upon destruction of the packet. The function has two parameters pid (output pid of the packet destroyed) and packet (the packet destroyed). |
is_blocking | indicates if this frame is blocking (filter cannot dispatch new frame until this frame is destroyed) |
void FilterPid::forward | ( | FilterPacket | pck | ) |
forwards a source packet to outout - see gf_filter_pck_forward
pck | the source packet to forward |
FilterPacket FilterPid::new_packet | ( | WebGLContext | gl, |
function | on_frame_consumed, | ||
optional boolean | use_depth | ||
) |
creates a new output packet using the underlying texture attachement of the context as a texture source (see GF_FilterFrameInterface).
gl | the WebGL context used to create the packet. |
on_frame_consumed | a callback function notified when the associated packet has been consumed |
use_depth | if set, uses the depth framebuffer attachment if enabled rather than the texture. See WebGLContext |
attribute DOMString FilterPid::name |
name of the PID
attribute boolean FilterPid::eos |
end of stream state - see gf_filter_pid_set_eos and gf_filter_pid_is_eos
readonly attribute boolean FilterPid::eos_seen |
end of stream pending state - see gf_filter_pid_has_seen_eos
readonly attribute boolean FilterPid::eos_received |
end of stream pending state - see gf_filter_pid_eos_received
readonly attribute boolean FilterPid::is_flush |
true if end of stream is a flush event - see gf_filter_pid_is_flush_eos
readonly attribute boolean FilterPid::would_block |
blocking state - see gf_filter_pid_would_block
readonly attribute boolean FilterPid::sparse |
sparse status - see gf_filter_pid_is_sparse
readonly attribute DOMString FilterPid::filter_name |
name of parent filter
readonly attribute DOMString FilterPid::src_name |
name of source filter
readonly attribute DOMString FilterPid::args |
arguments of parent filter
readonly attribute DOMString FilterPid::src_args |
argument of source filter
readonly attribute DOMString FilterPid::unicity_args |
argument of source filter or first filter responsible for a fan-out
attribute long FilterPid::max_buffer |
max buffer requirement of the pid - see gf_filter_pid_get_max_buffer and gf_filter_pid_set_max_buffer
writeonly boolean FilterPid::loose_connect |
enables loose connect of the pid - see gf_filter_pid_set_loose_connect
writeonly boolean FilterPid::framing |
sets framin mode of the pid - see gf_filter_pid_set_framing_mode
readonly attribute long long FilterPid::buffer |
buffer duration of the pid - see gf_filter_pid_query_buffer_duration
readonly attribute boolean FilterPid::full |
pid buffer full flag - see gf_filter_pid_query_buffer_duration
readonly attribute boolean FilterPid::first_empty |
indicates if no valid packet with data is pending - see gf_filter_pid_first_packet_is_empty
readonly attribute long long FilterPid::first_cts |
CTS of the first packet in packet queue - see gf_filter_pid_get_first_packet_cts
readonly attribute unsigned long FilterPid::nb_pck_queued |
number of packets in pid buffer - see gf_filter_pid_get_packet_count
readonly attribute unsigned long FilterPid::timescale |
current timescale for the pid - see gf_filter_pid_get_timescale
writeonly unsigned long FilterPid::clock_mode |
sets clock mode of pid - see gf_filter_pid_set_clock_mode
writeonly unsigned boolean FilterPid::discard |
sets discard mode of pid - see gf_filter_pid_set_discard
readonly attribute DOMString FilterPid::src_url |
source URL of input pids
readonly attribute DOMString FilterPid::dst_url |
destination URL of output pids
writeonly unsigned boolean FilterPid::require_source_id |
requires source ID for the pid - see gf_filter_pid_require_source_id
writeonly unsigned boolean FilterPid::recompute_dts |
enables DTS recomputing on the pid - see gf_filter_pid_recompute_dts
readonly attribute unsigned long FilterPid::min_pck_dur |
gets minimum packet duration observed on the pid - see gf_filter_pid_get_min_pck_duration
readonly attribute unsigned long FilterPid::playing |
playing state - see gf_filter_pid_is_playing
readonly attribute unsigned long long FilterPid::next_ts |
next estimated timestamp, or null if not computable - see gf_filter_pid_get_next_ts
readonly attribute boolean FilterPid::has_decoder |
set to true if input chain has a decoder filter - see gf_filter_pid_has_decoder