Sample Usage
3-6
calls for cache operations as well. The test application does a cache
invalidate for the valid input buffers before
process()
and a cache
write back invalidate for output buffers after
process()
.
In the sample test application, after calling
algDeactivate()
, the output
data is dumped to a file.
3.1.4 Algorithm Instance Deletion
Once decoding/encoding is complete, the test application must release the
memory. The following APIs are called in sequence:
1)
algNumAlloc()
- To query the algorithm about the number of
memory records it used.
2)
algFree()
- To query the algorithm to get the memory record
information.
A sample implementation of the delete function that calls
algNumAlloc()
and
algFree()
in a sequence is provided in the
ALG_delete()
function
implemented in the alg_create.c file.
After successful execution of the algorithm, the test application frees up the
DMA and HDVICP Resource allocated for the algorithm. This is
implemented by calling the RMAN interface functions in the following
sequence:
1)
RMAN_freeResources ()
- To free the resources that were allocated
to the algorithm before process call.
2)
RMAN_unregister()
–
To unregister the HDVICP protocol/resource
manager with the generic resource manager.
3)
RMAN_exit()
- To delete the generic IRES RMAN and release
memory.
Содержание DM6467
Страница 1: ...H 264 1080p 30 BP Encoder on DM6467 User s Guide Literature Number SPRUGN8 October 2009 ...
Страница 10: ...x This page is intentionally left blank ...
Страница 12: ...xii This page is intentionally left blank ...
Страница 18: ...Introduction 1 6 This page is intentionally left blank ...
Страница 36: ...Sample Usage 3 10 This page is intentionally left blank ...