VA-API  2.22.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);
}
}
sub device info Sub-device is the concept basing on the "device" behind "vaDisplay"....
Definition: va.h:5078
uint32_t sub_device_count
sub devices count, read - only
Definition: va.h:5083
uint32_t sub_device_mask
bit mask to indicate which sub_device is available, read only
Definition: va.h:5101
VAStatus vaGetDisplayAttributes(VADisplay dpy, VADisplayAttribute *attr_list, int num_attributes)

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