libgpac
Documentation of the core library of GPAC
|
filter packet object
Public Member Functions | |
def | enum_props (self, callback_obj) |
enumerate an packet properties More... | |
def | get_prop (self, prop_name) |
get a packet property - see gf_filter_pck_get_property and gf_filter_pck_get_property_str More... | |
def | ref (self) |
increase packet reference count - see gf_filter_pck_ref_ex More... | |
def | unref (self) |
decrease packet reference count - see gf_filter_pck_unref More... | |
def | discard (self) |
discard an output packet instead of sending it - see gf_filter_pck_discard More... | |
def | clone (self, cached_pck=None) |
creates a new packet cloning a source packet - see gf_filter_pck_dangling_copy. More... | |
def | readonly (self) |
mark an output packet as readonly - see gf_filter_pck_set_readonly More... | |
def | send (self) |
send the packet - see gf_filter_pck_send More... | |
def | copy_props (self, ipck) |
copy properties of source packet in this packet - see gf_filter_pck_merge_properties More... | |
def | set_prop (self, pcode, prop, custom_type=0) |
set property in this packet - see gf_filter_pck_set_property and gf_filter_pck_set_property_str More... | |
def | truncate (self, size) |
truncates an output packet to the given size - see gf_filter_pck_truncate More... | |
def | get_gl_texture (self, idx) |
return OpenGL texture info for a given color plane of a frame interface packet More... | |
def python.libgpac.libgpac.FilterPacket.enum_props | ( | self, | |
callback_obj | |||
) |
callback_obj | callback object to use, must have a 'on_prop_enum' method defined taking two parameters, prop_name(string) and propval |
def python.libgpac.libgpac.FilterPacket.get_prop | ( | self, | |
prop_name | |||
) |
prop_name | name of property to get |
def python.libgpac.libgpac.FilterPacket.ref | ( | self | ) |
def python.libgpac.libgpac.FilterPacket.unref | ( | self | ) |
def python.libgpac.libgpac.FilterPacket.discard | ( | self | ) |
def python.libgpac.libgpac.FilterPacket.clone | ( | self, | |
cached_pck = None |
|||
) |
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 |
def python.libgpac.libgpac.FilterPacket.readonly | ( | self | ) |
def python.libgpac.libgpac.FilterPacket.send | ( | self | ) |
def python.libgpac.libgpac.FilterPacket.copy_props | ( | self, | |
ipck | |||
) |
ipck | source packet |
def python.libgpac.libgpac.FilterPacket.set_prop | ( | self, | |
pcode, | |||
prop, | |||
custom_type = 0 |
|||
) |
pcode | name of property |
prop | property value |
custom_type | type of property if user-defined property. If not set and user-defined, property is a string |
def python.libgpac.libgpac.FilterPacket.truncate | ( | self, | |
size | |||
) |
size | new size of packet |
def python.libgpac.libgpac.FilterPacket.get_gl_texture | ( | self, | |
idx | |||
) |
idx | index of texture to fetch. The number of texture depends on the underlying pixel format |