libgpac
Documentation of the core library of GPAC
|
import"nodejs.idl";
Public Member Functions | |
void | enum_props (function callback_obj) |
PropertyValue | get_prop (DOMString prop_name) |
void | ref () |
void | unref () |
void | discard () |
_FilterPacket | clone (_FilterPacket cached_pck=null) |
void | readonly () |
void | send () |
void | copy_props (_FilterPacket ipck) |
void | set_prop (DOMString pcode, PropertyValue prop, unsigned long custom_type=0) |
void | truncate (unsigned long size) |
Data Fields | |
attribute unsigned long long | dts |
attribute unsigned long long | cts |
attribute unsigned long | sap |
attribute unsigned long | dur |
attribute unsigned long | size |
attribute ArrayBuffer | data |
attribute boolean | start |
attribute boolean | end |
attribute unsigned long | timescale |
attribute unsigned long | interlaced |
attribute boolean | corrupted |
attribute boolean | seek |
attribute unsigned long long | byte_offset |
attribute long | roll |
attribute unsigned long | crypt |
attribute unsigned long | clock |
attribute unsigned long | carousel |
attribute unsigned long | seqnum |
attribute unsigned long | deps |
attribute readonly boolean | frame_ifce |
attribute readonly boolean | blocking_ref |
filter packet for custom filters
Unless specified, properties are all read-only for input packets, and read/write for output packets.
void _FilterPacket::enum_props | ( | function | callback_obj | ) |
enumerate an packet properties
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 _FilterPacket::get_prop | ( | DOMString | prop_name | ) |
get a packet property - see gf_filter_pck_get_property and gf_filter_pck_get_property_str
prop_name | name of property to get |
void _FilterPacket::ref | ( | ) |
increase packet reference count - see gf_filter_pck_ref_ex
void _FilterPacket::unref | ( | ) |
decrease packet reference count - see gf_filter_pck_unref
void _FilterPacket::discard | ( | ) |
discard an output packet instead of sending it - see gf_filter_pck_discard
_FilterPacket _FilterPacket::clone | ( | _FilterPacket | cached_pck = null | ) |
creates a new packet cloning a source packet - see gf_filter_pck_dangling_copy. The resulting packet is read/write mode and may have its own memory allocated. This is typically used by sink filters wishing to access underling GPU data of a packet using frame interface. the resulting packet can be explicitly discarded using discard, otherwise will be garbage collected.
cached_pck | if set, will be reuse for creation of new packet. This can greatly reduce memory allocations |
void _FilterPacket::readonly | ( | ) |
mark an output packet as readonly - see gf_filter_pck_set_readonly
void _FilterPacket::send | ( | ) |
void _FilterPacket::copy_props | ( | _FilterPacket | ipck | ) |
copy properties of source packet in this packet - see gf_filter_pck_merge_properties
ipck | source packet |
void _FilterPacket::set_prop | ( | DOMString | pcode, |
PropertyValue | prop, | ||
unsigned long | custom_type = 0 |
||
) |
set property in this packet - see gf_filter_pck_set_property and gf_filter_pck_set_property_str
pcode | name of property |
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 _FilterPacket::truncate | ( | unsigned long | size | ) |
truncates an output packet to the given size - see gf_filter_pck_truncate
size | new size of packet |
attribute unsigned long long _FilterPacket::dts |
Decode Timestamp, or null not set - see gf_filter_pck_get_dts and gf_filter_pck_set_dts
attribute unsigned long long _FilterPacket::cts |
Compose Timestamp or null if not set - see gf_filter_pck_get_cts and gf_filter_pck_set_cts
attribute unsigned long _FilterPacket::sap |
SAP type - see gf_filter_pck_get_sap and gf_filter_pck_set_sap
attribute unsigned long _FilterPacket::dur |
Duration - see gf_filter_pck_get_duration and gf_filter_pck_set_duration
attribute unsigned long _FilterPacket::size |
Size of packet data, readonly
attribute ArrayBuffer _FilterPacket::data |
Packet data - see gf_filter_pck_get_data The property MUST be treated as readonly (shall not be set). For non-refs output packets, content of the array buffer can be modified
attribute boolean _FilterPacket::start |
frame start - see gf_filter_pck_get_framing and gf_filter_pck_set_framing
attribute boolean _FilterPacket::end |
frame end - see gf_filter_pck_get_framing and gf_filter_pck_set_framing
attribute unsigned long _FilterPacket::timescale |
associated timescale, readonly - see gf_filter_pck_get_timescale
attribute unsigned long _FilterPacket::interlaced |
Interlaced flags - see gf_filter_pck_get_interlaced and gf_filter_pck_set_interlaced
attribute boolean _FilterPacket::corrupted |
Corrupted flag - see gf_filter_pck_get_corrupted and gf_filter_pck_set_corrupted
attribute boolean _FilterPacket::seek |
Seek flag - see gf_filter_pck_get_seek_flag and gf_filter_pck_set_seek_flag
attribute unsigned long long _FilterPacket::byte_offset |
Byte offset or null if not set - see gf_filter_pck_get_byte_offset and gf_filter_pck_set_byte_offset
attribute long _FilterPacket::roll |
Roll info - see gf_filter_pck_get_roll_info and gf_filter_pck_set_roll_info
attribute unsigned long _FilterPacket::crypt |
Encryption flags - see gf_filter_pck_get_crypt_flags and gf_filter_pck_set_crypt_flags
attribute unsigned long _FilterPacket::clock |
Clock reference flag - see gf_filter_pck_get_clock_type and gf_filter_pck_set_clock_type
attribute unsigned long _FilterPacket::carousel |
Carousel version - see gf_filter_pck_get_carousel_version and gf_filter_pck_set_carousel_version
attribute unsigned long _FilterPacket::seqnum |
Sequence number - see gf_filter_pck_get_seq_num and gf_filter_pck_set_seq_num
attribute unsigned long _FilterPacket::deps |
Dependency flags - see gf_filter_pck_get_dependency_flags and gf_filter_pck_set_dependency_flags
attribute readonly boolean _FilterPacket::frame_ifce |
true if packet holds a GF_FrameInterface object and not a data packet - always readonly
attribute readonly boolean _FilterPacket::blocking_ref |
true if packet is a blocking reference - see gf_filter_pck_is_blocking_ref - always readonly