Navigation
API > API/Plugins > API/Plugins/ElectraCodecFactory > API/Plugins/ElectraCodecFactory/IElectraCodecFactory
Description
Queries whether or not this codec factory can create a decoder capable of decoding the specified format.
The following FCodecTypeFormat members need to be set up .Type .FourCC .RFC6381 .Properties to the appropriate type like FVideo, FAudio, etc.
For video decoders: Required: .Properties.FVideo.Profile Optional, but recommended: .Properties.FVideo.Width .Properties.FVideo.Height .Properties.FVideo.FrameRate
For convenience you can just set .RFC6381 and .DCR and have ElectraDecodersUtil::PrepareCodecTypeFormat() from the ElectraCodecs plugin fill in all other parameters.
Additional options may be provided to specify the format more closely, which may help selecting the best suited implementation. See below.
Returns 0 if not supported. If supported the return value indicates a priority value. If multiple factories are registered that claim support for the format the one with the highest priority is chosen.
| Name | SupportsDecoding |
| Type | function |
| Header File | /Engine/Plugins/Media/ElectraCodecs/Source/ElectraCodecFactory/Public/IElectraCodecFactory.h |
| Include Path | #include "IElectraCodecFactory.h" |
int32 SupportsDecoding
(
TMap < FString , FVariant > & OutFormatInfo,
const Electra::FCodecTypeFormat & InCodecFormat,
const TMap < FString , FVariant > & InAdditionalOptions
) const