filter packet object
More...
◆ enum_props()
def python.libgpac.libgpac.FilterPacket.enum_props |
( |
|
self, |
|
|
|
callback_obj |
|
) |
| |
enumerate an packet properties
- Parameters
-
callback_obj | callback object to use, must have a 'on_prop_enum' method defined taking two parameters, prop_name(string) and propval |
- Returns
◆ get_prop()
def python.libgpac.libgpac.FilterPacket.get_prop |
( |
|
self, |
|
|
|
prop_name |
|
) |
| |
◆ ref()
def python.libgpac.libgpac.FilterPacket.ref |
( |
|
self | ) |
|
◆ unref()
def python.libgpac.libgpac.FilterPacket.unref |
( |
|
self | ) |
|
◆ discard()
def python.libgpac.libgpac.FilterPacket.discard |
( |
|
self | ) |
|
◆ clone()
def python.libgpac.libgpac.FilterPacket.clone |
( |
|
self, |
|
|
|
cached_pck = None |
|
) |
| |
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.
- Parameters
-
cached_pck | if set, will be reuse for creation of new packet. This can greatly reduce memory allocations |
- Returns
- the new FilterPacket or None if failure or None if failure ( if grabbing the frame into a local copy failed)
◆ readonly()
def python.libgpac.libgpac.FilterPacket.readonly |
( |
|
self | ) |
|
◆ send()
def python.libgpac.libgpac.FilterPacket.send |
( |
|
self | ) |
|
◆ copy_props()
def python.libgpac.libgpac.FilterPacket.copy_props |
( |
|
self, |
|
|
|
ipck |
|
) |
| |
◆ set_prop()
def python.libgpac.libgpac.FilterPacket.set_prop |
( |
|
self, |
|
|
|
pcode, |
|
|
|
prop, |
|
|
|
custom_type = 0 |
|
) |
| |
◆ truncate()
def python.libgpac.libgpac.FilterPacket.truncate |
( |
|
self, |
|
|
|
size |
|
) |
| |
◆ get_gl_texture()
def python.libgpac.libgpac.FilterPacket.get_gl_texture |
( |
|
self, |
|
|
|
idx |
|
) |
| |
return OpenGL texture info for a given color plane of a frame interface packet
- Parameters
-
idx | index of texture to fetch. The number of texture depends on the underlying pixel format |
- Returns
- GLTextureInfo object or None if error
◆ dts
python.libgpac.libgpac.FilterPacket.dts |
|
static |
◆ cts
python.libgpac.libgpac.FilterPacket.cts |
|
static |
◆ sap
python.libgpac.libgpac.FilterPacket.sap |
|
static |
◆ dur
python.libgpac.libgpac.FilterPacket.dur |
|
static |
◆ size
python.libgpac.libgpac.FilterPacket.size |
|
static |
Size of packet data, readonly.
◆ data
python.libgpac.libgpac.FilterPacket.data |
|
static |
Packet data - see gf_filter_pck_get_data If NumPy is available, the data is returned as a np Array, otherwise it is a POINTER(c_ubyte) object The property is readonly (cannot be set) but content can be modified for non-refs output packets.
◆ start
python.libgpac.libgpac.FilterPacket.start |
|
static |
◆ end
python.libgpac.libgpac.FilterPacket.end |
|
static |
◆ timescale
python.libgpac.libgpac.FilterPacket.timescale |
|
static |
◆ interlaced
python.libgpac.libgpac.FilterPacket.interlaced |
|
static |
◆ corrupted
python.libgpac.libgpac.FilterPacket.corrupted |
|
static |
◆ seek
python.libgpac.libgpac.FilterPacket.seek |
|
static |
◆ byte_offset
python.libgpac.libgpac.FilterPacket.byte_offset |
|
static |
◆ roll
python.libgpac.libgpac.FilterPacket.roll |
|
static |
◆ crypt
python.libgpac.libgpac.FilterPacket.crypt |
|
static |
◆ clock
python.libgpac.libgpac.FilterPacket.clock |
|
static |
◆ carousel
python.libgpac.libgpac.FilterPacket.carousel |
|
static |
◆ seqnum
python.libgpac.libgpac.FilterPacket.seqnum |
|
static |
◆ deps
python.libgpac.libgpac.FilterPacket.deps |
|
static |
◆ frame_ifce
python.libgpac.libgpac.FilterPacket.frame_ifce |
|
static |
true if packet holds a GF_FrameInterface object and not a data packet, readonly
◆ frame_ifce_gl
python.libgpac.libgpac.FilterPacket.frame_ifce_gl |
|
static |
true if packet holds a GF_FrameInterface object providing OpenGL only access and not a data packet, readonly
◆ has_properties
python.libgpac.libgpac.FilterPacket.has_properties |
|
static |
◆ blocking_ref
python.libgpac.libgpac.FilterPacket.blocking_ref |
|
static |