23AllocationParams::AllocationParams()
24 : d(g_slice_new0(GstAllocationParams))
26 gst_allocation_params_init(d);
29AllocationParams::AllocationParams(
const AllocationParams & other)
30 : d(gst_allocation_params_copy(other.d))
34AllocationParams::~AllocationParams()
36 gst_allocation_params_free(d);
39AllocationParams & AllocationParams::operator=(
const AllocationParams & other)
41 gst_allocation_params_free(d);
42 d = gst_allocation_params_copy(other.d);
46MemoryFlags AllocationParams::flags()
const
48 return static_cast<QGst::MemoryFlags
>(
static_cast<unsigned int>(d->flags));
51void AllocationParams::setFlags(MemoryFlags flags)
53 d->flags =
static_cast<GstMemoryFlags
>(
static_cast<unsigned int>(flags));
56size_t AllocationParams::align()
const
61void AllocationParams::setAlign(
size_t align)
66size_t AllocationParams::prefix()
const
71void AllocationParams::setPrefix(
size_t align)
76size_t AllocationParams::padding()
const
81void AllocationParams::setPadding(
size_t padding)
86AllocationParams::operator
const GstAllocationParams*()
const
91AllocationParams::operator GstAllocationParams*()
99 return AllocatorPtr::wrap(gst_allocator_find(name),
false);
111 return find(GST_ALLOCATOR_SYSMEM);
116 return MemoryPtr::wrap(gst_allocator_alloc(object<GstAllocator>(), size,
117 const_cast<GstAllocationParams *
>(
static_cast<const GstAllocationParams *
>(params))),
false);
122 GstMemory *mem = memory;
125 gst_allocator_free(object<GstAllocator>(), mem);
Smart pointer class for working with wrapper classes that support reference counting.
Wrapper class for GstAllocationParams.
Wrappers for GStreamer classes.