![]() |
libgpac
Documentation of the core library of GPAC
|
import <jsf.idl;
Public Member Functions | |
| void | set_readonly () |
| Object | enum_properties (unsigned long index) |
| FilterProperty | get_prop (DOMString name, optional boolean is_user=false) |
| FilterPacket | ref (optional boolean props_only=false) |
| void | unref () |
| void | send () |
| void | discard () |
| void | set_prop (DOMString name, FilterProperty prop, optional boolean is_user=false) |
| ArrayBuffer | append (DOMString str) |
| ArrayBuffer | append (unsigned long size) |
| ArrayBuffer | append (ArrayBuffer ab) |
| void | truncate (unsigned long size) |
| void | copy_props (FilterPacket from) |
| FilterPacket | clone (optional FilterPacket cached_pck=null) |
Data Fields | |
| attribute boolean | start |
| attribute boolean | end |
| attribute signed long long | dts |
| attribute signed long long | cts |
| attribute unsigned long | dur |
| attribute unsigned long | sap |
| attribute unsigned long | timescale |
| attribute boolean | interlaced |
| attribute boolean | corrupted |
| attribute boolean | seek |
| attribute signed long long | byte_offset |
| attribute unsigned long | roll |
| attribute unsigned long | crypt |
| attribute unsigned long | clock_type |
| attribute unsigned long | carousel |
| attribute unsigned long | seqnum |
| attribute boolean | blocking_ref |
| attribute unsigned long | is_leading |
| attribute unsigned long | depends_on |
| attribute unsigned long | depended_on |
| attribute unsigned long | redundant |
| readonly attribute unsigned long | size |
| readonly attribute ArrayBuffer | data |
| readonly attribute boolean | frame_ifce |
| readonly attribute boolean | frame_ifce_gl |
| readonly attribute boolean | has_properties |
FilterPacket provides binding for GF_FilterPacket
Packet data is made accessible through an ArrayBuffer object. This object is destroyed when truncating or expanding the data, you must get it again using pck.data.
| void FilterPacket::set_readonly | ( | ) |
sets packet readonly - see gf_filter_pck_set_readonly
| Object FilterPacket::enum_properties | ( | unsigned long | index | ) |
enumerates properties of the packet
| index | the 0-based index of the property. |
| FilterProperty FilterPacket::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 |
| FilterPacket FilterPacket::ref | ( | optional boolean | props_only = false | ) |
references a filter packet reference for later usage after drop from pid buffer - see gf_filter_pck_ref and gf_filter_pck_ref_props
| props_only | if set, only packet properties are references, packet data is not |
| void FilterPacket::unref | ( | ) |
dereferences a filter packet reference - see gf_filter_pck_unref. Throws exception if object is not a packet reference. The object is no longer a valid packet after this.
| void FilterPacket::send | ( | ) |
sends packet - gf_filter_pck_send
Here is the caller graph for this function:| void FilterPacket::discard | ( | ) |
discard packet - gf_filter_pck_discard
| void FilterPacket::set_prop | ( | DOMString | name, |
| FilterProperty | prop, | ||
| optional boolean | is_user = false |
||
| ) |
sets a property on packet - see gf_filter_pck_set_property
| 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 |
| ArrayBuffer FilterPacket::append | ( | DOMString | str | ) |
appends data to packet - see gf_filter_pck_expand. New data can be accessed by through the data field.
| str | the string to append |
| ArrayBuffer FilterPacket::append | ( | unsigned long | size | ) |
appends data to packet - see gf_filter_pck_expand. New data can be accessed by through the data field.
| size | the number of bytes to append |
| ArrayBuffer FilterPacket::append | ( | ArrayBuffer | ab | ) |
appends data to packet - see gf_filter_pck_expand. New data can be accessed by through the data field.
| ab | the array buffer to append |
| void FilterPacket::truncate | ( | unsigned long | size | ) |
truncates the packet to the indicated size - gf_filter_pck_truncate
| size | new packet size |
| void FilterPacket::copy_props | ( | FilterPacket | from | ) |
copy properties of source packet
| from | the source packet to copy properties from |
| FilterPacket FilterPacket::clone | ( | optional FilterPacket | cached_pck = null | ) |
creates a new packet cloning a source packet - see gf_filter_pck_dangling_copy.
The resulting packet is in 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 |
| attribute boolean FilterPacket::start |
start flag
| attribute boolean FilterPacket::end |
end flag
| attribute signed long long FilterPacket::dts |
DTS
| attribute signed long long FilterPacket::cts |
CTS
| attribute unsigned long FilterPacket::dur |
duration
| attribute unsigned long FilterPacket::sap |
SAP type GF_FilterSAPType
| attribute unsigned long FilterPacket::timescale |
timescale
| attribute boolean FilterPacket::interlaced |
interlaced flag
| attribute boolean FilterPacket::corrupted |
corrupted flag
| attribute boolean FilterPacket::seek |
seek flag
| attribute signed long long FilterPacket::byte_offset |
byte offset in source
| attribute unsigned long FilterPacket::roll |
roll distance
| attribute unsigned long FilterPacket::crypt |
crypt flag
| attribute unsigned long FilterPacket::clock_type |
clock type
| attribute unsigned long FilterPacket::carousel |
carousel version number
| attribute unsigned long FilterPacket::seqnum |
sequence number
| attribute boolean FilterPacket::blocking_ref |
set if the packet is a blocking reference to a packet reference
| attribute unsigned long FilterPacket::is_leading |
| attribute unsigned long FilterPacket::depends_on |
| attribute unsigned long FilterPacket::depended_on |
| attribute unsigned long FilterPacket::redundant |
| readonly attribute unsigned long FilterPacket::size |
size in bytes of the packet
| readonly attribute ArrayBuffer FilterPacket::data |
data of the packet if any
| readonly attribute boolean FilterPacket::frame_ifce |
set to true if data of the packet is available through a GF_FilterFrameInterface object
| readonly attribute boolean FilterPacket::frame_ifce_gl |
set to true if data of the packet is available through a GF_FilterFrameInterface object on openGL textures
| readonly attribute boolean FilterPacket::has_properties |
set to true if packet has properties other than default ones - see gf_filter_pck_has_properties