MIL_ID ContextSeqId, | //in |
MIL_INT SequenceIndex, | //in |
MIL_INT64 InquireType, | //in |
void *UserVarPtr | //out |
This function inquires information about a sequence context or an individual source or destination setting.
Specifies the sequence context about which to inquire information. The sequence context must have been previously allocated using MseqAlloc().
Specifies that the sequence context, the source of an input, or a destination of an output is inquired. Set this parameter to one of the following values:
For specifying a context, or an
individual source or destination
|
|||||||||||||||||||||||||||||||||||||||
Value |
Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_CONTEXT. |
||||||||||||||||||||||||||||||||||||||
Specifies an input of the sequence operation, whose source must be inquired. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the index of the input. The index must be 0. |
|||||||||||||||||||||||||||||||||||||||
Specifies an output of the sequence operation, whose destination must be inquired. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the index of the output. The index must be set to 0. |
|||||||||||||||||||||||||||||||||||||||
M_CONTEXT |
Inquires information about the specified sequence context. |
You must add the following value to the above-mentioned value to specify the index of the destination of the output to inquire.
For specifying the index of the
destination of the output to inquire
|
|||||||||||||||||||||||||||||||||||||||
Combination value |
Description
|
||||||||||||||||||||||||||||||||||||||
Specifies the destination of the output to inquire. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the index of the destination. The index must be between 0 and 31. |
Specifies the type of setting about which to inquire.
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to write the requested information.
Since the MseqInquire() function also returns the requested information, you can set this parameter to M_NULL, except when the specified InquireType requires the UserVarPtr parameter to be set to the address of a MIL_INT, MIL_DOUBLE, or MIL_TEXT_CHAR. In this case, you must set this parameter to the address of a MIL_INT, MIL_DOUBLE, or MIL_TEXT_CHAR, respectively.
See the Parameter associations section for possible values that can be returned.
The tables below list possible values for the InquireType parameter and possible values returned to the UserVarPtr parameter.
The following inquire types allow you to inquire the H.264 compression settings for the sequence context (M_CONTEXT).
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For retrieving information about the
H.264 compression operation settings
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_CODEC_TYPE |
Inquires the type of codec used for the compression or decompression operation. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_QSV + M_HARDWARE |
Specifies to perform the operation using hardware acceleration. |
||||||||||||||||||||||||||||||||||||||
M_QSV + M_SOFTWARE |
Specifies to perform the operation in software. |
||||||||||||||||||||||||||||||||||||||
M_SETTING_AUTO_ADJUSTMENT |
Inquires whether incompatible operation settings are automatically adjusted. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies to not automatically adjust incompatible settings. INFO |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies to automatically adjust incompatible settings. INFO |
||||||||||||||||||||||||||||||||||||||
M_SIZE_X |
Inquires the width of the elementary video stream. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the width, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_SIZE_Y |
Inquires the height of the elementary video stream. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the height, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_STREAM_BIT_RATE + |
Inquires the elementary video stream bit rate. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0 |
Specifies the bit rate, in Kbits/sec. |
||||||||||||||||||||||||||||||||||||||
M_STREAM_BIT_RATE_MAX + |
Inquires the maximum bit rate that the elementary video stream can have. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0 |
Specifies the maximum bit rate, in Kbits/sec. |
||||||||||||||||||||||||||||||||||||||
M_STREAM_BIT_RATE_MODE |
Inquires the type of bit rate the elementary video stream will have. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONSTANT |
Specifies that the bit rate will remain constant throughout the duration of the elementary video stream. INFO |
||||||||||||||||||||||||||||||||||||||
M_VARIABLE |
Specifies that the bit rate will fluctuate depending on how compressible sections of the elementary video stream are. INFO |
||||||||||||||||||||||||||||||||||||||
M_STREAM_FRAME_RATE |
Inquires the frame rate of the elementary video stream. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the elementary video stream's frame rate, in frames/sec. |
||||||||||||||||||||||||||||||||||||||
M_STREAM_FRAME_RATE_MODE |
Inquires how the decoding frame rate, written in the header of M_FILE destination types, is established. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONSTANT |
Specifies that the decoding frame rate written in the header of M_FILE destination types is the same as the frame rate specified with M_STREAM_FRAME_RATE. |
||||||||||||||||||||||||||||||||||||||
M_VARIABLE |
Specifies that the decoding frame rate written in the header of M_FILE destination types is the average encoding frame rate, if the processor could not encode at the specified frame rate; otherwise, the frame rate specified with M_STREAM_FRAME_RATE will be written. INFO |
||||||||||||||||||||||||||||||||||||||
M_STREAM_GROUP_OF_PICTURE_SIZE + |
Inquires the group-of-pictures size. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the group-of-pictures size, in number of frames/group. INFO |
||||||||||||||||||||||||||||||||||||||
M_STREAM_LEVEL + |
Inquires the H.264 compression level used by the compression operation. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_1 |
Specifies the 1 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_1_1 |
Specifies the 1.1 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_1_2 |
Specifies the 1.2 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_1_3 |
Specifies the 1.3 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_1B |
Specifies the 1B compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_2 |
Specifies the 2 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_2_1 |
Specifies the 2.1 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_2_2 |
Specifies the 2.2 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_3 |
Specifies the 3 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_3_1 |
Specifies the 3.1 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_3_2 |
Specifies the 3.2 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_4 |
Specifies the 4 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_4_1 |
Specifies the 4.1 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_4_2 |
Specifies the 4.2 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_5 |
Specifies the 5 compression level. |
||||||||||||||||||||||||||||||||||||||
M_LEVEL_5_1 |
Specifies the 5.1 compression level. |
||||||||||||||||||||||||||||||||||||||
M_STREAM_PROFILE + |
Inquires the H.264 compression profile. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PROFILE_BASELINE |
Specifies to use the baseline profile. INFO |
||||||||||||||||||||||||||||||||||||||
M_PROFILE_HIGH |
Specifies to use the high profile. INFO |
||||||||||||||||||||||||||||||||||||||
M_PROFILE_MAIN |
Specifies to use the main profile. INFO |
||||||||||||||||||||||||||||||||||||||
M_STREAM_QUALITY + |
Inquires the H.264 compression operation priority. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= 100 |
Specifies the speed/quality priority. INFO |
You can add the following value to the above-mentioned values to get the actual values used if MseqControl() with M_SETTING_AUTO_ADJUSTMENT was set to M_ENABLE.
For inquiring the actual values
used
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_EFFECTIVE_VALUE |
Inquires the actual value used by the compression operation. |
You can inquire information about the following settings for any type of individual source (M_SEQ_INPUT()) or destination (M_SEQ_OUTPUT() + M_SEQ_DEST()).
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For retrieving information about general
individual source or destination settings
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_TYPE |
Inquires the type of source or destination at the specified index. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BUFFER_LIST |
Specifies the source of the input, or destination of the output, of the sequence operation is a buffer list. INFO |
||||||||||||||||||||||||||||||||||||||
M_FILE |
Specifies the source of the input, or destination of the output, of the sequence operation is a file. |
||||||||||||||||||||||||||||||||||||||
M_USER_FEED |
Specifies the source of the input of the sequence operation is a manual image feed, where the images are passed individually to the sequence operation. INFO |
||||||||||||||||||||||||||||||||||||||
M_USER_HOOK |
Specifies the destination of the output is the internal output buffer of the operation; if this is the only destination, you should use a user-defined hook function to retrieve the data before it is overwritten by the next frame of resulting data (MseqHookFunction() with M_FRAME_END). INFO |
You can inquire information about the following settings for individual file sources or destinations (M_SEQ_INPUT() or M_SEQ_OUTPUT() + M_SEQ_DEST() defined as M_FILE).
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For retrieving information about
individual file (M_FILE) source or destination
settings
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_FILE_FORMAT |
Inquires the format of the file at the specified index. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FILE_FORMAT_AVI |
Specifies that the file is in AVI format. |
||||||||||||||||||||||||||||||||||||||
M_FILE_FORMAT_H264 |
Specifies that the file is in H.264 elementary video data format. |
||||||||||||||||||||||||||||||||||||||
M_FILE_FORMAT_MP4 |
Specifies that the file is in MP4 format. |
||||||||||||||||||||||||||||||||||||||
M_STREAM_FILE_NAME |
Inquires the name of the file at the specified index. SET (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: array of type MIL_TEXT_CHAR |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the file name. |
||||||||||||||||||||||||||||||||||||||
M_STREAM_FILE_NAME_SIZE |
Inquires the length of the string returned by M_STREAM_FILE_NAME. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the length of the string, including the terminating null character ("\0"). |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |