-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gst.Allocator-alloc.html
50 lines (50 loc) · 2.89 KB
/
Gst.Allocator-alloc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>Gst.Allocator::alloc</title>
<link rel="stylesheet" type="text/css" href="C.css">
<script type="text/javascript" src="jquery.js"></script><script type="text/javascript" src="jquery.syntax.js"></script><script type="text/javascript" src="yelp.js"></script>
</head>
<body><div class="page" role="main">
<div class="header"><div class="trails" role="navigation"><div class="trail">
<a class="trail" href="index.html" title="Index">Index</a> » <a class="trail" href="Gst.Allocator.html" title="Gst.Allocator">Gst.Allocator</a> » </div></div></div>
<div class="body">
<div class="hgroup"><h1 class="title"><span class="title">Gst.Allocator::alloc</span></h1></div>
<div class="region">
<div class="contents">
<div class="synopsis"><div class="inner"><div class="region"><div class="contents"><div class="code"><pre class="contents ">function vfunc_alloc(size:gsize, params:Gst.AllocationParams):Gst.Memory {
}</pre></div></div></div></div></div>
<p class="p">Use <span class=" code">allocator</span> to allocate a new memory block with memory that is at least
<span class=" code">size</span> big.</p>
<p class="p">The optional <span class=" code">params</span> can specify the prefix and padding for the memory. If
NULL is passed, no flags, no extra prefix/padding and a default alignment is
used.</p>
<p class="p">The prefix/padding will be filled with 0 if flags contains
#GST_MEMORY_FLAG_ZERO_PREFIXED and #GST_MEMORY_FLAG_ZERO_PADDED respectively.</p>
<p class="p">When <span class=" code">allocator</span> is NULL, the default allocator will be used.</p>
<p class="p">The alignment in <span class=" code">params</span> is given as a bitmask so that @align + 1 equals
the amount of bytes to align to. For example, to align to 8 bytes,
use an alignment of 7.</p>
<div class="terms"><div class="inner"><div class="region"><dl class="terms">
<dt class="terms"><span class=" code">size</span></dt>
<dd class="terms"><p class="p">size of the visible memory area</p></dd>
<dt class="terms"><span class=" code">params</span></dt>
<dd class="terms"><p class="p">optional parameters</p></dd>
<dt class="terms"><span class=" code">Returns</span></dt>
<dd class="terms"><p class="p">a new <span class=" link"><a href="Gst.Memory.html" title="Gst.Memory">Gst.Memory</a></span>.</p></dd>
</dl></div></div></div>
</div>
<div class="sect sect-links" role="navigation">
<div class="hgroup"></div>
<div class="contents"><div class="links guidelinks"><div class="inner">
<div class="title"><h2><span class="title">More Information</span></h2></div>
<div class="region"><ul><li class="links "><a href="Gst.Allocator.html" title="Gst.Allocator">Gst.Allocator</a></li></ul></div>
</div></div></div>
</div>
</div>
<div class="clear"></div>
</div>
<div class="footer"></div>
</div></body>
</html>