![Texas Instruments DM365 User Manual Download Page 107](http://html.mh-extra.com/html/texas-instruments/dm365/dm365_user-manual_1094517107.webp)
API Reference
4-61
║
Name
algAlloc()
– determine the attributes of all buffers that an algorithm
requires
║
Synopsis
XDAS_Int32 algAlloc(const IALG_Params *params, IALG_Fxns
**parentFxns, IALG_MemRec memTab[]);
║
Arguments
IALG_Params *params; /* algorithm specific attributes */
IALG_Fxns **parentFxns;/* output parent algorithm
functions */
IALG_MemRec memTab[]; /* output array of memory records */
║
Return Value
XDAS_Int32 /* number of buffers required */
║
Description
algAlloc()
returns a table of memory records that describe the size,
alignment, type, and memory space of all buffers required by an algorithm.
If successful, this function returns a positive non-zero value indicating the
number of records initialized.
The first argument to
algAlloc()
is a pointer to a structure that defines
the creation parameters. This pointer may be
NULL;
however, in this case,
algAlloc()
must assume default creation parameters and must not fail.
The second argument to
algAlloc()
is an output parameter.
algAlloc()
may return a pointer to its parent IALG functions. If an
algorithm does not require a parent object to be created, this pointer must
be set to
NULL.
The third argument is a pointer to a memory space of size
nbufs * sizeof(IALG_MemRec)
where,
nbufs
is the number of buffers
returned by
algNumAlloc()
and
IALG_MemRec
is the buffer-descriptor
structure defined in ialg.h.
After calling this function,
memTab[]
is filled up with the memory
requirements of an algorithm.
For more details, see
TMS320 DSP Algorithm Standard API Reference
(literature number SPRU360)
.
║
See Also
algNumAlloc(), algFree()
Summary of Contents for DM365
Page 10: ...x This page is intentionally left blank ...
Page 12: ...xii This page is intentionally left blank ...
Page 24: ...Introduction 1 12 This page is intentionally left blank ...
Page 34: ...Installation Overview 2 10 This page is intentionally left blank ...
Page 116: ...API Reference 4 70 This page is intentionally left blank ...
Page 120: ...Error Description B 2 This page is intentionally left blank ...
Page 124: ...ARM926 TCM Buffer Usage By Codec D 2 This page is intentionally left blank ...
Page 126: ...Simple Two pass Encoding Sample Usage E 2 Case 1 Case 2 Case 3 Case 4 Frame Skip ...
Page 130: ...Simple Two pass Encoding Sample Usage E 6 This page is intentionally left blank ...