MIL_ID ContextSeqId, | //in |
MIL_INT64 Command, | //in |
MIL_INT64 CommandFlag | //in |
This function starts or stops a sequence processing session. The sequence processing session performs the operation specified in the sequence context.
If you define a file (M_FILE) or buffer list (M_BUFFER_LIST) as the source of the input for the operation, the sequence processing session performs the operation as soon as the session is started (M_START). You can specify a synchronous (M_SYNCHRONOUS) or asynchronous (M_ASYNCHRONOUS) operation. For synchronous operations, the application will wait until the operation has finished before executing the next function; whereas, for asynchronous operations, other functions can execute while the operation is performed in a background thread.
If you define an image feed as the source (M_USER_FEED) and call MseqProcess() with M_START, the sequence processing session will wait for an image to be queued using MseqFeed(). As soon as an image is queued, the sequence processing session operates on it. If no images are queued, the sequence processing session idles and waits for images from MseqFeed(). You can only call MseqFeed() if the session has been started and set to M_ASYNCHRONOUS.
While you cannot start multiple sequence processing sessions simultaneously for a sequence context, you can allocate multiple sequence contexts and start a separate sequence processing session for each context.
To stop the sequence processing session immediately, without finishing the operation, use M_STOP with M_NULL. To wait for the sequence processing session to complete the operation completely, use M_STOP with M_WAIT.
H.264 video encoding is optimized for Intel CPUs and can be subject to performance and stability issues when used with other CPUs.
Specifies the identifier of the sequence context. The sequence context must have been previously allocated using MseqAlloc().
Specifies the command to give the sequence processing session.
See the Parameter associations section for possible values that can be specified.
Specifies the synchronization state of the sequence processing session.
See the Parameter associations section for possible values that can be specified.
The table below lists possible values for the Command and CommandFlag parameters.
For starting or stopping the sequence
processing session
|
|||||||||||||||||||||||||||||||||||||||
Command |
Description
|
||||||||||||||||||||||||||||||||||||||
CommandFlag | |||||||||||||||||||||||||||||||||||||||
M_START |
Specifies to start the sequence processing session. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ASYNCHRONOUS |
Specifies for the sequence processing session to run asynchronously. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SYNCHRONOUS |
Specifies for the sequence processing session to run synchronously. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_STOP |
Specifies to stop the sequence processing session. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NULL |
Specifies to stop the sequence processing session immediately, cancelling any further sequence processing from occuring. |
||||||||||||||||||||||||||||||||||||||
M_WAIT |
Specifies to stop the sequence processing session only after it has finished performing the specified operation. |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |