Hardware

primo::codecs::Hardware

class Hardware : public primo::Reference

Enumerates available hardware codecs.

Public Functions

virtual void refresh(HwVendor::Enum vendor = HwVendor::None) = 0

Scans the system for available hardware codecs and populates the device list.

Parameters:

vendor – [in] Vendor filter. Only devices that match the specified vendor are queried. By default vendor is HwVendor::None which queries all known devices on the system.

virtual HwDeviceList *devices() = 0

Returns an immutable list of devices that support hardware-accelerated encoding, decoding or processing.

The returned list exists only in the context of Hardware.

Returns:

A list of Device objects. The device list canont be NULL. It is initially empty when the Hardware object is created. It is populated after a call to the refresh() method.