Adapters
Contents
Adapters#
Functions that identify graphics adapters for Microsoft* DirectX* video processing, encoding, and decoding.
API#
MFXQueryAdapters#
-
mfxStatus MFXQueryAdapters(mfxComponentInfo *input_info, mfxAdaptersInfo *adapters)#
Returns a list of adapters that are suitable to handle workload
input_info
. The list is sorted in priority order, with iGPU given the highest precedence. This rule may change in the future. If theinput_info
pointer is NULL, the list of all available adapters will be returned.- Since
This function is available since API version 1.31.
- Parameters
input_info – [in] Pointer to workload description. See mfxComponentInfo description for details.
adapters – [out] Pointer to output description of all suitable adapters for input workload. See mfxAdaptersInfo description for details.
- Returns
MFX_ERR_NONE The function completed successfully.
MFX_ERR_NULL_PTR
input_info
or adapters pointer is NULL.
MFX_ERR_NOT_FOUND No suitable adapters found.
MFX_WRN_OUT_OF_RANGE Not enough memory to report back entire list of adapters. In this case as many adapters as possible will be returned.
MFXQueryAdaptersDecode#
-
mfxStatus MFXQueryAdaptersDecode(mfxBitstream *bitstream, mfxU32 codec_id, mfxAdaptersInfo *adapters)#
Returns list of adapters that are suitable to decode the input bitstream. The list is sorted in priority order, with iGPU given the highest precedence. This rule may change in the future. This function is a simplification of MFXQueryAdapters, because bitstream is a description of the workload itself.
- Since
This function is available since API version 1.31.
- Parameters
bitstream – [in] Pointer to bitstream with input data.
codec_id – [in] Codec ID to determine the type of codec for the input bitstream.
adapters – [out] Pointer to the output list of adapters. Memory should be allocated by user. See mfxAdaptersInfo description for details.
- Returns
MFX_ERR_NONE The function completed successfully.
MFX_ERR_NULL_PTR bitstream or
adapters
pointer is NULL.
MFX_ERR_NOT_FOUND No suitable adapters found.
MFX_WRN_OUT_OF_RANGE Not enough memory to report back entire list of adapters. In this case as many adapters as possible will be returned.
MFXQueryAdaptersNumber#
-
mfxStatus MFXQueryAdaptersNumber(mfxU32 *num_adapters)#
Returns the number of detected graphics adapters. It can be used before calling MFXQueryAdapters to determine the size of input data that the user will need to allocate.
- Since
This function is available since API version 1.31.
- Parameters
num_adapters – [out] Pointer for the output number of detected graphics adapters.
- Returns
MFX_ERR_NONE The function completed successfully.
MFX_ERR_NULL_PTR num_adapters pointer is NULL.