Sample Usage
3-5
Figure 3-2. Process Call with Host Release
Note:
The process call returns the control to the application after the initial
setup related tasks are completed
Application can schedule a different task to use the freed up Host
resource
All service requests from HDVICP are handled via interrupts
Application resumes the suspended process call after the last
service request for HDVICP has been handled
Application can now complete concluding portions of the process
call and return
The
control()
and
process()
functions should be called only within the
scope of the
algActivate()
and
algDeactivate()
XDAIS functions
which activate and deactivate the algorithm instance respectively. Once an
algorithm is activated, there could be any ordering of
control()
and
process()
functions. The following APIs are called in a sequence:
1)
algActivate()
- To activate the algorithm instance.
2)
control()
(optional) - To query the algorithm on status or setting of
dynamic parameters etc., using the seven available control commands.
3)
process()
- To call the Encoder with appropriate input/output buffer
and arguments information.
4)
control()
(optional) - To query the algorithm on status or setting of
dynamic parameters etc., using the seven available control commands.
5)
algDeactivate()
- To deactivate the algorithm instance.
6) The do-while loop encapsulates frame level
process()
call and
updates the input buffer pointer every time before the next call. The do-
while loop breaks off either when an error condition occurs or when the
encoding of the required number of frames is completed. It also
protects the
process()
call from file operations by placing appropriate
Host
System
application
Process call frame n
HDVICP
Tasks
MB level tasks for
frame n
Host Video
Task
HDVICP Busy
Interrupt between
HDVICP and Host
MB level tasks for
frame n+1
Process call frame n+1
Transfer of
tasks at Host
Host system
tasks
Содержание 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 ...