![Texas Instruments DM365 Скачать руководство пользователя страница 112](http://html.mh-extra.com/html/texas-instruments/dm365/dm365_user-manual_1094517112.webp)
API Reference
4-66
║
Name
process()
– basic encoding/decoding call
║
Synopsis
XDAS_Int32 (*process)(IVIDENC1_Handle handle,
IVIDEO1_BufDescIn *inBufs, XDM_BufDesc *outBufs,
IVIDENC1_InArgs *inargs, IVIDENC1_OutArgs *outargs);
║
Arguments
IVIDENC1_Handle handle; /* algorithm instance handle */
IVIDEO1_BufDescIn *inBufs;
/*
algorithm
input buffer
descriptor */
XDM_BufDesc *outBufs; /*
algorithm
output buffer descriptor
*/
IVIDENC1_InArgs
*inargs
/*
algorithm
runtime input arguments
*/
IVIDENC1_OutArgs *outargs
/*
algorithm
runtime output
arguments */
║
Return Value
IALG_EOK; /* status indicating success */
IALG_EFAIL; /* status indicating failure */
║
Description
A call to function initiates the encoding/decoding process for the current
frame.
The first argument to
process()
is a handle to an algorithm instance.
The second and third arguments are pointers to the input and output buffer
descriptor data structures respectively (see
XDM_BufDesc
data structure
for details). Input/output buffers should be allocated in non-cacheable /non-
bufferable region if low latency is enabled.
The fourth argument is a pointer to the
IVIDENC1_InArgs
data structure
that defines the run-time input arguments for an algorithm instance object.
The last argument is a pointer to the
IVIDENC1_OutArgs
data structure
that defines the run-time output arguments for an algorithm instance object.
In case of interlaced content, process call has to be invoked for each field.
Note:
The
process()
API can be called with base or extended
InArgs
and
OutArgs
data structures. If you are using extended data structures, the
fourth and fifth arguments must be pointers to the extended
InArgs
and
OutArgs
data structures respectively. Also, ensure that the
size
field is
set to the size of the extended data structure. Depending on the value
set for the
size
field, the algorithm uses either basic or extended
parameters.
║
Preconditions
Содержание DM365
Страница 10: ...x This page is intentionally left blank ...
Страница 12: ...xii This page is intentionally left blank ...
Страница 24: ...Introduction 1 12 This page is intentionally left blank ...
Страница 34: ...Installation Overview 2 10 This page is intentionally left blank ...
Страница 116: ...API Reference 4 70 This page is intentionally left blank ...
Страница 120: ...Error Description B 2 This page is intentionally left blank ...
Страница 124: ...ARM926 TCM Buffer Usage By Codec D 2 This page is intentionally left blank ...
Страница 126: ...Simple Two pass Encoding Sample Usage E 2 Case 1 Case 2 Case 3 Case 4 Frame Skip ...
Страница 130: ...Simple Two pass Encoding Sample Usage E 6 This page is intentionally left blank ...