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

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

#include <pp.h>

Public Member Functions

virtual HwCodecListcodecs ()=0
 Returns an immutable list of hardware codecs.
 
virtual int64_t ID () const =0
 The device id uniquely identifies a concrete device among all devices from the same vendor.
 
virtual const char_t * name () const =0
 Returns device name.
 
virtual HwVendor::Enum vendor () const =0
 Returns device vendor.
 

Protected Member Functions

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

Detailed Description

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

Member Function Documentation

◆ codecs()

virtual HwCodecList * codecs ( )
pure virtual

Returns an immutable list of hardware codecs.

Returns
A list of HwCodec objects.

The returned list exists only in the context of Device.

◆ ID()

virtual int64_t ID ( ) const
pure virtual

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

◆ name()

virtual const char_t * name ( ) const
pure virtual

Returns device name.

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

◆ vendor()

virtual HwVendor::Enum vendor ( ) const
pure virtual

Returns device vendor.

Returns
HwVendor constant.
See also
HwVendor::Enum