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

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

Public Member Functions

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

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

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.

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
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.
virtual HwVendor::Enum vendor ( ) const
pure virtual

Returns device vendor.

Returns
HwVendor constant.
See Also
HwVendor::Enum