HwDevice

primo::codecs::HwDevice

class HwDevice

Describes a device that can be used for hardware accelerated encoding, decoding or processing.

Public Functions

virtual const char_t *name() const = 0

Returns device name.

Returns:

A pointer to zero terminated ANSI string. The returned pointer cannot be NULL.

virtual HwVendor::Enum vendor() const = 0

Returns device vendor.

See also

HwVendor::Enum

Returns:

HwVendor constant.

virtual int64_t ID() const = 0

The device id uniquely identifies a concrete device among all devices from the same vendor.

It is not unique across vendors. It can be any value except -1.

Returns:

device id

virtual HwCodecList *codecs() = 0

Returns an immutable list of hardware codecs.

The returned list exists only in the context of Device.

Returns:

A list of HwCodec objects.