AVBlocks for C++  3.0
Audio and Video Software Development Kit
Loading...
Searching...
No Matches
Hardware Class Referenceabstract

Enumerates available hardware codecs. More...

#include <pp.h>

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.
 
virtual void refresh (HwVendor::Enum vendor=HwVendor::None)=0
 Scans the system for available hardware codecs and populates the device list.
 
- Public Member Functions inherited from Reference
virtual int32_t release () const =0
 Releases the instance.
 
virtual int32_t retain () const =0
 Retains the instance.
 
virtual int32_t retainCount () const =0
 Returns the current reference count.
 

Protected Member Functions

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

Detailed Description

Enumerates available hardware codecs.

Constructor & Destructor Documentation

◆ ~Hardware()

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

◆ devices()

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.

◆ refresh()

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.