Navigation
API > API/Plugins > API/Plugins/AVCodecsCore
References
| Module | AVCodecsCore |
| Header | /Engine/Plugins/Experimental/AVCodecs/AVCodecsCore/Source/AVCodecsCore/Public/AVExtension.h |
| Include | #include "AVExtension.h" |
Syntax
struct FAVExtension
Remarks
HOW TO USE
Allows compile-time extension of types without directly modifying them across modules.
1) Like any static function, declare (by specialization) the extension in a header:
template <> FAVResult FAVExtension::TransformConfig(FVideoConfigH264& OutConfig, FVideoConfigBitstream const& InConfig);
2) Then define the extension in the source:
template <> DLLEXPORT FAVResult FAVExtension::TransformConfig(FVideoConfigH264& OutConfig, FVideoConfigBitstream const& InConfig) { // do stuff }
Be sure to EXPORT the definition and it will be automatically linked by consumers. Static extension system for simple composition of different resource/config types, via exported specializations
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAVExtension () |
Functions
Classes
| Type | Name | Description | |
|---|---|---|---|
| TIsSameHack | Versions of TAnd and TOr that work with std::is_same return values, this is incompatible with TEMPLATE_REQUIRES so we need to still use this construct for now until std::is_same_v is better supported |