AVBlocks for C++  2.1
Audio and Video Software Development Kit
Hardware Class Referenceabstract

Enumerates available hardware codecs. More...

Inheritance diagram for Hardware:
Reference

Public Member Functions

virtual HwDeviceListdevices ()=0
 Returns an immutable list of devices that support hardware-accelerated encoding, decoding or processing. More...
 
virtual void refresh (HwVendor::Enum vendor=HwVendor::None)=0
 Scans the system for available hardware codecs and populates the device list. More...
 
- Public Member Functions inherited from Reference
virtual int32_t release () const =0
 Releases the instance. More...
 
virtual int32_t retain () const =0
 Retains the instance. More...
 
virtual int32_t retainCount () const =0
 Returns the current reference count. More...
 

Protected Member Functions

virtual ~Hardware ()
 This object can be destroyed only by the library. More...
 

Detailed Description

Enumerates available hardware codecs.

Constructor & Destructor Documentation

virtual ~Hardware ( )
protectedvirtual

This object can be destroyed only by the library.

The caller must use Reference::release.

See Also
Object Management

Member Function Documentation

virtual HwDeviceList* devices ( )
pure virtual

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

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.

The returned list exists only in the context of Hardware.

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

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.