|
avcpp 3.1.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
Wrapper for AVHWDeviceType. More...
#include <hwcontext.h>
Public Member Functions | |
| constexpr | DeviceType (AVHWDeviceType type=AV_HWDEVICE_TYPE_NONE) noexcept |
| Wrap an FFmpeg device type. | |
| operator AVHWDeviceType () const noexcept | |
| Implicit conversion to the FFmpeg type, so the wrapper can be passed to FFmpeg calls unchanged. | |
| AVHWDeviceType | get () const noexcept |
| The wrapped FFmpeg type. | |
| bool | isNone () const noexcept |
| Whether the wrapper holds no device type. | |
| const char * | name () const noexcept |
| FFmpeg name of the device type, or "none". | |
Static Public Member Functions | |
| static DeviceType | fromName (const char *name) noexcept |
| Look a device type up by its FFmpeg name. | |
| static DeviceType | fromName (const std::string &name) noexcept |
| Look a device type up by its FFmpeg name. | |
Device types are looked up by name at runtime, so the wrapper works with FFmpeg versions that do not know newer enum values.
|
inlineconstexprnoexcept |
| type | the FFmpeg type to wrap; the default means "none" |
|
staticnoexcept |
Lookup is by name on purpose: the code does not depend on enumeration values that older FFmpeg versions do not have.
| name | a null-terminated name such as "vaapi"; must not be null |
|
staticnoexcept |
| name | a name such as "vaapi" |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |