VA-API  2.19.0
List of all members
VADisplayAttribValSubDevice Union Reference

sub device info Sub-device is the concept basing on the "device" behind "vaDisplay". If a device could be divided to several sub devices, the task of decode/encode/vpp could be assigned on one sub-device. So, application could choose the sub device before any other operations. After that, all of the task execution/resource allocation will be dispatched to the sub device. If application does not choose the sub device, driver will assign one as default. More...

#include <va.h>

Detailed Description

sub device info Sub-device is the concept basing on the "device" behind "vaDisplay". If a device could be divided to several sub devices, the task of decode/encode/vpp could be assigned on one sub-device. So, application could choose the sub device before any other operations. After that, all of the task execution/resource allocation will be dispatched to the sub device. If application does not choose the sub device, driver will assign one as default.

If the value == VA_ATTRIB_NOT_SUPPORTED, it mean that the attribute is unsupport or UNKNOWN.

Member Data Documentation

◆ sub_device_mask

uint32_t VADisplayAttribValSubDevice::sub_device_mask

bit mask to indicate which sub_device is available, read only

VADisplayAttribute reg_attr;
reg_attr.type = VADisplayAttribSubDevice;
vaGetDisplayAttributes(dpy, &reg_attr, 1);
reg.value = reg_attr.value;
for(int i = 0; i < reg.bits.sub_device_count; i ++ ){
if((1<<i) & reg.bits.sub_device_mask){
printf("sub device %d can be selected", i);
}
}

The documentation for this union was generated from the following file: