QueryModule
Function Usage
Queries GPU models and acceleration capabilities supported by the current system.
Restrictions
N/A
Prototype
void QueryModule(ModuleInfo **moduleList, uint32_t *listSize)
Parameter Description
Parameter |
Input/Output |
Type |
Description |
|---|---|---|---|
moduleList |
Output |
ModuleInfo ** |
List of GPU acceleration classes supported by the system. Each item contains the ID and capability of a GPU acceleration class. |
listSize |
Output |
uint32_t * |
moduleList length. |
Definition of moduleList:
1 2 3 4 5 6 | struct ModuleInfo { // Hardware ID uint32_t moduleId = 0; // Hardware capability list. For example, if H.264 and H.265 encoding are supported, the value is (1 << CAP_VA_ENCODE_H264) | (1 << CAP_VA_ENCODE_HEVC). uint32_t capabilities = 0; }; |
1 2 3 4 5 6 7 | enum EncoderCapability : uint32_t { CAP_NONE, CAP_FORMAT_CONVERT, CAP_VA_ENCODE_H264, CAP_VA_ENCODE_HEVC, CAP_MAX, }; |
Definition of moduleId:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | enum GpuType : uint32_t { GPU_NONE = 0, GPU_INNO_G1 = 0x1, GPU_INNO_G1P, GPU_INNO_MAX = 0x100, GPU_HANTRO_SG100 = 0x101, GPU_HANTRO_MAX = 0x200, GPU_A_W5100 = 0x201, GPU_A_W5500, GPU_A_W6600, GPU_A_W6800, GPU_A_MAX = 0x400, GPU_SOFT = 0x401, GPU_MAX = 0x10000, VPU_NETINT_T408 = 0x10001, VPU_NETINT_T432, VPU_NETINT_QUADRA_T2A, VPU_NETINT_MAX = 0x10200, }; |
Return Value Description
N/A
Parent topic: GPU Acceleration APIs (C and C++)