QtGStreamer
1.2.0
|
#include <QGst/Allocator>
Public Member Functions | |
MemoryPtr | alloc (size_t size, const AllocationParams ¶ms=AllocationParams()) |
void | free (MemoryPtr &memory) |
![]() | |
QString | name () const |
bool | setName (const char *name) |
ObjectPtr | parent () const |
bool | setParent (const ObjectPtr &parent) |
void | unparent () |
bool | isAncestorOf (const ObjectPtr &object) const |
QString | pathString () const |
![]() | |
ParamSpecPtr | findProperty (const char *name) const |
QList< ParamSpecPtr > | listProperties () const |
Value | property (const char *name) const |
template<class T > | |
void | setProperty (const char *name, const T &value) |
void | setProperty (const char *name, const Value &value) |
void * | data (const char *key) const |
void * | stealData (const char *key) const |
void | setData (const char *key, void *data, void(*destroyCallback)(void *)=NULL) |
void * | quarkData (const Quark &quark) const |
void * | stealQuarkData (const Quark &quark) const |
void | setQuarkData (const Quark &quark, void *data, void(*destroyCallback)(void *)=NULL) |
Static Public Member Functions | |
static AllocatorPtr | find (const char *name) |
static AllocatorPtr | getDefault () |
static AllocatorPtr | getSystemMemory () |
Additional Inherited Members | |
![]() | |
virtual void | ref (bool increaseRef) |
virtual void | unref () |
![]() | |
template<class T > | |
T * | object () const |
![]() | |
void * | m_object |
Wrapper class for GstAllocator.
Definition at line 62 of file allocator.h.
|
static |
search for an already registered allocator.
Definition at line 97 of file allocator.cpp.
|
static |
get the default allocator
Definition at line 103 of file allocator.cpp.
|
static |
get the system memory allocator
Definition at line 109 of file allocator.cpp.
MemoryPtr QGst::Allocator::alloc | ( | size_t | size, |
const AllocationParams & | params = AllocationParams() |
||
) |
create a chunk of memory using this allocator
Definition at line 114 of file allocator.cpp.
void QGst::Allocator::free | ( | MemoryPtr & | memory | ) |
release memory allocated with alloc()
Definition at line 120 of file allocator.cpp.