| Customize Help
| Save Settings

MseqProcess



Function Map
Synopsis
Starts or stops a sequence processing session.
Syntax
void MseqProcess(
MIL_ID ContextSeqId, //in
MIL_INT64 Command, //in
MIL_INT64 CommandFlag //in
)
Description

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.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
ContextSeqId

Specifies the identifier of the sequence context. The sequence context must have been previously allocated using MseqAlloc().

Command

Specifies the command to give the sequence processing session.

See the Parameter associations section for possible values that can be specified.

CommandFlag

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.

function map For starting or stopping the sequence processing session
Click to summarizeCommand Description
CommandFlag
Click to summarize M_START

Specifies to start the sequence processing session.

(summarize)
Click to summarize M_ASYNCHRONOUS

Specifies for the sequence processing session to run asynchronously. Other functions in your application can execute while the operation is performed in a background thread.

(summarize)
Click to summarize M_SYNCHRONOUS

Specifies for the sequence processing session to run synchronously. Your application will wait until the operation has finished before executing the next function.

(summarize)
Click to summarize M_STOP

Specifies to stop the sequence processing session.

(summarize)
Click to summarize M_NULL

Specifies to stop the sequence processing session immediately, cancelling any further sequence processing from occuring.

Click to summarize M_WAIT

Specifies to stop the sequence processing session only after it has finished performing the specified operation.

Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.
START ASYNCHRONOUS SYNCHRONOUS STOP NULL WAIT